cradlephp / components
Common PHP7 Patterns and Constructs
Requires
- php: >=7.1
Requires (Dev)
- php-coveralls/php-coveralls: ~2.1.0
- phpunit/phpunit: 7.0.2
- squizlabs/php_codesniffer: 3.2.3
This package is auto-updated.
Last update: 2024-11-14 15:27:06 UTC
README
Install
If you already installed Cradle, you may not need to install this because it should be already included.
composer install cradlephp/components
Components
- Curl - cURL wrapper class that helps making cUrl calls easier
- Data - Manages data structs of all kinds. Models, Collections and Registry objects are covered here
- Event - Similar to JavaScript Events. Covers basic and wildcard events.
- Helper - Miscellaneous traits used to add class features
- Http - Deals with Routers, Request, Response and Middleware
- i18n - Covers Language translations and timezone conversions
- Image - Dynamic Image processor
- Profiler - Assists with troubleshooting code
- Resolver - IoC to manage dependency injections
See the Wiki for documentation on these components. See https://cradlephp.github.io/ for more information about the entire project.
Contributing to Cradle PHP
Thank you for considering to contribute to Cradle PHP.
Please be aware that master branch contains all edge releases of the current version. Please check the version you are working with and find the corresponding branch. For example v1.1.1
can be in the 1.1
branch.
Bug fixes will be reviewed as soon as possible. Minor features will also be considered, but give me time to review it and get back to you. Major features will only be considered on the master
branch.
- Fork the Repository.
- Fire up your local terminal and switch to the version you would like to contribute to.
- Make your changes.
- Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")
Making pull requests
- Please ensure to run phpunit and phpcs before making a pull request.
- Push your code to your remote forked version.
- Go back to your forked version on GitHub and submit a pull request.
- All pull requests will be passed to Travis CI to be tested. Also note that Coveralls is also used to analyze the coverage of your contribution.