- Two files : Programme file, Data file.
- Two modes : Web Page, Command Line.
- Security : Every deployment has its own secret key. It means even the code is open source and the data file is lost, the private data is also safe.
- PHP 5.4+
- mbstring
- mcrypt
- zlib
git clone git@github.com:open-sesame/OpenSesame.git
cp dev/config.ini.sample src/config.ini
cd open-sesame/dev
php phar-packer.php --name=os --path=../src/
nohup php -S 0.0.0.0:8000 os.phar > /dev/null &
Then visit http://localhost:8000.
Two modes : Web Page
、Command Line
- Method : add certain parameter on URL :
debug
. - Function : Show the server data and template file.
- Example : http://localhost:8000?debug=1
- Rule :
PSR-1
、PSR-2
- Installation : In the
dev/
folder, runcomposer.phar install
to install the sanning tool. - Run :
./code-sniffer.sh
- Create a new command controller :
php index.php createCmd {$command_name}
- Create a new normal controller :
php index.php createController {$controller_name}
- Requirements : Set
phar.readonly
asOff
inphp.ini
. - Package : Run
dev/phar-packer.php
- Example :
./phar-packer.php --name=opensesame --path=../src
- Tool :
dev/release.sh
- Example :
./release.sh v5.0.1