lakedrops / composer-json-utils
Composer Library to provide utilities to work with project's own composer.json file
Requires
- php: >=8.1
- composer-plugin-api: ^2
- ext-json: *
- symfony/dotenv: *
- symfony/yaml: *
- twig/twig: *
Requires (Dev)
- composer/composer: ^2
- roave/security-advisories: dev-latest
- dev-main
- v2.5.1
- v2.5.0
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-develop
This package is auto-updated.
Last update: 2024-10-20 18:28:24 UTC
README
This base libary doesn't do much by itself. It exists as a foundation for most of the other plugins from LakeDrops and builds the composer command, plugin and handler framework together with a few utilities that are useful in most plugins:
Config
Manages all the settings (default and custom) for each plugin and stores them all together in the project root in a file called .lakedrops.yml
. This file should be committed to your Git repository as it contains settings for the project similar to all developers and stages.
DotEnv
Manages stored environment variables in a env
file in the root of the project. This file should NOT be committed to the Git repository, it contains local settings specific to the developer and stage.
NestedArray
A helper class to properly merge PHP array, borrowed from Drupal core.
Utils
All those utilities can be used in handler, that extend the BaseHandler class from this library with $this->utility()
calls, where utility
is a placeholder for any of the available callbacks. For scripts outside of the BaseHandler context, this class provides static access to the same utilities.