PHP code example of marrow / anvil
1. Go to this page and download the library: Download marrow/anvil library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marrow / anvil example snippets
bash
php forge anvil:install # app container only — matches the default SQLite driver
php forge anvil:install --services=mysql,redis,node
php forge anvil:install --services=pgsql,memcached,mailpit,minio
php forge anvil:install --force # overwrite existing files
yaml
command: php forge serve --host=0.0.0.0 --port=8000