https://github.com/yek-plus/yekcms
PHP cms scipt
https://github.com/yek-plus/yekcms
automatic cms php script
Last synced: about 2 months ago
JSON representation
PHP cms scipt
- Host: GitHub
- URL: https://github.com/yek-plus/yekcms
- Owner: YEK-PLUS
- License: mpl-2.0
- Created: 2019-05-20T19:58:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T23:08:04.000Z (about 5 years ago)
- Last Synced: 2025-04-06T14:41:40.386Z (about 1 year ago)
- Topics: automatic, cms, php, script
- Language: PHP
- Homepage: https://yek-plus.github.io/YekCMS
- Size: 7.49 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YekCMS | PHP Web Application Framework
[](https://gitpod.io/#https://github.com/YEK-PLUS/YekCMS)
[](https://travis-ci.org/YEK-PLUS/YekCMS)
[](https://github.com/YEK-PLUS/YekCMS/blob/master/LICENSE)
YekCMS is an open source CMS system for your web applications and has included frontend and backed packages for convenience.
|Frontend|Backend|
|--------|-------|
|[Jquery]|[AltoRouter]|
|[Bootstrap]|[Medoo]|
|[Materializecss]||
## Methods
Create new method and call this method in your page file
#### Normal Method
```php
$this->addMethod("HelloWord",function(){
echo 'Hello Word';
});
```
#### With Param
If you want the call function with params ,just type `$params = null` in function construction.
```php
$this->addMethod("HelloWorld",function($params = null){
# get param1 with setParams function
# setParams function arguments
# $params , indexed or associative arrays
# int , value key
$param1 = setParams($params,0);
echo $param1;
});
```
## Page Structure and Method Calling
`/src/methods/HelloWorld.php`
```php
addMethod("HelloWorld",function(){
echo 'Hello World';
});
?>
```
And include this method from `/src/methods/load.php`
```php
...
include __DIR__.'/HelloWorld.php';
```
`/src/pages/home.php`
```html
method->meta();
$this->method->css_lib();
$this->method->css_local();
?>
= SITE_NAME ?>
method->HelloWorld(); ?>
method->js_lib();
$this->method->js_local();
?>
```
File Structure
```
.
├── LICENSE
├── README.md
├── asset
│ ├── css
│ │ └── CSS Files Here
│ ├── js
│ │ └── JS Files Here
│ └── svg
| └── JS Files Here
├── lib
│ ├── AltoRouter
│ ├── Bootstrap
│ ├── Jquery
│ ├── Medoo
│ ├── Tailwind
│ ├── Font Awesome
│ └── materialize
└── src
├── admin
│ └── admin cms area
├── methods
│ └── method files
├── pages
│ └── Pages 404, home etc..
└── functions page , router etc..
```
[Jquery]:
[Bootstrap]:
[Materializecss]:
[AltoRouter]:
[Medoo]: