Generate php source file
This package is auto-updated.
Last update: 2021-02-05 17:24:12 UTC
PhpGenerator helps generating PHP source code
Even if this project is yet another PHP source code generator, its main goal is to provide a consistent PHP source code generator for the PackageGenerator project. Nevertheless, it also aims to be used for any PHP source code generation process as it generates standard PHP code.
Rest assured that it is not tweaked for the purpose of the PackageGenerator project.
This project contains two main features:
Testing using Docker
First of all, you need to create your container which you can do using docker-compose by running the below command line from the root directory of the project:
$ docker-compose up -d --build
You then have a container named
php_generator in which you can run
composer commands and
php cli commands such as:
# install deps in container (using update ensure it does use the composer.lock file if there is any) $ docker exec -it php_generator php-7.4 /usr/bin/composer update # run tests in container $ docker exec -it php_generator php-7.4 -dmemory_limit=-1 vendor/bin/phpunit
If you have a question, feel free to create an issue.
The MIT License (MIT). Please see License File for more information.