shellscript.download

📱 For the full interactive experience, visit shellscript.download

← Home

php-rest-api.sh

load.sh php-rest-api
php-rest-api.sh: Install byjg/rest-reference-architecture in unattended mode
Required Arguments:
  <folder>          Target folder name where the project will be created
  --namespace       Project namespace (CamelCase, e.g., MyApp, Tutorial)
  --name            Composer package name (vendor/package format, e.g., mycompany/myapp)

Optional Arguments:
  --mysql-uri       MySQL connection string (default values: schema=mysql, host=mysql-container,
                    user=root, password=mysqlp455w0rd, dev db=localdev, test db=localtest)
  --install-examples Install example code (Y or n, default: Y)
  --version         Composer version constraint (default: ^6.0)
  --php-version     PHP version for Docker (8.1, 8.2, 8.3, 8.4, default: current PHP version)
  --timezone        Server timezone (default: UTC)
  --git-name        Git user name for the project (default: from git config or "Your Name")
  --git-email       Git user email for the project (default: from git config or "[email protected]")
  -h, --help        Show this help and exit

Notes:
- Requires composer installed on the system or use load.sh php-docker first
- The setup.json file will be created in the parent directory of the target folder
- The setup.json file is automatically removed after successful installation
- If the target folder exists, the script will fail (safety measure)

Return to Home