onema / classyfile
This component provides a way to break files containing multiple classes into single files per class.
Requires
- php: >=5.4
- fabpot/php-cs-fixer: ^1.8.1
- league/flysystem: ^1.0.4
- nikic/php-parser: ^1.3
- symfony/console: ^2.7
- symfony/event-dispatcher: ^2.7
- symfony/finder: ^2.7
Requires (Dev)
- phpunit/phpunit: ^4.6
This package is not auto-updated.
Last update: 2024-11-09 18:43:25 UTC
README
Summary
Provides a way to break PHP files containing multiple classes and creates single files per class. This can be useful when refactoring old libraries.
This library uses the nikic/PHP-Parser to parse all the php classes.
See the Documentation for more information.
Requirements
- PHP 5.4.0
Installation
Install it using composer
composer require 'onema/classyfile:^1.0.0'
Or manually add it to the composer.json
file
{ "require": { "onema/classyfile": "^1.0.0" } }
After it has been installed you can run the command: php vendor/bin/classyfile
Download from github
You can download the project from github. You still need to use composer to install all the dependencies.
git clone git@github.com:onema/classyfile.git
cd classyfile
composer install
After it has been installed you can run the command: php classyfile
Documentation
See the documentation section.