treeware / plant
Installs: 333 915
Dependents: 3
Suggesters: 0
Security: 0
Stars: 13
Watchers: 3
Forks: 0
Open Issues: 4
Type:composer-plugin
Requires
- composer-plugin-api: ^1.0|^2.0
Requires (Dev)
- composer/composer: ^1.0|^2.0
- pestphp/pest: ^1.0
- phpstan/phpstan: ^0.12
- spatie/pest-plugin-snapshots: ^1.0
- symfony/console: ^5.1
- symplify/easy-coding-standard: ^9.2
This package is not auto-updated.
Last update: 2024-12-11 11:41:15 UTC
README
It's a bit like symfony/thanks, but it tries to tackle a bigger problem! The climate crisis.
Open Source can have positive impact on it. With Treeware every donation is a motivation to work on Open Source code.
The Treeware idea is great, but it's not very visible. This package tries to solve it.
Install
Add this package as dependency to your package:
$ composer require treeware/plant
Add an extra
attribute to your package composer.json that contains at least an empty treeware
object:
{ "extra": { "treeware": {} } }
Or use this handy shortcut:
composer config extra.treeware --json {}
To change the default output, add your own teaser
and priceGroup
properties:
{ "extra": { "treeware": { "teaser": [ "Your message to the consumers of your package to convince them.", "Multiple lines are possible, but not more than 3 lines and 200 characters." ], "priceGroups": { "useful": 100, "important": 250, "critical": 500 } } } }
Example output
When others require or update your package using composer, a tiny reminder pops up.
$ composer require this/fancy-package Using version dev-master for this/fancy-package ./composer.json has been updated Running composer update this/fancy-package Loading composer repositories with package information Updating dependencies Generating autoload files ๐ณ Treeware licence of this/fancy-package - A cool package ๐ณ ------------------------------------------------------------------- ๐ณ The author of this open-source software cares about the climate crisis. ๐ณ Using the software in a commercial project requires a donation: ๐ณ โค 100 trees โ $17 (useful) ๐ณ โค 250 trees โ $42 (important) ๐ณ โค 500 trees โ $84 (critical) ๐ณ Donate using this link: https://plant.treeware.earth/this/fancy-package