onema/classyfile

This component provides a way to break files containing multiple classes into single files per class.

1.0.0 2015-11-19 05:32 UTC

README

SensioLabsInsight Code Climate Build Status Coverage Status Documentation Status MIT License

Scrutinizer Code Quality Code Coverage Build Status

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.