Skip to content

CLSystems/PhalCMS

Repository files navigation

PhalCMS

A Content Management System based on Phalcon v4 and UIKit v3

Requirements

  • Apache
  • PHP >= 7.2
  • MySql >= 5.7
  • Phalcon >= 4.0
  • PHP JSON extension
  • PHP MBSTRING extension
  • PHP ZIP extension
  • PHP mod-rewrite
  • Composer

Included

Core features

  • Multilingual
  • Categories nested (Nested Set Model)
  • Posts
  • Products
  • Comments
  • Custom fields
  • Menus
  • Widgets
  • Plugins
  • Mailer
  • Users
  • Roles
  • Custom admin path
  • Template override
  • Auto compress JS and CSS
  • ...

Core assets - a HUGE thank you to

  • Jquery v1.12.4
  • Jquery ui v1.12.1
  • Jquery nested
  • UIkit v3.3.2

Installation for Development

Clone this repo

git clone https://github.com/clsystems/phalcms.git

Add current user to www-data group (to allow writing config.ini file during install)

sudo usermod -a -G www-data $USER

Chmod permissions

cd phalcms
sudo chgrp -R www-data src
sudo chmod -R g+w src
sudo chmod -R g+s src

Composer install

cd src
composer install

Run website

Create a database with utf8mb4_unicode_ci collation.
Default database name is phalcms.

Make sure to setup your domain in such a way that 'src/public' is the webdirectory.
ie: "Document Root /var/www/example.tld/src/public"

Browse to http://example.tld and enjoy

OR

Build with Docker

cd ../
docker-compose build
docker-compose up -d

Browse http://localhost:8000 and enjoy

CLI

When located in main folder (1 step above /src) do:

php cli.php task:main

NB: CLI will only function AFTER config.ini has been created.