docs/index.md
# ClassyFile
## 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](https://github.com/nikic/PHP-Parser) to parse all the php classes.
## 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
```json
{
"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](https://github.com/onema/classyfile). 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`