masterminds / fortissimo-commons
Common commands for the Fortissimo framework.
Requires
- php: >=5.3.2
This package is not auto-updated.
Last update: 2024-12-16 16:48:24 UTC
README
Common commands for the Fortissimo Framework.
This project focuses on collecting common commands that are used within Fortissimo applications. For an overview of all of the commands in this library, read An Overview of Fortissimo Commons.
Usage
- Include the library in your
composer.json
file:require: {'masterminds/fortissimo-commons': 'dev-master' }
- run
composer update
to use the library - Use the commands:
->does('\Fortissimo\Commons\Foo')
For more on composer, see GetComposer.
Contribute to This Library!
We're looking for useful commands to add! Go ahead and fork the master branch and add your commands. Then issue a pull request and we'll be in touch!
There are a few basic caveats for what we're looking for.
Critieria for inclusion:
- Commands should be generalized.
- Commands should not require external libraries -- only Fortissimo and PHP itself. (Special cases will be considered, though.)
- Commands should be useful in a wide variety of cases.
- Commands should NOT require a datasource (including a database schema). But we are fine with file IO.
Examples that we'd like to include:
- Load a JSON file
- Perform date transformations
- Parse an XML file (with or without a schema)
- Save data to a file
- Generate a random string
Things we might consider bending the rules for:
- A Markdown converter
- A YAML reader
Other Useful Fortissimo Libraries
- Fortissimo-Twig: Twig template for Fortissimo.
- Fortissimo-Base: Scaffold an application quickly.
Got another useful Fortissimo library? Tell us about it and we'll add it to the list.