Skip to content
Provides a way to break PHP files containing multiple classes and creates single files per class.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
tests
.codeclimate.yml
.gitignore
.scrutinizer.yml
.travis.yml
LICENSE.md
README.md
box.json
classyfile
composer.json
mkdocs.yml
phpunit.xml.dist

README.md

classyfile

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.

You can’t perform that action at this time.