PHP code example of laminas / laminas-mvc-skeleton
1. Go to this page and download the library: Download laminas/laminas-mvc-skeleton 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/ */
laminas / laminas-mvc-skeleton example snippets
sh
# RUN apt-get install --yes libpq-dev \
# && docker-php-ext-install pdo_pgsql
nginx
server {
listen 80;
server_name laminasapp.localhost;
root /path/to/laminasapp/public;
location / {
index index.php;
try_files $uri $uri/ @php;
}
location @php {
# Pass the PHP requests to FastCGI server (php-fpm) on 127.0.0.1:9000
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /path/to/laminasapp/public/index.php;
bash
$ composer