Component\Util\Reflection
Component\Util\Reflection is a simple-to-use PHP component that
provides operations for the [PHP Reflection Application Programming Interface
(API)][53]., (*1)
, (*2)
, (*3)
, (*4)
Table of Contents (ToC)
Introduction
Component\Util\Reflection consists of one artifact:, (*5)
- The static class [
ReflectionUtils
][54]: Provides methods which simplify the
usage of the [PHP Reflection Application Programming Interface (API)][53].
Features
Requirements
Production
Development
- [PHPUnit][41]
- [phpcpd][42]
- [phpdcd][43]
- [PHP_CodeSniffer][40]
- [PHP Mess Detector (PHPMD)][44]
- [Sami][46]
- [SensioLabs Security Checker][47]
- [php-coveralls][48]
Installation
Component\Util\Singleton should be installed using the dependency manager
Composer., (*15)
Composer is a tool for dependency management in PHP. It allows you
to declare the dependent libraries your project needs and it will install them
in your project for you., (*16)
The Composer installer can be downloaded with php
., (*17)
php -r "readfile('https://getcomposer.org/installer');" | php
This will just check a few PHP settings and then download composer.phar
to your working directory. This file is the Composer binary. It is a PHAR
, which is an archive format for PHP which can be run
on the command line, amongst other things., (*18)
To resolve and download dependencies, run the install
command:, (*19)
php composer.phar install
If you are creating a component that relies on Component\Util\Singleton,
please make sure that you add Component\Util\Singleton to your component's
composer.json
file:, (*20)
{
"require": {
"florianwolters/component-Util-Reflection": "0.3.*"
}
}
Usage
The best documentation for Component\Util\Singleton are the unit tests,
which are shipped in the package., (*21)
Additional documentation can be found in the [official Wiki][55] of the project., (*22)
Testing
phpunit
Contributing
Please see CONTRIBUTING for details., (*23)
Credits
License
This program is free software: you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version., (*24)
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details., (*25)
You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see https://gnu.org/licenses/lgpl.txt., (*26)