Workshop in English - US at CascadiaPHP 2024
Track Name:
Willamette
View Slides: https://speakerdeck.com/ramsey/lets-build-a-composer-package-cascadia-php-2024
Short URL: https://joind.in/talk/9b93d
(QR-Code (opens in new window))
You've downloaded and installed open source libraries, required them as Composer dependencies, and perused the source code of countless GitHub repositories. Now, you're ready to help others by creating your own Composer package. So, what does it take to build and publish an open source library? In this session, we'll take a look at some of the common patterns open source PHP libraries follow. Along the way, we'll cover: evaluating libraries for quality, common directory structures, the importance of tests and how to run them on GitHub Actions, publishing to Packagist, choosing a license, interacting with a community, and more. By the end of this workshop, you will have all the tools you need to publish and distribute your own Composer package.
Comments
Please login to leave a comment
Ben gave an excellent introduction on building a Composer package, and his template is truly invaluable. It simplifies the process of setting up a Composer package immensely, with many state-of-the-art tools pre-installed and ready to use. Well done!
I had so much fun with this and really understanding what was under the hood. Its definitely an empowering moment to see my package live in the ecosystem, even if it was just a really basic Hello World.
My biggest takeaway was the tools. I absolutely love all the thoughtfulness of the php-library-starter-kit and all these features fully working right out of the box. I am really excited to take this back to my org.