PHP Helper
, (*1)
, (*2)
PHP helper methods upon primitive data types (Array, Float, Integer, String, etc.)
and common data structures (e.g. HTML, ZIP, XML etc.)., (*3)
Table of contents
Features
Provides helpers for conversion-/modification-, validation-, extraction-/search-, and many more for:, (*4)
- Date/Time handling
- File I/O
- HTML
- Image
- JSON
- Numeric
- Reflection
- Server/Client
- String
- XML
- ZIP
Log-Wrapper
This package uses the gyselroth logger wrapper.
See it's documentation for further info on how to setup and use it from within PHP applications of different
frameworks., (*5)
Minimum Requirements
Installation
For use within your application
composer require gyselroth/php-helper
Standalone-installation / For developing the php-helper package
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
composer install
Continuous Integration
php-helper is continuously checked regarding it's stability, code quality and standards using these third party tools:, (*6)
Tool |
Description |
Travis CI |
Hosted continuous integration service used to build and test software projects |
PHPSTan |
PHP Static Analyzer |
PHPUnit |
The PHP Testing Framework |
PHP CodeSniffer |
Detect violations of defined coding standard (PSR-2) |
CodeFactor |
Automated Code Review for git |
Thanks a lot!, (*7)
Check Code Standards
phpcs --standard=PSR2 $(find ./src -name '*.php')
Run Unit Tests
vendor/bin/phpunit tests/
or:, (*8)
composer test
Static Analysis
vendor/bin/phpstan analyse /srv/www/trunk/src -c /srv/www/trunk/var/ci/phpstan/phpstan.neon
Contributing
See CONTRIBUTING.md, (*9)
History
See CHANGELOG.md, (*10)
Author and License
Copyright 2017-2020 gyselroth™ (http://www.gyselroth.com), (*11)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at, (*12)
http://www.apache.org/licenses/LICENSE-2.0":http://www.apache.org/licenses/LICENSE-2.0, (*13)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License., (*14)
Used Open Source Software
Open source packages used by the gyselroth Helper Library are copyright of their vendors, see related licenses within
the vendor packages., (*15)