PHP code example of demontpx / easy-twig
1. Go to this page and download the library: Download demontpx/easy-twig 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/ */
demontpx / easy-twig example snippets
Nginx
server {
server_name domain.tld www.domain.tld;
root /var/www/website/public;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;