Skip to content

Bump ploi/ploi-php-sdk from 1.9.5 to 2.0#413

Open
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/composer/develop/ploi/ploi-php-sdk-2.0
Open

Bump ploi/ploi-php-sdk from 1.9.5 to 2.0#413
dependabot[bot] wants to merge 1 commit intodevelopfrom
dependabot/composer/develop/ploi/ploi-php-sdk-2.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 31, 2026

Bumps ploi/ploi-php-sdk from 1.9.5 to 2.0.

Release notes

Sourced from ploi/ploi-php-sdk's releases.

2.0

BREAKING CHANGES! ⚠️

Consult for the newly updated methods: https://github.com/ploi/ploi-php-sdk/blob/master/CHANGELOG.md

What's Changed

Full Changelog: ploi/ploi-php-sdk@1.9.5...2.0

Changelog

Sourced from ploi/ploi-php-sdk's changelog.

Changelog

All notable changes to this project will be documented in this file.

[2.0.0] - 2026-03-10

Breaking Changes

Strict types enforced

All source files now declare strict_types=1. PHP will throw TypeError on type mismatches instead of silently coercing. For example, passing a string "123" where an int is expected will now fail.

Site::create() — signature changed

// v1
create(string $domain, string $webDirectory = '/public', string $projectRoot = '/', string $systemUser = 'ploi', ?string $systemUserPassword = null, ?string $webserverTemplate = null, ?string $projectType = null)
// v2
create(string $domain, string $webDirectory = '/public', ?string $projectRoot = null, ?string $systemUser = null, ?int $webserverTemplate = null, ?string $projectType = null, ?string $webhookUrl = null)

  • Removed $systemUserPassword — does not exist in the Ploi API.
  • Changed $webserverTemplate type from string to int — it accepts a webserver template ID.
  • Changed $projectRoot default from '/' to null.
  • Changed $systemUser default from 'ploi' to null.

Migration: Remove any $systemUserPassword argument. If you relied on the $projectRoot or $systemUser defaults, pass them explicitly:

// v1
$ploi->servers(1)->sites()->create('example.com');
// v2 — to preserve v1 behavior
$ploi->servers(1)->sites()->create('example.com', '/public', '/', 'ploi');

DatabaseBackup — endpoint and create() signature changed

The endpoint changed from servers/{id}/databases/{id}/backups to backups/database to match the current Ploi API.

// v1
create(int $interval, string $type, ?string $table_exclusions = null, ?string $locations = null, ?string $path = null)
// v2
create(int $interval, int $backup_configuration, ?array $databases = null, ?string $table_exclusions = null, ?string $locations = null, ?string $path = null, ?int $keep_backup_amount = null, ?string $custom_name = null, ?string $password = null)

  • Removed $type — does not exist in the Ploi API.
  • Added $backup_configuration (required) — the ID of your backup configuration from your Ploi profile.
  • Added $databases (optional) — array of database IDs to back up. Defaults to the database from the chain.
  • Added $keep_backup_amount, $custom_name, $password (optional).
  • The server ID is automatically passed from the fluent chain.

... (truncated)

Commits
  • 6d9ce13 Add installPhpVersion() and switchPhpCliVersion() to Server (#68)
  • 578815a Add path parameter to AuthUser::create() (#70)
  • e53f948 Add CHANGELOG.md for v2.0.0 release
  • e449901 Fix #83
  • 0e77f2b Fix PHPStan type errors and add laravel tag to SKILL.md
  • ec81418 Modernize project setup: PSR-4, PSR-12, strict types
  • dd26074 Merge pull request #87 from szepeviktor/patch-1
  • 203c594 Add PHPStan ignore
  • 8ae0637 Merge pull request #86 from szepeviktor/szepeviktor-patch-1
  • 5f33684 Update php_test.yml
  • Additional commits viewable in compare view

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 31, 2026

Labels

The following labels could not be found: composer. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 31, 2026
Bumps [ploi/ploi-php-sdk](https://github.com/ploi/ploi-php-sdk) from 1.9.5 to 2.0.
- [Release notes](https://github.com/ploi/ploi-php-sdk/releases)
- [Changelog](https://github.com/ploi/ploi-php-sdk/blob/master/CHANGELOG.md)
- [Commits](ploi/ploi-php-sdk@1.9.5...2.0)

---
updated-dependencies:
- dependency-name: ploi/ploi-php-sdk
  dependency-version: '2.0'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/composer/develop/ploi/ploi-php-sdk-2.0 branch from 4dffaf7 to 1938777 Compare April 2, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants