Puli: PHP's Next Package Revolution
summary
A package integration layer called Puli separates framework conventions from Composer packages by adding a py.json that maps resources and binding types, letting the CLI run commands like puli map, puli bind and puli publish/install to build an optimized repository and URL generator at build time. Resource discovery and service-loading (discovery by binding type) wire packages together; several large projects run it in production and performance shows no runtime penalty except cache warmup. puli paths enable overriding and merging across packages.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker intro
- 1:55What is Puli and its origin
- 3:43Evolution of PHP package management
- 7:55The problem of package fragmentation
- 15:37Introducing Puli’s solution
- 17:20How Puli packages work
- 18:47Resource access with Puli paths
- 23:39Overriding resources in packages
- 27:10URL generation for resources
- 33:55Resource installation and publishing
- 36:05Resource discovery with Puli
- 43:35Future of service loading
- 45:41Puli’s impact on PHP development
- 48:53Current status and adoption
- 50:17Testing Puli in Symfony
- 52:03Call to action and feedback
