prophp / params
PHP class for serving parameters
Requires (Dev)
- philippn/docker-compose: dev-master
- prophp/tests-lite: v0.1.3
This package is not auto-updated.
Last update: 2024-10-30 06:31:08 UTC
README
- PHP 8.0+
◦ Install
composer require prophp/params
◦ Create manually
▸ Take a look at README/Examples folder.
JsonParams.php
extends ProPhp\Params
▸ Create same ...Params
classes manually or ↓
◦ Render
▸ Install ...Params
renderer
composer require prophp/render-params --dev
▸ Take a look at README/Examples folder.
JsonParams.render
file was created manually
▸ Afterwards a terminal command bin/render params
was run
from a project's root (where composer.json
file is located)
JsonParams.php
file was generated automatically in the same folder
where JsonParams.render
file is located
NB! namespace
is also generated automatically 🙂
◦ USE
▸ Take a look at tests/UnitTests/Params.php file.
◦ TEST
root ▸ docker/stop-all
- optional
root ▸ docker/run
- required only if your local PHP version is lower than 8.0
docker /var/www/html
▸ php tests/UnitTests/Params.php
root ▸ docker/stop
|| docker/stop-all
- required only if your local PHP version is lower than 8.0