Download the PHP package hascoding/cms without Composer
On this page you can find all versions of the php package hascoding/cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hascoding/cms
More information about hascoding/cms
Files in hascoding/cms
Package cms
Short Description Simple and Open Source PHP Framework
License GPL-3.0-or-later
Homepage https://hascoding.com
Informations about the package cms
HasCodingCMS
Simple and Open Source PHP Frameworks
Download Realese Version
- Realede version : Download
- Composer install :
composer create-project hascoding/cms myapp
What is HasCodingCMS
HasCodingCMS is an Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. HasCodingCMS lets you creatively focus on your project by minimizing the amount of code needed for a given task.
Server Requirements
PHP version 5.6 or newer is recommended.
It should work on 5.4.8 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features.
Installation
Open the zip file to the directory where you will be installing then, in the /System/Config/config.php file.
Change $site_url
, $site_session_name
variables to your own.
next settings general framework structure
- System/Controller/ <- folder with your back-end codes
- System/Model/ <- folder where your database files are
- System/View/ <- folder with your front-end codes
URL Structure
For example for URL = http:// $site_url
/Controller/Action/Parameters
Creating a Simple Controller
First create a php file under the System/Controller folder.
For example: Let's create a file called Hasan
.
The content of the file should be as follows.
Codes written in System/Controller/Hasan.php file
here, make sure the class name is the same as the filename.
To your controller
- for the index page : https://
$site_url
/Hasan - for the demo page : https://
$site_url
/Hasan/demo - for the add page : https://
$site_url
/Hasan/add
Views
Views are used to display information (normally HTML). View files go in the System/View
folder. Views can be in one of two formats: Standard PHP or PHTML
Codes written in System/View/Hasan/Add.php file