PHP code example of caffeina-core / base-application
1. Go to this page and download the library: Download caffeina-core/base-application 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/ */
caffeina-core / base-application example snippets
bash
server {
listen 80 default_server;
root PATH_TO_YOUR_APP_DIR/public/;
index index.php index.html index.htm;
location / {
try_files $uri /index.php$is_args$args;
}
# pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;