Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gjhuerte/php-code-generator

Helper class for generating code using php
https://github.com/gjhuerte/php-code-generator

code-generator helper php

Last synced: about 1 month ago
JSON representation

Helper class for generating code using php

Awesome Lists containing this project

README

        

# PHP Code Generator
> Generates a code for you on the go

![](header.png)

## Installation

Requirements

- Composer
- PHP ^7.0

Composer:

```sh
composer require gjhuerte/php-code-generator
```

Import the package and your good to go.

```php
use Aux\Generator\Code;

$code = Code::generate(10);
```

## Usage example (Under construction)

#### Default Token Generator

![](https://imgur.com/EAbe9tv.png)

#### Specifying Custom Format

![](https://imgur.com/QmmKNHx.png)
![](https://imgur.com/2uDUVx1.png)

#### You can also add your own unique validation

![](https://imgur.com/jutX9d0.png)

## Development setup

All you need to do is clone the repository. Run `composer install` to install all dependencies for testing.

```sh
git clone https://github.com/gjhuerte/php-code-generator.git
```

## Release History

* 1.0.0
* More official functions for the generator

* 0.1.0
* Initial Release

## Meta

Gabriel Jay Huerte – [@gjhuerte]([email protected])

Distributed under the MIT license. See ``LICENSE`` for more information.

[https://github.com/gjhuerte/php-code-generator.git](https://github.com/gjhuerte/)

## Contributing

1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request