publishpress / pimple-pimple
Pimple, a simple Dependency Injection Container, prefixed for PublishPress
3.5.0.11
2026-09-11 18:31 UTC
Requires
- php: >=7.4.0
- publishpress/psr-container: ^2.0.1.10
Requires (Dev)
- brianhenryie/strauss: 0.29.2
- pimple/pimple: 3.5.0
- publishpress/dev-workspace: ^1.8
- publishpress/version-loader-generator: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Prefixed version of pimple/pimple. Namespace Pimple becomes PublishPress\Pimple.
This package depends on the already-prefixed publishpress/psr-container for PSR-11 types. Strauss still rewrites Psr\Container references inside Pimple, then scripts/post-update.php removes the nested lib/psr copy so runtime uses the shared package.
How to update the prefixed library
- Change the pinned upstream version in
require-dev(pimple/pimple) to the target (still a fixed constraint). Keeppublishpress/psr-containerinrequire. - Set
versionto that upstream version plus the next fourth digit (3.5.0→3.5.0.1for a first prefixed build, or increment the fourth digit for another prefixing pass of the same upstream). - Run
composer update. Strauss prefixes intolib/;post-update.phpstrips nested PSR-11 fromlib/andlib/composer/; the generator refreshesinclude.phpandVersionLoader.php. - Copy
.env.exampleto.env(fillWP_TESTS_*). Runcomposer test:unit, thencomposer test:integration. Version-loader tests are Integration. Without.env, Codeception exits immediately. - Review the prefixed code in
lib/by hand. On Strauss 0.29, extra package files andlib/composer/are normal. For this PSR-0 library, live classes are underlib/pimple/pimple/src/PublishPress/Pimple/— delete any leftover unprefixedsrc/Pimple/tree. Confirmlib/psris gone and Composer maps no longer referencePublishPress\Psr\Container. - Commit.
- Create a GitHub release named with the four-digit version (for example
3.5.0.11) so Packagist sees the tag.
Then run composer update in the plugins that consume the package.