|
1 | | -# support |
2 | | -Package with helper functions |
| 1 | +# PHP Support functions |
| 2 | + |
| 3 | +[![Latest Version on Packagist][ico-version]][link-packagist] |
| 4 | +[![Software License][ico-license]](LICENSE.md) |
| 5 | +[![Build Status][ico-travis]][link-travis] |
| 6 | +[![Coverage Status][ico-scrutinizer]][link-scrutinizer] |
| 7 | +[![Quality Score][ico-code-quality]][link-code-quality] |
| 8 | +<!-- [![Total Downloads][ico-downloads]][link-downloads] --> |
| 9 | + |
| 10 | +PHP package with helper functions. |
| 11 | + |
| 12 | +## Structure |
| 13 | + |
| 14 | +If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following. |
| 15 | + |
| 16 | +``` |
| 17 | +bin/ |
| 18 | +config/ |
| 19 | +src/ |
| 20 | +tests/ |
| 21 | +vendor/ |
| 22 | +``` |
| 23 | + |
| 24 | + |
| 25 | +## Install |
| 26 | + |
| 27 | +Via Composer |
| 28 | + |
| 29 | +``` bash |
| 30 | +$ composer require larapulse/support |
| 31 | +``` |
| 32 | + |
| 33 | +## Usage |
| 34 | + |
| 35 | +This package contains some useful functions that can be used for different cases, such as: |
| 36 | + |
| 37 | +``` php |
| 38 | +$initial = [ |
| 39 | + 'environment' => 'dev', |
| 40 | + 'app_start' => date('Y-m-d H:i:s'), |
| 41 | + 'options' => [ |
| 42 | + 'test' => true, |
| 43 | + 'debug' => true, |
| 44 | + 'log' => 'notice'. |
| 45 | + ], |
| 46 | +]; |
| 47 | + |
| 48 | +$hash = md5(implode('|', array_flatten_assoc($initial))); |
| 49 | +``` |
| 50 | + |
| 51 | +## Change log |
| 52 | + |
| 53 | +Please see [CHANGELOG](docs/CHANGELOG.md) for more information on what has changed recently. |
| 54 | + |
| 55 | +## Testing |
| 56 | + |
| 57 | +``` bash |
| 58 | +$ composer test |
| 59 | +``` |
| 60 | + |
| 61 | +## Contributing |
| 62 | + |
| 63 | +Please see [CONTRIBUTING](docs/CONTRIBUTING.md) and [CODE_OF_CONDUCT](docs/CODE_OF_CONDUCT.md) for details. |
| 64 | + |
| 65 | +## Security |
| 66 | + |
| 67 | +If you discover any security related issues, please email [email protected] instead of using the issue tracker. |
| 68 | + |
| 69 | +## Credits |
| 70 | + |
| 71 | +- [Sergey Podgornyy][link-author] |
| 72 | +- [All Contributors][link-contributors] |
| 73 | + |
| 74 | +## License |
| 75 | + |
| 76 | +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
| 77 | + |
| 78 | +[ico-version]: https://img.shields.io/packagist/v/larapulse/support.svg?style=flat-square |
| 79 | +[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square |
| 80 | +[ico-travis]: https://img.shields.io/travis/larapulse/support/master.svg?style=flat-square |
| 81 | +[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/larapulse/support.svg?style=flat-square |
| 82 | +[ico-code-quality]: https://img.shields.io/scrutinizer/g/larapulse/support.svg?style=flat-square |
| 83 | +[ico-downloads]: https://img.shields.io/packagist/dt/larapulse/support.svg?style=flat-square |
| 84 | + |
| 85 | +[link-packagist]: https://packagist.org/packages/larapulse/support |
| 86 | +[link-travis]: https://travis-ci.org/larapulse/support |
| 87 | +[link-scrutinizer]: https://scrutinizer-ci.com/g/larapulse/support/code-structure |
| 88 | +[link-code-quality]: https://scrutinizer-ci.com/g/larapulse/support |
| 89 | +[link-downloads]: https://packagist.org/packages/larapulse/support |
| 90 | +[link-author]: https://github.com/SergeyPodgornyy |
| 91 | +[link-contributors]: ../../contributors |
0 commit comments