Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gjhuerte/php-code-generator
- Owner: gjhuerte
- Created: 2018-11-26T09:56:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-26T10:52:02.000Z (over 2 years ago)
- Last Synced: 2024-11-07T21:08:46.415Z (2 months ago)
- Topics: code-generator, helper, php
- Language: PHP
- Homepage: https://gjhuerte.github.io/php-code-generator/
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Code Generator
> Generates a code for you on the go![](header.png)
## Installation
Requirements
- Composer
- PHP ^7.0Composer:
```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