PHP code example of oleksandr-torosh / yona-cms

1. Go to this page and download the library: Download oleksandr-torosh/yona-cms 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/ */

    

oleksandr-torosh / yona-cms example snippets


server {

    listen   80;
    server_name yona-cms.dev;

    index index.php;
    set $root_path '/var/www/yona-cms/public';
    root $root_path;

    try_files $uri $uri/ @rewrite;

    location @rewrite {
        rewrite ^/(.*)$ /index.php?_url=/$1;
    }

    location ~ \.php {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        # fastcgi_pass 127.0.0.1:9000;

        fastcgi_index index.php;

        

php vendor/bin/phinx create NewMigrationName

php vendor/bin/phinx -e development migrate

php vendor/bin/phinx -e development rollback

export PHINX_ENVIRONMENT=development