There is no license information available for the latest version (1.0.0) of this package.

Lightning Fast PHP Framework.

1.0.0 2020-06-11 21:22 UTC

This package is auto-updated.

Last update: 2024-02-08 06:38:02 UTC


README

A lightning fast PHP framework.

INSTALLATION: In your web folder, run the following:

Create a git repo.

git init

Add the Lightning repo

git submodule add git@github.com:macdabby/Lightning.git

Run the main install script.

This will walk you through all the installation options, including connecting to the database and creating an admin user. You should already have a MySQL database set up with a username and password before starting this script. Lightning/install.sh

Install default content.

This is part of the installation process, but at any time you can import default data by running this script. Lightning/lightning database import-defaults

Create an admin user.

This is part of the installation process, but you can always add a new admin user by running this script. Lightning/lightning user create-admin

Build the CSS and JS files

cd Source/Resources gulp

Nginx Configuration

Make sure to set your own domain, root directory, and php socket. server { server_name fqdn.com; root /var/www/lightning_site;

index index.php;

# Add any static file paths here
location ~ /(css/|fonts/|images/|js/|flash/|favicon\.(png|ico)) {
    try_files $uri /404.html;
}

location /admin {
    client_max_body_size 512M;
    include        fastcgi_params;
    fastcgi_param  QUERY_STRING     request=$uri&$query_string;
    fastcgi_param  SCRIPT_FILENAME  $document_root/index.php;
    fastcgi_pass   unix:/run/php/php7.0-fpm.sock;
}

location / {
    include        fastcgi_params;
    fastcgi_param  QUERY_STRING     request=$uri&$query_string;
    fastcgi_param  SCRIPT_FILENAME  $document_root/index.php;
    fastcgi_pass   unix:/run/php/php7.0-fpm.sock;
}

}