April 2026
Intermediate
1009 pages
34h 15m
English
If you want to write a PHP library yourself and rely on the Composer infrastructure, you need to proceed in two steps:
Create the composer.json file.
Register the package at https://packagist.org.
Listing 38.1 shows, for example, the composer.json file for the previously used AWS SDK. (You can find the source at http://s-prs.co/v602257, as of January 2024.)
{ "name": "aws/aws-sdk-php", "homepage": "http://aws.amazon.com/sdkforphp", "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project", "keywords": ["aws","amazon","sdk","s3","ec2","dynamodb","cloud","glacier"], "type": "library", "license": "Apache-2.0", "authors": [ { "name": "Amazon Web Services", "homepage": "http://aws.amazon.com" ...
Read now
Unlock full access