Package Data | |
---|---|
Maintainer Username: | vietdien2005 |
Package Create Date: | 2016-12-29 |
Package Last Update: | 2017-08-26 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-16 15:02:14 |
Package Statistics | |
---|---|
Total Downloads: | 2 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 4 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Minion CMS - Written in Phalcon PHP Framework (version 3.x supported). Inherit from YonaCMS, but structure folder look like Laravel
Run
composer create-project vietdien2005/minion-phalcon
Or create composer.json file and install dependencies:
{
"require": {
"vietdien2005/minion-phalcon": "master"
}
}
composer install
Sometime, You should run composer update for update dependencies:
composer update
Composer is required. It will install required libraries. How to install Composer
Config environmet of your application in app/global.php
chmod a+w data -R
chmod a+w public/assets -R
chmod a+w public/img -R
chmod a+w public/robots.txt
Example of configuration for php-fpm + nginx.
server {
listen 80;
server_name minion.dev;
index index.php index.html index.htm;
root /var/www/minion-phalcon/public;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index /index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
Open http://minion.dev/admin and auth:
Change admin user password.
Edit /config/environment/development.php and setup database connection. Import MySQL dump file minion-cms.sql
https://phinx.org/ Library for creation, executing and rollback migrations
Creation migration class in /data/migrations
php vendor/bin/phinx create NewMigrationName
Status
php vendor/bin/phinx -e development status
Executing new migrations
php vendor/bin/phinx -e development migrate
Rollback
php vendor/bin/phinx -e development rollback
You can set default environment for your localhost user
sudo nano ~/.bashrc
Add line
export PHINX_ENVIRONMENT=development
Config elixir in gulpfile.js
Build development:
gulp watch
Build production:
gulp --production