Coder Social home page Coder Social logo

charlesyq / yona-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexander-torosh/yona-cms

0.0 1.0 0.0 48.75 MB

CMS based on Phalcon PHP Framework with modular structure

Home Page: http://yonacms.com/

License: Other

PHP 75.55% CSS 2.01% Volt 13.96% JavaScript 5.46% ApacheConf 0.04% HTML 2.98%

yona-cms's Introduction

Yona CMS

Build Status Scrutinizer Code Quality

Yona CMS - open source content management system (CMS). Written in Phalcon PHP Framework (version 2.0.x supported)

Has a convenient modular structure. Has simple configuration and architecture. Can be easily modified for any task with any loads.

Project website
Documentation - old version. See installation guide in README.md
Demo

Also, you can check development branch with new functions and libraries

Announce

Now YonaCMS team prepare to new 0.5 release with new project structure and development features. .. Composer, Bower, Phinx migrations, REST API Bootstrap, Queues, Conjob tasks, AWS S3 and other cool stuffs =)

Also, YonaCMS will migrate to Phalcon 2.1 without supporting of lower Phalcon versions.

Installation

Composer

Run

composer create-project oleksandr-torosh/yona-cms -s dev

Or create composer.json file and install dependencies:

{  
    "require": {  
        "oleksandr-torosh/yona-cms": "dev-master"  
    }  
}
composer install

After some time, do not forget run composer update for update dependencies:

composer update

Composer is required. It will install required libraries. If you have error with autoload.php file, the reason - missed composer update installation step.

How to install Composer

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. Parameter APPLICATION_ENV has value “development”. Don’t forget remove it on production server.

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;

        include /etc/nginx/fastcgi_params;

        fastcgi_split_path_info       ^(.+\.php)(/.+)$;
        fastcgi_param PATH_INFO       $fastcgi_path_info;
        fastcgi_param APPLICATION_ENV "development";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

    location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
        root $root_path;
    }

    location ~ /\.ht {
        deny all;
    }

}

Apache

.htaccess file are ready configured

Admin dashboard

Open http://yona-cms/admin and auth:

  • login: yona
  • password: yonacmsphalcon

Change admin user password and delete yona user.

Database

Edit /app/config/environment/development.php and setup database connection. Import MySQL dump file yona-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

Features

  • Yona CMS saves a lot of time in starting necessary basic functionality for any project
  • The modular structure with a convenient hierarchy that is based on namespaces
  • Each module can serve as a separate independent component. Have its own routes, helpers, css, js assets
  • Multi-lingual. Manage an unlimited number of languages and translations directly from admin
  • Yona CMS is really fast!

Current version and updates in CHANGELOG.md

Requirements

  • php 5.4+
  • phalcon 2.0.7+
  • mysql
  • php-intl
  • apache (+mod_rewrite) or nginx

yona-cms's People

Contributors

alexander-torosh avatar geo-i avatar scrutinizer-auto-fixer avatar geekup-khanhtq avatar zikezhang avatar longnz avatar xboston avatar thinhvoxuan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.