vietdien2005 / minion-phalcon
Minion CMS - Open source CMS. Written in Phalcon PHP Framework (v3.x). Structure folder like Laravel.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.6
- ext-intl: *
- ext-phalcon: >=3.0
- robmorgan/phinx: dev-master
- sneakybobito/phalcon-stubs: *
This package is not auto-updated.
Last update: 2024-12-07 21:43:45 UTC
README
Minion CMS - Written in Phalcon PHP Framework (version 3.x supported). Inherit from YonaCMS, but structure folder look like Laravel
Installation
Composer
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
Config environmet of your application in app/global.php
Permissions
chmod a+w data -R
chmod a+w public/assets -R
chmod a+w public/img -R
chmod a+w public/robots.txt
Nginx
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;
}
}
Admin dashboard
Open http://minion.dev/admin and auth:
- login: admin
- password: 12345678
Change admin user password.
Database
Edit /config/environment/development.php and setup database connection. Import MySQL dump file minion-cms.sql
Phinx migrations
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
Elixir
Config elixir in gulpfile.js
Build development:
gulp watch
Build production:
gulp --production
Requirements
- php 5.6+
- phalcon 3.0.0+
- mysql
- php-intl
- nginx