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

Comments are closed.

Jamie Reevior at 15:59 on 23 Apr 2024

Very well explained workshop on creating composer packages

Dana Luther at 17:09 on 23 Apr 2024

It was really great to see more of what makes a “good” package in the eyes of the open source community (ala Ben of course). It’s been a long time since I’ve had time to really dedicate to open source projects and so many of the tools presented here really bridge the gap between what was and what the current expectations are.

Great presentation and workshop. Was easy to follow along and learned a lot!

Omni Adams at 14:47 on 25 Apr 2024

I have so many open tabs to look into after this talk when I get home that I can't see the icons. Also, during the talk I managed to create *two* packages on Packagist. The talk actually covered a bunch of interesting things in addition to the Packagist part, like git hooks, which was pretty awesome.

Andrew Woods at 12:16 on 26 Apr 2024

There's a lot involved with creating a good package - more than you might think. Ben does a great job explaining things. He spoke in a style that was clear, and easy to follow.