PHP API client for Private Packagist.
composer test— Run testscomposer cs-fix— Fix code style (src + tests)composer analyze— Run PHPStan static analysis
src/Api/AbstractApi.php— Base class for all API endpoints. Providesget()for single resources andgetCollection()for list endpoints with auto-pagination.src/Api/*.php— API endpoint classes (Packages, Teams, Customers, etc.)src/Api/*/— Nested API endpoints (e.g.Customers/VendorBundles,Packages/Artifacts)src/Client.php— Entry point, provides access to all API classes
- Supports PHP 7.2+ — avoid modern syntax not available in 7.2
- List endpoints use
getCollection()(handles pagination and default limit) - Single-resource endpoints use
get()