Skip to content

Add one-off script endpoints to Server resource - #89

Merged
Cannonb4ll merged 1 commit into
ploi:masterfrom
sfp2:feat/one-off-script-endpoints
Aug 24, 2026
Merged

Add one-off script endpoints to Server resource#89
Cannonb4ll merged 1 commit into
ploi:masterfrom
sfp2:feat/one-off-script-endpoints

Conversation

@sfp2

@sfp2 sfp2 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Support running ad-hoc scripts on a server and polling their execution status via the new Ploi API endpoints.

A few notes:

I added these functions to src/Ploi/Resources/Server.php rather than src/Ploi/Resources/Script.php since the API endpoints are scoped to the server endpoint.

Same story for the README, but i added the new SDK functions to both the script and server sections to make it easier for users to find.

Support running ad-hoc scripts on a server and polling their execution status via the new Ploi API endpoints.
@sfp2

sfp2 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Hi @Cannonb4ll, would it be possible to get this merged soon? It would be helpful to our workflow.

I created this PR during a GitHub outage so you may not have been notified.

Thanks!

@Cannonb4ll

Cannonb4ll commented Aug 24, 2026

Copy link
Copy Markdown
Member

Interesting, I was indeed not notified, but now I am!

Will check up on this tonight👌

@sfp2

sfp2 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Perfect, thank you!

@Cannonb4ll
Cannonb4ll merged commit 59e5042 into ploi:master Aug 24, 2026
Cannonb4ll added a commit that referenced this pull request Aug 24, 2026
…its (#90)

The get* prefix is reserved for accessors on Resource (getId, getPloi,
getServer, getEndpoint), which Server inherits. Endpoint-calling methods
are noun-only: logs(), monitoring(), phpVersions(). The method was added
in #89 after the 2.1 tag, so it is unreleased and can be renamed without
a deprecated alias.

Also asserts the new endpoints build correctly in testBuildsUrlCorrectly()
(the only test that does not hit the live API) and documents that $content
is capped at 7500 characters and $user defaults to "ploi".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants