wsdltophp / phpgenerator
Generate php source file
Installs: 1 292 437
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- php: >=7.4
- phpstan/phpstan: ^1.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^9
README
PhpGenerator helps to generate 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.
Main features
This project contains two main features:
Testing using Docker
Thanks to the Docker image of phpfarm, tests can be run locally under any PHP version using the cli:
- php-7.4
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
FAQ
If you have a question, feel free to create an issue.
License
The MIT License (MIT). Please see License File for more information.