A tiny php framework based on flight and medoo.
Just like Laravel
installation, set public
directory as server root path in vhost.conf
and using composer
to install or update packages and so on. You can do these in your terminal like below:
//using git
git clone https://github.com/ycrao/tinyme.git tinyme.dev
//or using composer, but skip `composer install` command below
composer create-project --prefer-dist ycrao/tinyme tinyme.dev
cd tinyme.dev
cp .env.example .env
vim .env
composer install
cd app
chmod -R 755 storage
Demo site: http://tinyme.yas.so .
TinyMe
using third-party components, you can get help from their offical website.
based on mikecao/flight
, official website : http://flightphp.com/ , https://github.com/mikecao/flight .
if (Flight::cache('data')->contains('foo')) {
$unit = Flight::cache('data')->fetch('foo');
} else {
$bar = 'bar cache';
Flight::cache('data')->save('foo', $bar);
}
based on doctrine/cache
, official website : http://docs.doctrine-project.org/en/latest/reference/caching.html , https://github.com/doctrine/cache .
$logger = Flight::log()->debug('debug log');
based on katzgrau/klogger
, official website : https://github.com/katzgrau/KLogger .
Flight::model('Page')->getPageByID(1);
Flight::db()->get('tm_page', '*', [
'id' => 1
]);
based on catfan/medoo
, official website : https://github.com/catfan/medoo , http://medoo.in/doc .
The TinyMe framework is open-sourced software licensed under the MIT license.
如果你懂中文,欢迎加入官方QQ群:260655062 。