framework from cmptech.info
Switch branches/tags
Nothing to show
Clone or download
Latest commit 46b89d6 Aug 26, 2017

README.md

What is CMP

CMP = Class.Method (Param)

A tiny "not-even-a-framework" helps building php programs very quickly in few steps, from small console tools to business website.

php -r "($f='LibCore.php')&&(class_exists('\CMP\LibCore')||(file_exists($f)||copy('https://github.com/cmptech/cmp-core/raw/master/src/LibCore.php',$f))&&require_once($f));\CMP\LibCore::println( $_SERVER );"

Official website

cmpTech.info

Composer

Source Code

Quick Mode for small console tool: (cmp-mini-framework-in-one-file \CMP\LibCore)

API Documents

https://www.gitbook.com/book/cmptech/cmp-api-doc/details

TO build website:

[TINY-WEB-SERVER WITH DOCKER]

we build a docker image that included a PHP7+swoole Environment to run up a server:

git clone https://github.com/cmptech/cmp.git
cd cmp/
sh ./server_start.sh
echo 
echo now use your browser to open http://localhost:9888/

[IN OTHER WEB SERVER]

  • Copy to any web server supports PHP5.4+
  • Copy "config.switch.override.tmp.example.php" as "config.switch.override.tmp" for switching config-folder.
  • play the cmp_demo/ and cmp_tester/

Examples

TODO

  • BPME integration ( github/cmptech/bpme-php )

Core Dependency

  • SimpleExcel [0.3.15], for the xls(xml)-php-compilation-for-langpack (NOTES: may be replaced in future) //@link QuickFunc getLang()
  • dzTemplate: a modified mini-php-page-template engine class file //@link QuickFunc include(TPL());

Training

https://www.gitbook.com/book/cmptech/cmp-training-book/

https://cmptech.gitbooks.io/cmp-training-book/content/