diff --git a/.gitignore b/.gitignore index c41c91b..20d7e5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ vendor/* .idea/* + +.zedstate diff --git a/.travis.yml b/.travis.yml index a631e4d..18d60fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: php php: - 5.6 -before_script: composer update -script: phpunit vendor/damnstupidsimple/core/tests/AppTest.php --colors=auto +before_script: composer update --ignore-platform-reqs +script: phpunit tests/AppTest.php --colors=auto diff --git a/README.md b/README.md index 709b3e7..3961507 100755 --- a/README.md +++ b/README.md @@ -2,10 +2,9 @@ Follow us on [Facebook](https://www.facebook.com/stupidlysimpleframework). -[![Join the chat at https://gitter.im/stupidlysimpleframework](https://badges.gitter.im/stupidlysimple/php.svg)](https://gitter.im/stupidlysimpleframework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Chat with Discord](https://i.imgur.com/imbJExE.jpg)](https://discord.gg/EQ4w9Cs) -[![PHP version](https://badge.fury.io/ph/stupidlysimple%2Fphp.svg)](https://badge.fury.io/ph/stupidlysimple%2Fphp) [![Build](https://api.travis-ci.org/stupidlysimple/php.svg)](https://travis-ci.org/stupidlysimple/php) -[![Total Downloads](https://poser.pugx.org/stupidlysimple/php/downloads)](https://packagist.org/packages/stupidlysimple/php) +[![PHP version](https://badge.fury.io/ph/stupidlysimple%2Fphp.svg)](https://badge.fury.io/ph/stupidlysimple%2Fphp) [![Build](https://api.travis-ci.org/stupidlysimple/php.svg)](https://travis-ci.org/stupidlysimple/php) [![Style-CI](https://styleci.io/repos/62019007/shield?branch=nightly)](https://styleci.io/repos/62019007) [![Scrutinizer-CI](https://scrutinizer-ci.com/g/stupidlysimple/php/badges/quality-score.png?b=nightly)](https://scrutinizer-ci.com/g/stupidlysimple/php/) [![Total Downloads](https://poser.pugx.org/stupidlysimple/php/downloads)](https://packagist.org/packages/stupidlysimple/php) [![composer.lock](https://poser.pugx.org/stupidlysimple/php/composerlock)](https://packagist.org/packages/stupidlysimple/php) [![License](https://img.shields.io/:license-mit-blue.svg)](https://github.com/stupidlysimple/php/blob/master/LICENSE) [![Made In](https://img.shields.io/badge/made%20in-Malaysia-red.svg)](https://www.google.com/search?q=malaysia) @@ -92,8 +91,6 @@ Introducing nightly builds: we are really committed to project that we decided t Nightly builds are released more often than the stable build. Eventually a nightly build will be converted to stable. -Developers are very recommended to create pull request under the nightly branch. - [Get nightly builds](https://github.com/stupidlysimple/php/wiki/Nightly-Builds) [[back to top]](#table-of-contents) diff --git a/app/Controller/Admin.php b/app/Controller/Admin.php deleted file mode 100755 index a4089c9..0000000 --- a/app/Controller/Admin.php +++ /dev/null @@ -1,33 +0,0 @@ - - * @copyright 2017 Fariz Luqman - * @license MIT - * @link https://stupidlysimple.github.io/ - */ -namespace Controller; - -use Sentry; -use Viewer; -use Response; - -class Admin { - - public function __construct(){ - if(Sentry::check() !== true){ - Response::redirect('login'); - } - } - - public static function redirectToAdminHome(){ - Response::redirect('admin'); - } - - public function displayAdminPage(){ - Viewer::file('resources/views/admin/home'); - } - -} diff --git a/app/Controller/Auth.php b/app/Controller/Auth.php index 6690e8e..6586207 100755 --- a/app/Controller/Auth.php +++ b/app/Controller/Auth.php @@ -1,130 +1,131 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ -namespace Controller; -use Sentry; -use Response; -use Request; -use Viewer; +namespace Controller; -class Auth { - public function __construct() - { - } +use Cartalyst\Sentry\Facades\Native\Sentry; +use Cartalyst\Sentry\Users; +use Simplyfier\Http\Request; +use Simplyfier\Http\Response; - public function displayRegisterPage() - { - Viewer::file('resources/views/auth/register'); - } +/** + * Class Auth. + */ +class Auth +{ + private static $successRedirectURL = 'admin'; - public function displayLoginPage() + public static function check() { - Viewer::file('resources/views/auth/login'); + if (Sentry::check() !== true) { + Response::redirect('login'); + } } - public function doAuthenticate() + public static function authenticate() { - try{ + try { // Login credentials - $credentials = array( + $credentials = [ 'email' => Request::get('email'), - 'password' => Request::get('password') - ); + 'password' => Request::get('password'), + ]; + // Authenticate the user $user = Sentry::authenticate($credentials, false); - - }catch (\Cartalyst\Sentry\Users\LoginRequiredException $e){ + } catch (Users\LoginRequiredException $e) { Response::redirect('login')->with([ - 'login_message'=>'Login credentials not supplied', - 'type' =>'alert-danger' + 'login_message'=> 'Login credentials not supplied', + 'type' => 'alert-danger', ]); - - }catch (\Cartalyst\Sentry\Users\PasswordRequiredException $e){ + } catch (Users\PasswordRequiredException $e) { Response::redirect('login')->with([ - 'login_message'=>'Password field is required', - 'type' =>'alert-danger' + 'login_message'=> 'Password field is required', + 'type' => 'alert-danger', ]); - - }catch (\Cartalyst\Sentry\Users\WrongPasswordException $e){ + } catch (Users\WrongPasswordException $e) { Response::redirect('login')->with([ - 'login_message'=>'Wrong password, try again.', - 'type' =>'alert-danger' + 'login_message'=> 'Wrong password, try again.', + 'type' => 'alert-danger', ]); - - }catch (\Cartalyst\Sentry\Users\UserNotFoundException $e){ + } catch (Users\UserNotFoundException $e) { Response::redirect('login')->with([ - 'login_message'=>'User not found.', - 'type' =>'alert-danger' + 'login_message'=> 'User not found.', + 'type' => 'alert-danger', ]); - - }catch (\Cartalyst\Sentry\Users\UserNotActivatedException $e){ + } catch (Users\UserNotActivatedException $e) { Response::redirect('login')->with([ - 'login_message'=>'User is not activated.', - 'type' =>'alert-danger' + 'login_message'=> 'User is not activated.', + 'type' => 'alert-danger', ]); - - }finally{ - if(Sentry::check() === true){ - Admin::redirectToAdminHome(); - }else{ + } finally { + if (Sentry::check() === true) { + Response::redirect(self::$successRedirectURL)->with([ + 'login_message'=> 'Login successful.', + 'type' => 'alert-success', + ]); + } else { Response::redirect('login')->with([ - 'login_message'=>'Unable to login', - 'type' =>'alert-danger' + 'login_message'=> 'Unable to login', + 'type' => 'alert-danger', ]); } } } - public function doRegister(){ - try{ - $user = Sentry::register(array( - 'email' => Request::get('email'), - 'password' => Request::get('password'), + public static function register() + { + try { + $user = Sentry::register([ + 'email' => Request::get('email'), + 'password' => Request::get('password'), 'first_name' => Request::get('first_name'), - 'last_name' => Request::get('last_name') - ), $activate = true); - - }catch (\Cartalyst\Sentry\Users\LoginRequiredException $e){ + 'last_name' => Request::get('last_name'), + ], $activate = true); + } catch (Users\LoginRequiredException $e) { Response::redirect('register')->with([ - 'login_message'=>'Login credentials not supplied', - 'type' =>'alert-danger' + 'login_message'=> 'Login credentials not supplied', + 'type' => 'alert-danger', ]); - - }catch (\Cartalyst\Sentry\Users\PasswordRequiredException $e){ + } catch (Users\PasswordRequiredException $e) { Response::redirect('register')->with([ - 'login_message'=>'Password field is required', - 'type' =>'alert-danger' + 'login_message'=> 'Password field is required', + 'type' => 'alert-danger', ]); - - }catch (\Cartalyst\Sentry\Users\UserExistsException $e){ + } catch (Users\UserExistsException $e) { Response::redirect('register')->with([ - 'login_message'=>'User with that login already exist.', - 'type' =>'alert-danger' + 'login_message'=> 'User with that login already exist.', + 'type' => 'alert-danger', ]); - - }catch(\Exception $e){ - - }finally{ - if($user){ + } catch (\Exception $e) { + Response::redirect('register')->with([ + 'login_message'=> 'Login is not successful.', + 'type' => 'alert-danger', + ]); + } finally { + if ($user) { Response::redirect('login')->with([ - 'login_message'=>'Registration successful. You can now login.', - 'type' =>'alert-success' + 'login_message'=> 'Registration successful. You can now login.', + 'type' => 'alert-success', ]); } } } - public function doLogout(){ + public static function logout() + { Sentry::logout(); - Response::redirect('login'); + Response::redirect('login')->with([ + 'login_message'=> 'Logout successful.', + 'type' => 'alert-success', + ]); } - } diff --git a/app/Controller/Hello.php b/app/Controller/Hello.php index 28bc7ef..6f1921f 100755 --- a/app/Controller/Hello.php +++ b/app/Controller/Hello.php @@ -1,28 +1,32 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ + namespace Controller; -use Core\Response; -use Core\Request; +use Simplyfier\Http\Request; -class Hello { - public function greetWithName($name){ - echo ('Hello, '. $name. '!'); +class Hello +{ + public function greetWithName($name) + { + echo 'Hello, '.$name.'!'; } - public function greetForm(){ + + public function greetForm() + { $name = Request::get('name'); - if($name == ''){ + if ($name == '') { echo 'How could you have no name :('; - }else{ - echo ('Hello, '. $name. '!'); + } else { + echo 'Hello, '.$name.'!'; } } -} \ No newline at end of file +} diff --git a/app/Controller/User.php b/app/Controller/User.php index 1613b5f..f2cf0a4 100755 --- a/app/Controller/User.php +++ b/app/Controller/User.php @@ -1,44 +1,49 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ + namespace Controller; -use Sentry; -use Viewer; -use Response; use Request; +use Response; +use Sentry; -class User { - - public function __construct(){ +class User +{ + /** + * User constructor. + */ + public function __construct() + { // Always check whether the user is logged in or not to do the action - if(Sentry::check() !== true){ + if (Sentry::check() !== true) { Response::redirect('login'); } } - public function editUser(){ + public function editUser() + { $id = Request::get('id'); $first_name = Request::get('first_name'); $last_name = Request::get('last_name'); $password = Request::get('password'); - try - { - if($password == ''){ + + try { + if ($password == '') { // change first_name and last_name $user = \Model\User::find($id); $user->first_name = $first_name; $user->last_name = $last_name; $user->save(); Response::redirect('admin?edit=success'); - }else{ + } else { // Find the user using the user id $user = Sentry::findUserById($id); @@ -46,11 +51,9 @@ public function editUser(){ $resetCode = $user->getResetPasswordCode(); // Check if the reset password code is valid - if ($user->checkResetPasswordCode($resetCode)) - { + if ($user->checkResetPasswordCode($resetCode)) { // Attempt to reset the user password - if ($user->attemptResetPassword($resetCode, $password)) - { + if ($user->attemptResetPassword($resetCode, $password)) { // change first_name and last_name $user = \Model\User::find($id); $user->first_name = $first_name; @@ -58,22 +61,16 @@ public function editUser(){ $user->save(); Response::redirect('admin?edit=success'); - } - else - { + } else { // Password reset failed echo 'Password reset failed'; } - } - else - { + } else { // The provided password reset code is Invalid echo 'Invalid password reset code'; } } - } - catch (Exception $e) - { + } catch (\Exception $e) { echo 'User was not found.'; } } @@ -81,17 +78,16 @@ public function editUser(){ public function deleteUser() { $id = Request::get('id'); - try - { + + try { $user = \Model\User::find($id); - if($user === null){ + if ($user === null) { Response::redirect('admin?delete=failed'); } $user->delete(); - }catch(Exception $e) - { + } catch (\Exception $e) { Response::redirect('admin?delete=failed'); } diff --git a/app/Controller/Web.php b/app/Controller/Web.php new file mode 100755 index 0000000..13ef60c --- /dev/null +++ b/app/Controller/Web.php @@ -0,0 +1,23 @@ + + * @copyright 2017 Fariz Luqman + * @license MIT + * + * @link https://stupidlysimple.github.io/ + */ + +namespace Controller; + +/** + * Class Web. + */ +class Web +{ + public function start() + { + // do nothing + } +} diff --git a/app/Middleware/Hello.php b/app/Middleware/Hello.php new file mode 100644 index 0000000..34907ec --- /dev/null +++ b/app/Middleware/Hello.php @@ -0,0 +1,29 @@ +with([ + 'login_message'=> 'This route have been filtered by the Hello middleware', + 'type' => 'alert-warning', + ]); + } + } +} diff --git a/app/Model/Comment.php b/app/Model/Comment.php index b94cd67..e8bc661 100755 --- a/app/Model/Comment.php +++ b/app/Model/Comment.php @@ -1,22 +1,25 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ + namespace Model; use Illuminate\Database\Eloquent\Model as Eloquent; -class Comment extends Eloquent { +class Comment extends Eloquent +{ /** * Get the post for the comment. */ - public function comments() { - return $this->belongsTo('Model\Post','user_id'); + public function comments() + { + return $this->belongsTo('Model\Post', 'user_id'); } -} \ No newline at end of file +} diff --git a/app/Model/Post.php b/app/Model/Post.php index aa858e8..2f35d2d 100755 --- a/app/Model/Post.php +++ b/app/Model/Post.php @@ -1,26 +1,30 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ + namespace Model; use Illuminate\Database\Eloquent\Model as Eloquent; -class Post extends Eloquent{ +class Post extends Eloquent +{ /** * Get the comments for the Post. */ - public function comments() { + public function comments() + { return $this->hasMany('Model\Comment'); } - public function author(){ - return $this->belongsTo('Model\User','author_id'); + public function author() + { + return $this->belongsTo('Model\User', 'author_id'); } } diff --git a/app/Model/User.php b/app/Model/User.php index fca17ac..97bb30e 100755 --- a/app/Model/User.php +++ b/app/Model/User.php @@ -1,17 +1,18 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ + namespace Model; use Illuminate\Database\Eloquent\Model as Eloquent; -class User extends Eloquent{ - +class User extends Eloquent +{ } diff --git a/app/Service/Test/TestService.php b/app/Service/Test/TestService.php index 8fcdf1c..66b0bf3 100644 --- a/app/Service/Test/TestService.php +++ b/app/Service/Test/TestService.php @@ -1,45 +1,59 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ + namespace Service\Test; -use ServiceContainer; +use Model\User; +use Simplyfier\Service\ServiceContainer; +/** + * Class TestService. + */ class TestService extends ServiceContainer { + /** + * @return string + */ public function hello() { return 'Hello'; } + /** + * @param $var1 + * @param $operation + * @param $var2 + * + * @return float|int|string + */ public function calculate($var1, $operation, $var2) { - if($operation == 'plus' || $operation == '+') - { + if ($operation == 'plus' || $operation == '+') { return $var1 + $var2; - }else if($operation == 'minus' || $operation == '-') - { + } elseif ($operation == 'minus' || $operation == '-') { return $var1 - $var2; - }else if($operation == 'multiply' || $operation == '*') - { + } elseif ($operation == 'multiply' || $operation == '*') { return $var1 * $var2; - }else if($operation == 'divide' || $operation == '/') - { + } elseif ($operation == 'divide' || $operation == '/') { return $var1 / $var2; - }else{ + } else { return 'Invalid Operation'; } } + /** + * @return \Illuminate\Database\Eloquent\Collection|static[] + */ public function getRegisteredUsers() { - return \Model\User::all(); + return User::all(); } } diff --git a/app/autoloader.php b/app/autoloader.php index 1c94ebb..ac38c99 100755 --- a/app/autoloader.php +++ b/app/autoloader.php @@ -1,11 +1,11 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ @@ -18,7 +18,7 @@ | the autoloader very well. Good guy Composer. | */ -require __DIR__ . '/../vendor/autoload.php'; +require __DIR__.'/../vendor/autoload.php'; /* |-------------------------------------------------------------------------- @@ -26,11 +26,11 @@ |-------------------------------------------------------------------------- | | Reads the config file (config/env.php) and register it in using the -| putenv() function. Configurations are retreivable using the getenv() +| putenv() function. Configurations are retreivable using the getenv() | function everywhere in the project. | */ -Core\Config::setEnv(); +Simplyfier\Config::setEnv(); /* |-------------------------------------------------------------------------- @@ -38,7 +38,7 @@ |-------------------------------------------------------------------------- | | The debugging tool will register the error handler based on your -| configuration (located at config/env.php). +| configuration (located at config/env.php). | */ -Core\Debugger::start(); \ No newline at end of file +Simplyfier\Debugger::start(); diff --git a/app/bootstrap.php b/app/bootstrap.php index 02ad695..b980d23 100755 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -1,13 +1,22 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ +use Simplyfier\Alias; +use Simplyfier\Cache; +use Simplyfier\Database; +use Simplyfier\Debugger; +use Simplyfier\DI\Container; +use Simplyfier\DI\Sharer; +use Simplyfier\Http\Router; +use Simplyfier\Service; +use Simplyfier\TimeTrackr; /* |-------------------------------------------------------------------------- @@ -17,7 +26,7 @@ | Reads the configuration file (config/aliases.php) and create aliases | */ -Core\Alias::init(); +Alias::loadAliases(); /* |-------------------------------------------------------------------------- @@ -27,18 +36,19 @@ | Reads the configuration file (config/datetime.php) and set timezone | */ -TimeTrackr::init(); +TimeTrackr::applyConfig(); /* |-------------------------------------------------------------------------- -| Creating the Singleton +| Creating the App Container |-------------------------------------------------------------------------- | -| Damn Stupid Simple uses the Singleton to simplify coordination, while -| maintaining only one instantiation of a class. +| Create an app container to simplify coordination, while maintaining only +| one instantiation of a class. The app container is usable inside view +| files. | */ -$app = new App; +$app = new Container(); /* |-------------------------------------------------------------------------- @@ -48,7 +58,7 @@ | Connect the database for only once. Save the planet. | */ -$app->link('database', Database::connect()); +$app->put('database', Database::connect()); /* |-------------------------------------------------------------------------- @@ -59,7 +69,7 @@ | capabilities. | */ -$app->link('cachemanager', Cache::init()); +$app->put('cachemanager', Cache::initialize()); /* |-------------------------------------------------------------------------- @@ -70,14 +80,13 @@ | */ $service = Service::loadServices(); - /* |-------------------------------------------------------------------------- -| Share the Singleton $app and $service +| Store $app and $service into a hive accessible in the view files |-------------------------------------------------------------------------- | -| Eliminate complexity, get the job done. Our Dependency Injection (DI) is -| here! +| Eliminate complexity, get the job done. Our Dependency Injection (DI) for +| the view files in here! | */ Sharer::share('app', $app); @@ -104,6 +113,6 @@ | config/env.php) | */ -if(getenv('SHOW_EXECUTION_TIME')){ +if (getenv('SHOW_EXECUTION_TIME')) { Debugger::exec_time(); } diff --git a/composer.json b/composer.json index bbfb907..0a1a514 100755 --- a/composer.json +++ b/composer.json @@ -1,38 +1,62 @@ { - "name": "stupidlysimple/php", - "description": "StupidlySimple Framework for PHP - MVC Framework for lazy developers", - "keywords": ["micro framework","lazy","stupidlysimple","php framework"], - "license": "MIT", - "type": "project", - "authors": [{ - "name": "Fariz Luqman", - "email": "fariz.fnb@gmail.com", - "homepage": "https://stupidlysimple.github.io", - "role": "Developer" - }], - "config": { - "vendor-dir": "vendor" - }, - "require": { - "php": ">=5.4.0", - "filp/whoops": "^2.1", - "stupidlysimple/php-core": "0.4.*", - "symfony/var-dumper": "^3.1", - "phpFastCache/phpFastCache": "^4.3", - "illuminate/database": "5.2.*", - "cartalyst/sentry": "2.1.*" - }, - "require-dev": { - "phpunit/phpunit": "5.4.*" - }, - "autoload": { - "psr-4": { - "Core\\": "app/Core" - }, - "classmap": [ - "app/Model", - "app/Controller", - "app/Service" - ] + "name": "stupidlysimple/php", + "description": "StupidlySimple Framework for PHP - MVC Framework for lazy developers", + "keywords": [ + "micro framework", + "lazy", + "stupidlysimple", + "php framework" + ], + "license": "MIT", + "type": "project", + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" } + ], + "config": { + "vendor-dir": "vendor", + "platform": { + "php": "5.6" + } + }, + "minimum-stability": "dev", + "require": { + "php": ">=5.4.0", + "filp/whoops": "^2.1", + "symfony/var-dumper": "^3.1", + "phpFastCache/phpFastCache": "^4.3", + "illuminate/database": "5.2.*", + "cartalyst/sentry": "2.1.*", + "simplyfier/alias": "dev-master", + "simplyfier/config": "dev-master", + "simplyfier/cache": "dev-master", + "simplyfier/http": "dev-master", + "simplyfier/di": "dev-master", + "simplyfier/debugger": "dev-master", + "simplyfier/timetrackr": "dev-master", + "simplyfier/viewer": "dev-master", + "simplyfier/database": "dev-master", + "simplyfier/service": "dev-master", + "zircote/swagger-php": "^2.0", + "mustache/mustache": "~2.5", + "twig/twig": "^2.0" + }, + "require-dev": { + "phpunit/phpunit": "5.4.*" + }, + "autoload": { + "psr-4": { + "Simplyfier\\Viewer\\Providers\\": "vendor/simplyfier/viewer/Providers" + }, + "classmap": [ + "app/Model", + "app/Controller", + "app/Service", + "app/Middleware" + ] + } } diff --git a/composer.lock b/composer.lock index 5e5f048..992af1b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "58c3c1c9d434587c91e97c4ee3f8414f", + "content-hash": "3ebdadedb050266f8fe7169fecf42ec1", "packages": [ { "name": "cartalyst/sentry", - "version": "v2.1.6", + "version": "2.1.x-dev", "source": { "type": "git", "url": "https://github.com/cartalyst/sentry.git", - "reference": "fc70d46ad77aae599ac1f6f1571b4517d0783fc8" + "reference": "c679730b8848686f59125cd821bf94946fb16a94" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cartalyst/sentry/zipball/fc70d46ad77aae599ac1f6f1571b4517d0783fc8", - "reference": "fc70d46ad77aae599ac1f6f1571b4517d0783fc8", + "url": "https://api.github.com/repos/cartalyst/sentry/zipball/c679730b8848686f59125cd821bf94946fb16a94", + "reference": "c679730b8848686f59125cd821bf94946fb16a94", "shasum": "" }, "require": { @@ -104,37 +104,105 @@ "laravel", "security" ], - "time": "2015-11-26T01:19:39+00:00" + "time": "2016-09-05 00:18:34" + }, + { + "name": "doctrine/annotations", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/doctrine/annotations.git", + "reference": "ff479e64fc3e3c91e947349a06c628b5bac31c27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/ff479e64fc3e3c91e947349a06c628b5bac31c27", + "reference": "ff479e64fc3e3c91e947349a06c628b5bac31c27", + "shasum": "" + }, + "require": { + "doctrine/lexer": "1.*", + "php": "^7.1" + }, + "require-dev": { + "doctrine/cache": "1.*", + "phpunit/phpunit": "^5.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Docblock Annotations Parser", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "annotations", + "docblock", + "parser" + ], + "time": "2017-10-08 08:05:29" }, { "name": "doctrine/inflector", - "version": "v1.1.0", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" + "reference": "40daa067a3e5fb95572236a346a8290e4445778f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/40daa067a3e5fb95572236a346a8290e4445778f", + "reference": "40daa067a3e5fb95572236a346a8290e4445778f", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "^6.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector" } }, "notification-url": "https://packagist.org/downloads/", @@ -171,24 +239,79 @@ "singularize", "string" ], - "time": "2015-11-06T14:35:42+00:00" + "time": "2017-10-04 05:38:52" + }, + { + "name": "doctrine/lexer", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "cc709ba91eee09540091ad5a5f2616727662e41b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/cc709ba91eee09540091ad5a5f2616727662e41b", + "reference": "cc709ba91eee09540091ad5a5f2616727662e41b", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "lexer", + "parser" + ], + "time": "2017-07-24 09:37:08" }, { "name": "filp/whoops", - "version": "2.1.5", + "version": "2.1.10", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "2abce9d956589122c6443d6265f01cf7e9388e3c" + "reference": "ffbbd2c06c64b08fb47974eed5dbce4ca2bb0eec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/2abce9d956589122c6443d6265f01cf7e9388e3c", - "reference": "2abce9d956589122c6443d6265f01cf7e9388e3c", + "url": "https://api.github.com/repos/filp/whoops/zipball/ffbbd2c06c64b08fb47974eed5dbce4ca2bb0eec", + "reference": "ffbbd2c06c64b08fb47974eed5dbce4ca2bb0eec", "shasum": "" }, "require": { - "php": "^5.5.9 || ^7.0" + "php": "^5.5.9 || ^7.0", + "psr/log": "^1.0.1" }, "require-dev": { "mockery/mockery": "0.9.*", @@ -231,11 +354,11 @@ "whoops", "zf2" ], - "time": "2016-12-26T16:13:31+00:00" + "time": "2017-08-03T18:23:40+00:00" }, { "name": "illuminate/container", - "version": "v5.2.45", + "version": "5.2.x-dev", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", @@ -274,20 +397,20 @@ ], "description": "The Illuminate Container package.", "homepage": "http://laravel.com", - "time": "2016-08-01T13:49:14+00:00" + "time": "2016-08-01 13:49:14" }, { "name": "illuminate/contracts", - "version": "v5.2.45", + "version": "5.2.x-dev", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "22bde7b048a33c702d9737fc1446234fff9b1363" + "reference": "66eb2baef315664740c9f87d6f3f5b7347a05da9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/22bde7b048a33c702d9737fc1446234fff9b1363", - "reference": "22bde7b048a33c702d9737fc1446234fff9b1363", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/66eb2baef315664740c9f87d6f3f5b7347a05da9", + "reference": "66eb2baef315664740c9f87d6f3f5b7347a05da9", "shasum": "" }, "require": { @@ -316,20 +439,20 @@ ], "description": "The Illuminate Contracts package.", "homepage": "http://laravel.com", - "time": "2016-08-08T11:46:08+00:00" + "time": "2017-08-12 11:45:44" }, { "name": "illuminate/database", - "version": "v5.2.45", + "version": "5.2.x-dev", "source": { "type": "git", "url": "https://github.com/illuminate/database.git", - "reference": "4a70c0598ed41d18a99f23c12be4e22b5006d30a" + "reference": "3fcbb875ff345307579182ca0eb0fffe17132350" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/database/zipball/4a70c0598ed41d18a99f23c12be4e22b5006d30a", - "reference": "4a70c0598ed41d18a99f23c12be4e22b5006d30a", + "url": "https://api.github.com/repos/illuminate/database/zipball/3fcbb875ff345307579182ca0eb0fffe17132350", + "reference": "3fcbb875ff345307579182ca0eb0fffe17132350", "shasum": "" }, "require": { @@ -376,20 +499,20 @@ "orm", "sql" ], - "time": "2016-08-25T07:01:20+00:00" + "time": "2017-08-12 11:45:44" }, { "name": "illuminate/support", - "version": "v5.2.45", + "version": "5.2.x-dev", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "510230ab62a7d85dc70203f4fdca6fb71a19e08a" + "reference": "ba979ee49a0be1a694bebecc4e7b35df03cedda9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/510230ab62a7d85dc70203f4fdca6fb71a19e08a", - "reference": "510230ab62a7d85dc70203f4fdca6fb71a19e08a", + "url": "https://api.github.com/repos/illuminate/support/zipball/ba979ee49a0be1a694bebecc4e7b35df03cedda9", + "reference": "ba979ee49a0be1a694bebecc4e7b35df03cedda9", "shasum": "" }, "require": { @@ -435,20 +558,66 @@ ], "description": "The Illuminate Support package.", "homepage": "http://laravel.com", - "time": "2016-08-05T14:49:58+00:00" + "time": "2016-12-03 18:52:25" + }, + { + "name": "mustache/mustache", + "version": "v2.12.0", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/mustache.php.git", + "reference": "fe8fe72e9d580591854de404cc59a1b83ca4d19e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/fe8fe72e9d580591854de404cc59a1b83ca4d19e", + "reference": "fe8fe72e9d580591854de404cc59a1b83ca4d19e", + "shasum": "" + }, + "require": { + "php": ">=5.2.4" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~1.11", + "phpunit/phpunit": "~3.7|~4.0|~5.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "Mustache": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "A Mustache implementation in PHP.", + "homepage": "https://github.com/bobthecow/mustache.php", + "keywords": [ + "mustache", + "templating" + ], + "time": "2017-07-11T12:54:05+00:00" }, { "name": "nesbot/carbon", - "version": "1.22.1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc" + "reference": "926aee5ab38c2868816aa760f862a85ad01cb61a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc", - "reference": "7cdf42c0b1cc763ab7e4c33c47a24e27c66bfccc", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/926aee5ab38c2868816aa760f862a85ad01cb61a", + "reference": "926aee5ab38c2868816aa760f862a85ad01cb61a", "shasum": "" }, "require": { @@ -481,43 +650,544 @@ "homepage": "http://nesbot.com" } ], - "description": "A simple API extension for DateTime.", - "homepage": "http://carbon.nesbot.com", + "description": "A simple API extension for DateTime.", + "homepage": "http://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "time": "2017-02-06 22:02:47" + }, + { + "name": "paragonie/random_compat", + "version": "v1.x-dev", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "965cdeb01fdcab7653253aa81d40441d261f1e66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/965cdeb01fdcab7653253aa81d40441d261f1e66", + "reference": "965cdeb01fdcab7653253aa81d40441d261f1e66", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "autoload": { + "files": [ + "lib/random.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "pseudorandom", + "random" + ], + "time": "2017-03-13 16:22:52" + }, + { + "name": "phpfastcache/phpfastcache", + "version": "v4.x-dev", + "source": { + "type": "git", + "url": "https://github.com/PHPSocialNetwork/phpfastcache.git", + "reference": "82a84adff6e8fc9b564c616d0fdc9238ae2e86c3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPSocialNetwork/phpfastcache/zipball/82a84adff6e8fc9b564c616d0fdc9238ae2e86c3", + "reference": "82a84adff6e8fc9b564c616d0fdc9238ae2e86c3", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "suggest": { + "ext-apc": "*", + "ext-mbstring": "*", + "ext-memcache": "*", + "ext-memcached": "*", + "ext-predis": "*", + "ext-redis": "*", + "ext-sqlite": "*" + }, + "type": "library", + "autoload": { + "files": [ + "src/phpFastCache/phpFastCache.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Khoa Bui", + "email": "khoaofgod@gmail.com", + "homepage": "http://www.phpfastcache.com", + "role": "Developer" + }, + { + "name": "Georges.L", + "email": "contact@geolim4.com", + "homepage": "https://github.com/Geolim4", + "role": "Developer" + } + ], + "description": "PHP Cache Class - Supported Redis, Cookie, Predis, APC, MemCached, WinCache, Files, PDO, Reduce mySQL Call by Caching", + "homepage": "http://www.phpfastcache.com", + "keywords": [ + "APC Cache", + "apc", + "cache", + "cache class", + "caching", + "cookie", + "files cache", + "memcache", + "memcached", + "mysql cache", + "pdo cache", + "php cache", + "predis", + "redis", + "wincache" + ], + "time": "2017-01-24 00:38:01" + }, + { + "name": "psr/log", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2016-10-10 12:19:37" + }, + { + "name": "simplyfier/alias", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/simplyfier/alias.git", + "reference": "ed6775e49783756f6286be8e2977ad93b6165d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplyfier/alias/zipball/ed6775e49783756f6286be8e2977ad93b6165d71", + "reference": "ed6775e49783756f6286be8e2977ad93b6165d71", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Simplyfier\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" + } + ], + "description": "The alias manager", + "keywords": [ + "alias manager", + "hhvm", + "lazy", + "micro framework", + "php 7", + "php essentials", + "php framework", + "stupidly simple" + ], + "time": "2017-10-10 03:56:25" + }, + { + "name": "simplyfier/cache", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/simplyfier/cache.git", + "reference": "4e32cd3a80839fa03ec74cb0a2a3c430ab993ae4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplyfier/cache/zipball/4e32cd3a80839fa03ec74cb0a2a3c430ab993ae4", + "reference": "4e32cd3a80839fa03ec74cb0a2a3c430ab993ae4", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Simplyfier\\": "", + "Simplyfier\\Cache\\Factories\\": "factories", + "Simplyfier\\Cache\\Facades\\": "facades" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" + } + ], + "description": "The Cache manager from various providers", + "keywords": [ + "cache manager", + "hhvm", + "lazy", + "micro framework", + "php 7", + "php framework", + "stupidly simple" + ], + "time": "2017-10-10 03:57:05" + }, + { + "name": "simplyfier/config", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/simplyfier/config.git", + "reference": "df987c28446bcf2eccdd8597bc5a19375405353a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplyfier/config/zipball/df987c28446bcf2eccdd8597bc5a19375405353a", + "reference": "df987c28446bcf2eccdd8597bc5a19375405353a", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Simplyfier\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" + } + ], + "description": "The configuration loader", + "keywords": [ + "configuration loader", + "hhvm", + "lazy", + "micro framework", + "php 7", + "php framework", + "stupidly simple" + ], + "time": "2017-10-10 04:07:43" + }, + { + "name": "simplyfier/database", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/simplyfier/database.git", + "reference": "8e367d7c622cb385e5e2ceef477e0ff9fe7a99a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplyfier/database/zipball/8e367d7c622cb385e5e2ceef477e0ff9fe7a99a9", + "reference": "8e367d7c622cb385e5e2ceef477e0ff9fe7a99a9", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Simplyfier\\": "", + "Simplyfier\\Database\\Factories\\": "factories", + "Simplyfier\\Database\\Facades\\": "facades" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" + } + ], + "description": "The Database manager from various providers", + "keywords": [ + "database manager", + "hhvm", + "lazy", + "micro framework", + "php 7", + "php framework", + "stupidly simple" + ], + "time": "2017-10-10 04:06:39" + }, + { + "name": "simplyfier/debugger", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/simplyfier/debugger.git", + "reference": "3cc499482b79fa8723d341a323050be3041cdcc3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplyfier/debugger/zipball/3cc499482b79fa8723d341a323050be3041cdcc3", + "reference": "3cc499482b79fa8723d341a323050be3041cdcc3", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Simplyfier\\": "", + "Simplyfier\\Debugger\\Providers\\": "providers" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" + } + ], + "description": "The Debugger for StupidlySimple framework", + "keywords": [ + "debugger", + "flip", + "hhvm", + "lazy", + "micro framework", + "php 7", + "php framework", + "stupidly simple", + "whoops" + ], + "time": "2017-10-10 04:05:22" + }, + { + "name": "simplyfier/di", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/simplyfier/di.git", + "reference": "674c3251ab2d8836ef4704d5f2e9529183e1aae4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplyfier/di/zipball/674c3251ab2d8836ef4704d5f2e9529183e1aae4", + "reference": "674c3251ab2d8836ef4704d5f2e9529183e1aae4", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Simplyfier\\DI\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" + } + ], + "description": "The Dependency Injection (DI) for StupidlySimple framework", + "keywords": [ + "dependency injection", + "di", + "hhvm", + "lazy", + "micro framework", + "php 7", + "php framework", + "stupidly simple" + ], + "time": "2017-10-10 04:04:41" + }, + { + "name": "simplyfier/http", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/simplyfier/http.git", + "reference": "ba4289370de31323c00a06b5fec5f3441926b255" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/simplyfier/http/zipball/ba4289370de31323c00a06b5fec5f3441926b255", + "reference": "ba4289370de31323c00a06b5fec5f3441926b255", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "project", + "autoload": { + "psr-4": { + "Simplyfier\\Http\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" + } + ], + "description": "The HTTP and Router package for StupidlySimple framework", "keywords": [ - "date", - "datetime", - "time" + "hhvm", + "http", + "lazy", + "micro framework", + "php 7", + "php framework", + "request", + "response", + "router", + "stupidly simple" ], - "time": "2017-01-16T07:55:07+00:00" + "time": "2017-10-10 04:02:14" }, { - "name": "paragonie/random_compat", - "version": "v1.4.1", + "name": "simplyfier/service", + "version": "dev-master", "source": { "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "c7e26a21ba357863de030f0b9e701c7d04593774" + "url": "https://github.com/simplyfier/service.git", + "reference": "5aa1dbf16183c712728e1541628e35fc146fbe70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/c7e26a21ba357863de030f0b9e701c7d04593774", - "reference": "c7e26a21ba357863de030f0b9e701c7d04593774", + "url": "https://api.github.com/repos/simplyfier/service/zipball/5aa1dbf16183c712728e1541628e35fc146fbe70", + "reference": "5aa1dbf16183c712728e1541628e35fc146fbe70", "shasum": "" }, "require": { - "php": ">=5.2.0" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + "php": ">=5.6.0" }, - "type": "library", + "type": "project", "autoload": { - "files": [ - "lib/random.php" - ] + "psr-4": { + "Simplyfier\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -525,50 +1195,46 @@ ], "authors": [ { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", + "role": "Developer" } ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "description": "The Service manager for Stupidly Simple framework", "keywords": [ - "csprng", - "pseudorandom", - "random" + "Service Manager", + "hhvm", + "lazy", + "micro framework", + "php 7", + "php framework", + "stupidly simple" ], - "time": "2016-03-18T20:34:03+00:00" + "time": "2017-10-10 04:01:22" }, { - "name": "phpfastcache/phpfastcache", - "version": "4.3.18", + "name": "simplyfier/timetrackr", + "version": "dev-master", "source": { "type": "git", - "url": "https://github.com/PHPSocialNetwork/phpfastcache.git", - "reference": "82a84adff6e8fc9b564c616d0fdc9238ae2e86c3" + "url": "https://github.com/simplyfier/timetrackr.git", + "reference": "41ad6aa6b8df2e959f36c25967cd9c9a17ff27b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPSocialNetwork/phpfastcache/zipball/82a84adff6e8fc9b564c616d0fdc9238ae2e86c3", - "reference": "82a84adff6e8fc9b564c616d0fdc9238ae2e86c3", + "url": "https://api.github.com/repos/simplyfier/timetrackr/zipball/41ad6aa6b8df2e959f36c25967cd9c9a17ff27b6", + "reference": "41ad6aa6b8df2e959f36c25967cd9c9a17ff27b6", "shasum": "" }, "require": { - "php": ">=5.3.0" - }, - "suggest": { - "ext-apc": "*", - "ext-mbstring": "*", - "ext-memcache": "*", - "ext-memcached": "*", - "ext-predis": "*", - "ext-redis": "*", - "ext-sqlite": "*" + "php": ">=5.6.0" }, - "type": "library", + "type": "project", "autoload": { - "files": [ - "src/phpFastCache/phpFastCache.php" - ] + "psr-4": { + "Simplyfier\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -576,60 +1242,45 @@ ], "authors": [ { - "name": "Khoa Bui", - "email": "khoaofgod@gmail.com", - "homepage": "http://www.phpfastcache.com", - "role": "Developer" - }, - { - "name": "Georges.L", - "email": "contact@geolim4.com", - "homepage": "https://github.com/Geolim4", + "name": "Fariz Luqman", + "email": "fariz.fnb@gmail.com", + "homepage": "https://stupidlysimple.github.io", "role": "Developer" } ], - "description": "PHP Cache Class - Supported Redis, Cookie, Predis, APC, MemCached, WinCache, Files, PDO, Reduce mySQL Call by Caching", - "homepage": "http://www.phpfastcache.com", + "description": "Manage everything related to Date and Time", "keywords": [ - "APC Cache", - "apc", - "cache", - "cache class", - "caching", - "cookie", - "files cache", - "memcache", - "memcached", - "mysql cache", - "pdo cache", - "php cache", - "predis", - "redis", - "wincache" + "hhvm", + "lazy", + "micro framework", + "php 7", + "php framework", + "stupidly simple", + "time tracking" ], - "time": "2017-01-24T00:38:01+00:00" + "time": "2017-10-10 03:59:08" }, { - "name": "stupidlysimple/php-core", - "version": "0.4.0", + "name": "simplyfier/viewer", + "version": "dev-master", "source": { "type": "git", - "url": "https://github.com/stupidlysimple/php-core.git", - "reference": "275c09f97aa88cbbfa7cd8033668f00609702f74" + "url": "https://github.com/simplyfier/viewer.git", + "reference": "5baf5635f57c01bc9b5a6a348ab240f6f9d76024" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stupidlysimple/php-core/zipball/275c09f97aa88cbbfa7cd8033668f00609702f74", - "reference": "275c09f97aa88cbbfa7cd8033668f00609702f74", + "url": "https://api.github.com/repos/simplyfier/viewer/zipball/5baf5635f57c01bc9b5a6a348ab240f6f9d76024", + "reference": "5baf5635f57c01bc9b5a6a348ab240f6f9d76024", "shasum": "" }, "require": { - "php": ">=5.4.0" + "php": ">=5.6.0" }, "type": "project", "autoload": { "psr-4": { - "Core\\": "src" + "Simplyfier\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -644,29 +1295,79 @@ "role": "Developer" } ], - "description": "The core package for Stupidly Simple framework", + "description": "Manage everything related to Date and Time", "keywords": [ "hhvm", "lazy", "micro framework", "php 7", "php framework", - "stupidly simple" + "stupidly simple", + "time tracking" + ], + "time": "2017-10-10 03:58:13" + }, + { + "name": "symfony/finder", + "version": "3.4.x-dev", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "6db4a8ddcd86146761130989eb348451de03de74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/6db4a8ddcd86146761130989eb348451de03de74", + "reference": "6db4a8ddcd86146761130989eb348451de03de74", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } ], - "time": "2017-02-15T17:05:53+00:00" + "description": "Symfony Finder Component", + "homepage": "https://symfony.com", + "time": "2017-10-02 06:49:52" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.3.0", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" + "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", - "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7c8fae0ac1d216eb54349e6a8baa57d515fe8803", + "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803", "shasum": "" }, "require": { @@ -678,7 +1379,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.5-dev" } }, "autoload": { @@ -712,34 +1413,38 @@ "portable", "shim" ], - "time": "2016-11-14T01:06:16+00:00" + "time": "2017-06-14 15:44:48" }, { "name": "symfony/translation", - "version": "v3.2.3", + "version": "3.4.x-dev", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "ca032cc56976d88b85e7386b17020bc6dc95dbc5" + "reference": "5c94827634a3fcde98ea78b5a011f3228b343269" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/ca032cc56976d88b85e7386b17020bc6dc95dbc5", - "reference": "ca032cc56976d88b85e7386b17020bc6dc95dbc5", + "url": "https://api.github.com/repos/symfony/translation/zipball/5c94827634a3fcde98ea78b5a011f3228b343269", + "reference": "5c94827634a3fcde98ea78b5a011f3228b343269", "shasum": "" }, "require": { - "php": ">=5.5.9", + "php": "^5.5.9|>=7.0.8", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/config": "<2.8" + "symfony/config": "<2.8", + "symfony/dependency-injection": "<3.4", + "symfony/yaml": "<3.4" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~2.8|~3.0", - "symfony/intl": "~2.8|~3.0", - "symfony/yaml": "~2.8|~3.0" + "symfony/config": "~2.8|~3.0|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/finder": "~2.8|~3.0|~4.0", + "symfony/intl": "^2.8.18|^3.2.5|~4.0", + "symfony/yaml": "~3.4|~4.0" }, "suggest": { "psr/log": "To use logging capability in translator", @@ -749,7 +1454,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -776,36 +1481,42 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2017-01-21T17:06:35+00:00" + "time": "2017-10-05 10:20:28" }, { "name": "symfony/var-dumper", - "version": "v3.2.3", + "version": "3.4.x-dev", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "5bb4435a03a4f05c211f4a9a8ee2756965924511" + "reference": "8f3ebf7e6f7f5634f088c49f97f2708ca218aae4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/5bb4435a03a4f05c211f4a9a8ee2756965924511", - "reference": "5bb4435a03a4f05c211f4a9a8ee2756965924511", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/8f3ebf7e6f7f5634f088c49f97f2708ca218aae4", + "reference": "8f3ebf7e6f7f5634f088c49f97f2708ca218aae4", "shasum": "" }, "require": { - "php": ">=5.5.9", + "php": "^5.5.9|>=7.0.8", "symfony/polyfill-mbstring": "~1.0" }, + "conflict": { + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" + }, "require-dev": { - "twig/twig": "~1.20|~2.0" + "ext-iconv": "*", + "twig/twig": "~1.34|~2.4" }, "suggest": { + "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", + "ext-intl": "To show region name in time zone dump", "ext-symfony_debug": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -839,38 +1550,164 @@ "debug", "dump" ], - "time": "2017-01-24T12:58:58+00:00" + "time": "2017-10-05 12:34:03" + }, + { + "name": "twig/twig", + "version": "2.x-dev", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "d8d888e2ae694c8057d6b0201b7b8f6f07d430cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/d8d888e2ae694c8057d6b0201b7b8f6f07d430cc", + "reference": "d8d888e2ae694c8057d6b0201b7b8f6f07d430cc", + "shasum": "" + }, + "require": { + "php": "^7.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "require-dev": { + "psr/container": "^1.0", + "symfony/debug": "~2.7", + "symfony/phpunit-bridge": "~3.3@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "http://twig.sensiolabs.org/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "http://twig.sensiolabs.org", + "keywords": [ + "templating" + ], + "time": "2017-09-27 18:11:00" + }, + { + "name": "zircote/swagger-php", + "version": "2.0.11", + "source": { + "type": "git", + "url": "https://github.com/zircote/swagger-php.git", + "reference": "d010ab67536784f8b578cb4ba7d15c906f3e1a45" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zircote/swagger-php/zipball/d010ab67536784f8b578cb4ba7d15c906f3e1a45", + "reference": "d010ab67536784f8b578cb4ba7d15c906f3e1a45", + "shasum": "" + }, + "require": { + "doctrine/annotations": "*", + "php": ">=5.6", + "symfony/finder": "*" + }, + "require-dev": { + "phpunit/phpunit": ">=4.8 <=5.6", + "squizlabs/php_codesniffer": ">=2.7", + "zendframework/zend-form": "<2.8" + }, + "bin": [ + "bin/swagger" + ], + "type": "library", + "autoload": { + "psr-4": { + "Swagger\\": "src" + }, + "files": [ + "src/functions.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache2" + ], + "authors": [ + { + "name": "Robert Allen", + "email": "zircote@gmail.com", + "homepage": "http://www.zircote.com" + }, + { + "name": "Bob Fanger", + "email": "bfanger@gmail.com", + "homepage": "http://bfanger.nl" + } + ], + "description": "Swagger-PHP - Generate interactive documentation for your RESTful API using phpdoc annotations", + "homepage": "https://github.com/zircote/swagger-php/", + "keywords": [ + "api", + "json", + "rest", + "service discovery" + ], + "time": "2017-08-16T08:32:59+00:00" } ], "packages-dev": [ { "name": "doctrine/instantiator", - "version": "1.0.5", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "reference": "7af8066e48b8a4cbd90849bbe9234ab444057968" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/7af8066e48b8a4cbd90849bbe9234ab444057968", + "reference": "7af8066e48b8a4cbd90849bbe9234ab444057968", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^7.1" }, "require-dev": { - "athletic/athletic": "~0.1.8", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpunit/phpunit": "^6.2.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -895,20 +1732,20 @@ "constructor", "instantiate" ], - "time": "2015-06-14T21:17:01+00:00" + "time": "2017-09-19 12:41:22" }, { "name": "myclabs/deep-copy", - "version": "1.6.0", + "version": "1.x-dev", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "5a5a9fc8025a08d8919be87d6884d5a92520cefe" + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/5a5a9fc8025a08d8919be87d6884d5a92520cefe", - "reference": "5a5a9fc8025a08d8919be87d6884d5a92520cefe", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102", "shasum": "" }, "require": { @@ -937,20 +1774,20 @@ "object", "object graph" ], - "time": "2017-01-26T22:05:40+00:00" + "time": "2017-04-12 18:52:22" }, { "name": "phpdocumentor/reflection-common", - "version": "1.0", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", - "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", "shasum": "" }, "require": { @@ -991,26 +1828,26 @@ "reflection", "static analysis" ], - "time": "2015-12-27T11:43:31+00:00" + "time": "2017-09-11 18:02:19" }, { "name": "phpdocumentor/reflection-docblock", - "version": "3.1.1", + "version": "4.1.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e" + "reference": "2d3d238c433cf69caeb4842e97a3223a116f94b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e", - "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/2d3d238c433cf69caeb4842e97a3223a116f94b2", + "reference": "2d3d238c433cf69caeb4842e97a3223a116f94b2", "shasum": "" }, "require": { - "php": ">=5.5", + "php": "^7.0", "phpdocumentor/reflection-common": "^1.0@dev", - "phpdocumentor/type-resolver": "^0.2.0", + "phpdocumentor/type-resolver": "^0.4.0", "webmozart/assert": "^1.0" }, "require-dev": { @@ -1036,24 +1873,24 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2016-09-30T07:12:33+00:00" + "time": "2017-08-30T18:51:59+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "0.2.1", + "version": "0.4.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb" + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", - "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", "shasum": "" }, "require": { - "php": ">=5.5", + "php": "^5.5 || ^7.0", "phpdocumentor/reflection-common": "^1.0" }, "require-dev": { @@ -1083,37 +1920,37 @@ "email": "me@mikevanriel.com" } ], - "time": "2016-11-25T06:54:22+00:00" + "time": "2017-07-14T14:27:02+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.6.2", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "6c52c2722f8460122f96f86346600e1077ce22cb" + "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/6c52c2722f8460122f96f86346600e1077ce22cb", - "reference": "6c52c2722f8460122f96f86346600e1077ce22cb", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", + "reference": "c9b8c6088acd19d769d4cc0ffa60a9fe34344bd6", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", - "sebastian/comparator": "^1.1", - "sebastian/recursion-context": "^1.0|^2.0" + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { - "phpspec/phpspec": "^2.0", + "phpspec/phpspec": "^2.5|^3.2", "phpunit/phpunit": "^4.8 || ^5.6.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.7.x-dev" } }, "autoload": { @@ -1146,39 +1983,39 @@ "spy", "stub" ], - "time": "2016-11-21T14:58:47+00:00" + "time": "2017-09-04 11:05:03" }, { "name": "phpunit/php-code-coverage", - "version": "4.0.5", + "version": "4.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "c19cfc7cbb0e9338d8c469c7eedecc2a428b0971" + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c19cfc7cbb0e9338d8c469c7eedecc2a428b0971", - "reference": "c19cfc7cbb0e9338d8c469c7eedecc2a428b0971", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", "shasum": "" }, "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", "php": "^5.6 || ^7.0", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "^1.4.2", - "sebastian/code-unit-reverse-lookup": "~1.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", "sebastian/environment": "^1.3.2 || ^2.0", - "sebastian/version": "~1.0|~2.0" + "sebastian/version": "^1.0 || ^2.0" }, "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "^5.4" + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" }, "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.4.0", - "ext-xmlwriter": "*" + "ext-xdebug": "^2.5.1" }, "type": "library", "extra": { @@ -1209,11 +2046,11 @@ "testing", "xunit" ], - "time": "2017-01-20T15:06:43+00:00" + "time": "2017-04-02 07:44:40" }, { "name": "phpunit/php-file-iterator", - "version": "1.4.2", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", @@ -1256,7 +2093,7 @@ "filesystem", "iterator" ], - "time": "2016-10-03T07:40:28+00:00" + "time": "2016-10-03 07:40:28" }, { "name": "phpunit/php-text-template", @@ -1301,25 +2138,30 @@ }, { "name": "phpunit/php-timer", - "version": "1.0.8", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260" + "reference": "d107f347d368dd8a384601398280c7c608390ab7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260", - "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/d107f347d368dd8a384601398280c7c608390ab7", + "reference": "d107f347d368dd8a384601398280c7c608390ab7", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4|~5" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -1341,33 +2183,33 @@ "keywords": [ "timer" ], - "time": "2016-05-12T18:03:57+00:00" + "time": "2017-03-07 15:42:04" }, { "name": "phpunit/php-token-stream", - "version": "1.4.9", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "3b402f65a4cc90abf6e1104e388b896ce209631b" + "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3b402f65a4cc90abf6e1104e388b896ce209631b", - "reference": "3b402f65a4cc90abf6e1104e388b896ce209631b", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9a02332089ac48e704c70f6cefed30c224e3c0b0", + "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=5.3.3" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "^6.2.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1390,20 +2232,20 @@ "keywords": [ "tokenizer" ], - "time": "2016-11-15T14:06:22+00:00" + "time": "2017-08-20 05:47:52" }, { "name": "phpunit/phpunit", - "version": "5.4.8", + "version": "5.4.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "3132365e1430c091f208e120b8845d39c25f20e6" + "reference": "53951b4c305322d089cf5c02023eee5d7afa155f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3132365e1430c091f208e120b8845d39c25f20e6", - "reference": "3132365e1430c091f208e120b8845d39c25f20e6", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/53951b4c305322d089cf5c02023eee5d7afa155f", + "reference": "53951b4c305322d089cf5c02023eee5d7afa155f", "shasum": "" }, "require": { @@ -1415,12 +2257,12 @@ "myclabs/deep-copy": "~1.3", "php": "^5.6 || ^7.0", "phpspec/prophecy": "^1.3.1", - "phpunit/php-code-coverage": "^4.0.1", + "phpunit/php-code-coverage": "^4.0.4", "phpunit/php-file-iterator": "~1.4", "phpunit/php-text-template": "~1.2", "phpunit/php-timer": "^1.0.6", "phpunit/phpunit-mock-objects": "^3.2", - "sebastian/comparator": "~1.1", + "sebastian/comparator": "~1.2.2", "sebastian/diff": "~1.2", "sebastian/environment": "^1.3 || ^2.0", "sebastian/exporter": "~1.2", @@ -1468,20 +2310,20 @@ "testing", "xunit" ], - "time": "2016-07-26T14:48:00+00:00" + "time": "2017-02-02 11:33:56" }, { "name": "phpunit/phpunit-mock-objects", - "version": "3.4.3", + "version": "3.4.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24" + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", - "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118", "shasum": "" }, "require": { @@ -1527,27 +2369,27 @@ "mock", "xunit" ], - "time": "2016-12-08T20:27:08+00:00" + "time": "2017-06-30 09:13:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.0", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "c36f5e7cfce482fde5bf8d10d41a53591e0198fe" + "reference": "3488be0a7b346cd6e5361510ed07e88f9bea2e88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/c36f5e7cfce482fde5bf8d10d41a53591e0198fe", - "reference": "c36f5e7cfce482fde5bf8d10d41a53591e0198fe", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/3488be0a7b346cd6e5361510ed07e88f9bea2e88", + "reference": "3488be0a7b346cd6e5361510ed07e88f9bea2e88", "shasum": "" }, "require": { - "php": ">=5.6" + "php": "^5.6 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~5" + "phpunit/phpunit": "^5.7 || ^6.0" }, "type": "library", "extra": { @@ -1572,20 +2414,20 @@ ], "description": "Looks up which function or method a line of code belongs to", "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "time": "2016-02-13T06:45:14+00:00" + "time": "2017-03-04 10:23:55" }, { "name": "sebastian/comparator", - "version": "1.2.4", + "version": "1.2.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + "reference": "18a5d97c25f408f48acaf6d1b9f4079314c5996a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/18a5d97c25f408f48acaf6d1b9f4079314c5996a", + "reference": "18a5d97c25f408f48acaf6d1b9f4079314c5996a", "shasum": "" }, "require": { @@ -1636,27 +2478,27 @@ "compare", "equality" ], - "time": "2017-01-29T09:50:25+00:00" + "time": "2017-03-07 10:34:43" }, { "name": "sebastian/diff", - "version": "1.4.1", + "version": "1.4.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", "extra": { @@ -1688,11 +2530,11 @@ "keywords": [ "diff" ], - "time": "2015-12-08T07:14:41+00:00" + "time": "2017-05-22 07:24:03" }, { "name": "sebastian/environment", - "version": "2.0.0", + "version": "2.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", @@ -1738,34 +2580,34 @@ "environment", "hhvm" ], - "time": "2016-11-26T07:53:53+00:00" + "time": "2016-11-26 07:53:53" }, { "name": "sebastian/exporter", - "version": "1.2.2", + "version": "1.2.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" + "reference": "dcd43bcc0fd3551bd2ede0081882d549bb78225d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/dcd43bcc0fd3551bd2ede0081882d549bb78225d", + "reference": "dcd43bcc0fd3551bd2ede0081882d549bb78225d", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" + "php": "^5.3.3 || ^7.0", + "sebastian/recursion-context": "^1.0" }, "require-dev": { "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -1805,27 +2647,27 @@ "export", "exporter" ], - "time": "2016-06-17T09:04:28+00:00" + "time": "2017-02-26 13:09:30" }, { "name": "sebastian/global-state", - "version": "1.1.1", + "version": "1.1.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + "reference": "cea85a84b00f2795341ebbbca4fa396347f2494e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/cea85a84b00f2795341ebbbca4fa396347f2494e", + "reference": "cea85a84b00f2795341ebbbca4fa396347f2494e", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "~4.2|~5.0" }, "suggest": { "ext-uopz": "*" @@ -1856,20 +2698,20 @@ "keywords": [ "global state" ], - "time": "2015-10-12T03:26:01+00:00" + "time": "2017-02-23 14:11:06" }, { "name": "sebastian/object-enumerator", - "version": "1.0.0", + "version": "1.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "d4ca2fb70344987502567bc50081c03e6192fb26" + "reference": "1a7e888dce73bd3c1deedb345fce00329c75b065" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/d4ca2fb70344987502567bc50081c03e6192fb26", - "reference": "d4ca2fb70344987502567bc50081c03e6192fb26", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1a7e888dce73bd3c1deedb345fce00329c75b065", + "reference": "1a7e888dce73bd3c1deedb345fce00329c75b065", "shasum": "" }, "require": { @@ -1902,20 +2744,20 @@ ], "description": "Traverses array structures and object graphs to enumerate all referenced objects", "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "time": "2016-01-28T13:25:10+00:00" + "time": "2016-10-03 07:42:27" }, { "name": "sebastian/recursion-context", - "version": "1.0.2", + "version": "1.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "913401df809e99e4f47b27cdd781f4a258d58791" + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791", - "reference": "913401df809e99e4f47b27cdd781f4a258d58791", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", "shasum": "" }, "require": { @@ -1955,20 +2797,20 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2015-11-11T19:50:13+00:00" + "time": "2016-10-03 07:41:43" }, { "name": "sebastian/resource-operations", - "version": "1.0.0", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + "reference": "fadc83f7c41fb2924e542635fea47ae546816ece" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/fadc83f7c41fb2924e542635fea47ae546816ece", + "reference": "fadc83f7c41fb2924e542635fea47ae546816ece", "shasum": "" }, "require": { @@ -1997,11 +2839,11 @@ ], "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2015-07-28T20:34:47+00:00" + "time": "2016-10-03 07:43:09" }, { "name": "sebastian/version", - "version": "2.0.1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", @@ -2040,27 +2882,30 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", - "time": "2016-10-03T07:35:21+00:00" + "time": "2016-10-03 07:35:21" }, { "name": "symfony/yaml", - "version": "v3.2.3", + "version": "3.4.x-dev", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e1718c6bf57e1efbb8793ada951584b2ab27775b" + "reference": "e99024f324a7fa927c3a7992ed6f359e3a5ccc3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e1718c6bf57e1efbb8793ada951584b2ab27775b", - "reference": "e1718c6bf57e1efbb8793ada951584b2ab27775b", + "url": "https://api.github.com/repos/symfony/yaml/zipball/e99024f324a7fa927c3a7992ed6f359e3a5ccc3b", + "reference": "e99024f324a7fa927c3a7992ed6f359e3a5ccc3b", "shasum": "" }, "require": { - "php": ">=5.5.9" + "php": "^5.5.9|>=7.0.8" + }, + "conflict": { + "symfony/console": "<3.4" }, "require-dev": { - "symfony/console": "~2.8|~3.0" + "symfony/console": "~3.4|~4.0" }, "suggest": { "symfony/console": "For validating YAML files using the lint command" @@ -2068,7 +2913,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -2095,20 +2940,20 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-01-21T17:06:35+00:00" + "time": "2017-10-09 14:52:13" }, { "name": "webmozart/assert", - "version": "1.2.0", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" + "reference": "4a8bf11547e139e77b651365113fc12850c43d9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", + "url": "https://api.github.com/repos/webmozart/assert/zipball/4a8bf11547e139e77b651365113fc12850c43d9a", + "reference": "4a8bf11547e139e77b651365113fc12850c43d9a", "shasum": "" }, "require": { @@ -2145,12 +2990,23 @@ "check", "validate" ], - "time": "2016-11-23T20:04:58+00:00" + "time": "2016-11-23 20:04:41" } ], "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], + "minimum-stability": "dev", + "stability-flags": { + "simplyfier/alias": 20, + "simplyfier/config": 20, + "simplyfier/cache": 20, + "simplyfier/http": 20, + "simplyfier/di": 20, + "simplyfier/debugger": 20, + "simplyfier/timetrackr": 20, + "simplyfier/viewer": 20, + "simplyfier/database": 20, + "simplyfier/service": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/config/aliases.php b/config/aliases.php index 1a2b319..0d75c6a 100755 --- a/config/aliases.php +++ b/config/aliases.php @@ -1,26 +1,25 @@ - * @copyright 2017 Fariz Luqman - * @license MIT - * @link https://stupidlysimple.github.io/ + * @author Fariz Luqman + * @copyright 2017 Fariz Luqman + * @license MIT + * + * @link https://stupidlysimple.github.io/ */ return [ - 'Core\App' => 'App', - 'Core\Cache' => 'Cache', - 'Core\Config' => 'Config', - 'Core\Database' => 'Database', - 'Core\Debugger' => 'Debugger', - 'Core\Router' => 'Router', - 'Core\Request' => 'Request', - 'Core\Response' => 'Response', - 'Core\Sharer' => 'Sharer', - 'Core\Viewer' => 'Viewer', - 'Core\Service' => 'Service', - 'Core\Service\ServiceContainer' => 'ServiceContainer', - 'Core\TimeTrackr' => 'TimeTrackr', - 'Cartalyst\Sentry\Facades\Native\Sentry' => 'Sentry' + 'Simplyfier\Cache' => 'Cache', + 'Simplyfier\Config' => 'Config', + 'Simplyfier\Database' => 'Database', + 'Simplyfier\Debugger' => 'Debugger', + 'Simplyfier\Http\Router' => 'Router', + 'Simplyfier\Http\Request' => 'Request', + 'Simplyfier\Http\Response' => 'Response', + 'Simplyfier\DI\Sharer' => 'Sharer', + 'Simplyfier\Viewer' => 'Viewer', + 'Simplyfier\Service' => 'Service', + 'Simplyfier\Service\ServiceContainer' => 'ServiceContainer', + 'Simplyfier\TimeTrackr' => 'TimeTrackr', + 'Cartalyst\Sentry\Facades\Native\Sentry' => 'Sentry', ]; diff --git a/config/cache.php b/config/cache.php index b1f7a24..f0ceca4 100755 --- a/config/cache.php +++ b/config/cache.php @@ -1,72 +1,72 @@ - * @copyright 2017 Fariz Luqman - * @license MIT - * @link https://stupidlysimple.github.io/ + * @author Fariz Luqman + * @copyright 2017 Fariz Luqman + * @license MIT + * + * @link https://stupidlysimple.github.io/ */ return [ - 'enabled' => false, - 'settings' => [ - /* - * Default storage - * if you set this storage => 'files', then $cache = phpFastCache(); <-- will be files cache - */ - 'storage' => 'auto', // ssdb, predis, redis, mongodb , files, sqlite, auto, apc, wincache, xcache, memcache, memcached, + 'enabled' => true, + 'settings' => [ + /* + * Default storage + * if you set this storage => 'files', then $cache = phpFastCache(); <-- will be files cache + */ + 'storage' => 'auto', // ssdb, predis, redis, mongodb , files, sqlite, auto, apc, wincache, xcache, memcache, memcached, - /* - * Default Path for Cache on HDD - * Use full PATH like /home/username/cache - * Keep it blank '', it will automatic setup for you - */ - 'path' => '' , // default path for files - 'securityKey' => '', // default will good. It will create a path by PATH/securityKey + /* + * Default Path for Cache on HDD + * Use full PATH like /home/username/cache + * Keep it blank '', it will automatic setup for you + */ + 'path' => '', // default path for files + 'securityKey' => '', // default will good. It will create a path by PATH/securityKey - /* - * FallBack Driver - * Example, in your code, you use memcached, apc..etc, but when you moved your web hosting - * Until you setup your new server caching, use 'overwrite' => 'files' - */ - 'overwrite' => 'files', // whatever caching will change to 'files' and you don't need to change ur code + /* + * FallBack Driver + * Example, in your code, you use memcached, apc..etc, but when you moved your web hosting + * Until you setup your new server caching, use 'overwrite' => 'files' + */ + 'overwrite' => 'files', // whatever caching will change to 'files' and you don't need to change ur code - /* - * .htaccess protect - * default will be true - */ - 'htaccess' => true, + /* + * .htaccess protect + * default will be true + */ + 'htaccess' => true, - /* - * Default Memcache Server for all $cache = phpFastCache('memcache'); - */ - 'server' => [ - array('127.0.0.1',11211,1), - ], + /* + * Default Memcache Server for all $cache = phpFastCache('memcache'); + */ + 'server' => [ + ['127.0.0.1', 11211, 1], + ], - 'memcache' => [ - array('127.0.0.1', 11211, 1), - ], - - 'redis' => [ - 'host' => '127.0.0.1', - 'port' => '6379', - 'password' => '', - 'database' => '', - 'timeout' => '', - ], - - 'ssdb' => [ - 'host' => '127.0.0.1', - 'port' => 8888, - 'password' => '', - 'timeout' => '', + 'memcache' => [ + ['127.0.0.1', 11211, 1], + ], + + 'redis' => [ + 'host' => '127.0.0.1', + 'port' => '6379', + 'password' => '', + 'database' => '', + 'timeout' => '', + ], + + 'ssdb' => [ + 'host' => '127.0.0.1', + 'port' => 8888, + 'password' => '', + 'timeout' => '', + ], + + /* + * Use 1 as normal traditional, 2 = phpfastcache fastest as default, 3 = phpfastcache memory stable + */ + 'caching_method' => 2, ], - - /* - * Use 1 as normal traditional, 2 = phpfastcache fastest as default, 3 = phpfastcache memory stable - */ - 'caching_method' => 2, - ] -]; \ No newline at end of file +]; diff --git a/config/database.php b/config/database.php index c4b3b3a..d24be6c 100755 --- a/config/database.php +++ b/config/database.php @@ -1,18 +1,17 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ return [ 'enabled' => true, - 'settings' => - [ + 'settings' => [ 'host' => 'localhost', 'driver' => 'mysql', 'database' => 'stupidlysimple', @@ -21,5 +20,5 @@ 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', - ] + ], ]; diff --git a/config/env.php b/config/env.php index 9002d29..f9ded1d 100755 --- a/config/env.php +++ b/config/env.php @@ -1,25 +1,32 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ -return +return [ - /* - * Set debugging level - * 0 - Turn off debugging. Show "Something went wrong" message ambiguously - * 1 - Show simple error message, file and the line occured - * 2 - Advanced debugging with code snippet, stack frames, and envionment details - */ - 'DEBUG' => 1, - - /* - * Display the time taken to complete current request. See the bootstrap.php file - */ - 'SHOW_EXECUTION_TIME' => true -]; \ No newline at end of file + /* + * Set the running environment + * development - The system is running development mode + * production - The system is running in production mode + */ + 'ENVIRONMENT' => 'development', + + /* + * Set debugging level + * 0 - Turn off debugging. Show "Something went wrong" message ambiguously + * 1 - Show simple error message, file and the line occured + * 2 - Advanced debugging with code snippet, stack frames, and envionment details + */ + 'DEBUG' => 2, + + /* + * Display the time taken to complete current request. See the bootstrap.php file + */ + 'SHOW_EXECUTION_TIME' => true, +]; diff --git a/config/mimetypes.php b/config/mimetypes.php new file mode 100644 index 0000000..add6e12 --- /dev/null +++ b/config/mimetypes.php @@ -0,0 +1,651 @@ + + * @copyright 2017 Fariz Luqman + * @license MIT + * + * @link https://stupidlysimple.github.io/ + */ +return [ + '.3dm' => 'x-world/x-3dmf', + '.3dmf' => 'x-world/x-3dmf', + '.a' => 'application/octet-stream', + '.aab' => 'application/x-authorware-bin', + '.aam' => 'application/x-authorware-map', + '.aas' => 'application/x-authorware-seg', + '.abc' => 'text/vnd.abc', + '.acgi' => 'text/html', + '.afl' => 'video/animaflex', + '.ai' => 'application/postscript', + '.aif' => 'audio/aiff', + '.aif' => 'audio/x-aiff', + '.aifc' => 'audio/aiff', + '.aifc' => 'audio/x-aiff', + '.aiff' => 'audio/aiff', + '.aiff' => 'audio/x-aiff', + '.aim' => 'application/x-aim', + '.aip' => 'text/x-audiosoft-intra', + '.ani' => 'application/x-navi-animation', + '.aos' => 'application/x-nokia-9000-communicator-add-on-software', + '.aps' => 'application/mime', + '.arc' => 'application/octet-stream', + '.arj' => 'application/arj', + '.arj' => 'application/octet-stream', + '.art' => 'image/x-jg', + '.asf' => 'video/x-ms-asf', + '.asm' => 'text/x-asm', + '.asp' => 'text/asp', + '.asx' => 'application/x-mplayer2', + '.asx' => 'video/x-ms-asf', + '.asx' => 'video/x-ms-asf-plugin', + '.au' => 'audio/basic', + '.au' => 'audio/x-au', + '.avi' => 'application/x-troff-msvideo', + '.avi' => 'video/avi', + '.avi' => 'video/msvideo', + '.avi' => 'video/x-msvideo', + '.avs' => 'video/avs-video', + '.bcpio' => 'application/x-bcpio', + '.bin' => 'application/mac-binary', + '.bin' => 'application/macbinary', + '.bin' => 'application/octet-stream', + '.bin' => 'application/x-binary', + '.bin' => 'application/x-macbinary', + '.bm' => 'image/bmp', + '.bmp' => 'image/bmp', + '.bmp' => 'image/x-windows-bmp', + '.boo' => 'application/book', + '.book' => 'application/book', + '.boz' => 'application/x-bzip2', + '.bsh' => 'application/x-bsh', + '.bz' => 'application/x-bzip', + '.bz2' => 'application/x-bzip2', + '.c' => 'text/plain', + '.c++' => 'text/plain', + '.cat' => 'application/vnd.ms-pki.seccat', + '.cc' => 'text/plain', + '.cc' => 'text/x-c', + '.ccad' => 'application/clariscad', + '.cco' => 'application/x-cocoa', + '.cdf' => 'application/cdf', + '.cdf' => 'application/x-cdf', + '.cdf' => 'application/x-netcdf', + '.cer' => 'application/pkix-cert', + '.cer' => 'application/x-x509-ca-cert', + '.cha' => 'application/x-chat', + '.chat' => 'application/x-chat', + '.class' => 'application/java', + '.class' => 'application/java-byte-code', + '.class' => 'application/x-java-class', + '.com' => 'application/octet-stream', + '.com' => 'text/plain', + '.conf' => 'text/plain', + '.cpio' => 'application/x-cpio', + '.cpp' => 'text/x-c', + '.cpt' => 'application/mac-compactpro', + '.cpt' => 'application/x-compactpro', + '.cpt' => 'application/x-cpt', + '.crl' => 'application/pkcs-crl', + '.crl' => 'application/pkix-crl', + '.crt' => 'application/pkix-cert', + '.crt' => 'application/x-x509-ca-cert', + '.crt' => 'application/x-x509-user-cert', + '.csh' => 'application/x-csh', + '.csh' => 'text/x-script.csh', + '.css' => 'application/x-pointplus', + '.css' => 'text/css', + '.cxx' => 'text/plain', + '.dcr' => 'application/x-director', + '.deepv' => 'application/x-deepv', + '.def' => 'text/plain', + '.der' => 'application/x-x509-ca-cert', + '.dif' => 'video/x-dv', + '.dir' => 'application/x-director', + '.dl' => 'video/dl', + '.dl' => 'video/x-dl', + '.doc' => 'application/msword', + '.dot' => 'application/msword', + '.dp' => 'application/commonground', + '.drw' => 'application/drafting', + '.dump' => 'application/octet-stream', + '.dv' => 'video/x-dv', + '.dvi' => 'application/x-dvi', + '.dwf' => 'drawing/x-dwf (old)', + '.dwf' => 'model/vnd.dwf', + '.dwg' => 'application/acad', + '.dwg' => 'image/vnd.dwg', + '.dwg' => 'image/x-dwg', + '.dxf' => 'application/dxf', + '.dxf' => 'image/vnd.dwg', + '.dxf' => 'image/x-dwg', + '.dxr' => 'application/x-director', + '.el' => 'text/x-script.elisp', + '.elc' => 'application/x-bytecode.elisp (compiled elisp)', + '.elc' => 'application/x-elc', + '.env' => 'application/x-envoy', + '.eps' => 'application/postscript', + '.es' => 'application/x-esrehber', + '.etx' => 'text/x-setext', + '.evy' => 'application/envoy', + '.evy' => 'application/x-envoy', + '.exe' => 'application/octet-stream', + '.f' => 'text/plain', + '.f' => 'text/x-fortran', + '.f77' => 'text/x-fortran', + '.f90' => 'text/plain', + '.f90' => 'text/x-fortran', + '.fdf' => 'application/vnd.fdf', + '.fif' => 'application/fractals', + '.fif' => 'image/fif', + '.fli' => 'video/fli', + '.fli' => 'video/x-fli', + '.flo' => 'image/florian', + '.flx' => 'text/vnd.fmi.flexstor', + '.fmf' => 'video/x-atomic3d-feature', + '.for' => 'text/plain', + '.for' => 'text/x-fortran', + '.fpx' => 'image/vnd.fpx', + '.fpx' => 'image/vnd.net-fpx', + '.frl' => 'application/freeloader', + '.funk' => 'audio/make', + '.g' => 'text/plain', + '.g3' => 'image/g3fax', + '.gif' => 'image/gif', + '.gl' => 'video/gl', + '.gl' => 'video/x-gl', + '.gsd' => 'audio/x-gsm', + '.gsm' => 'audio/x-gsm', + '.gsp' => 'application/x-gsp', + '.gss' => 'application/x-gss', + '.gtar' => 'application/x-gtar', + '.gz' => 'application/x-compressed', + '.gz' => 'application/x-gzip', + '.gzip' => 'application/x-gzip', + '.gzip' => 'multipart/x-gzip', + '.h' => 'text/plain', + '.h' => 'text/x-h', + '.hdf' => 'application/x-hdf', + '.help' => 'application/x-helpfile', + '.hgl' => 'application/vnd.hp-hpgl', + '.hh' => 'text/plain', + '.hh' => 'text/x-h', + '.hlb' => 'text/x-script', + '.hlp' => 'application/hlp', + '.hlp' => 'application/x-helpfile', + '.hlp' => 'application/x-winhelp', + '.hpg' => 'application/vnd.hp-hpgl', + '.hpgl' => 'application/vnd.hp-hpgl', + '.hqx' => 'application/binhex', + '.hqx' => 'application/binhex4', + '.hqx' => 'application/mac-binhex', + '.hqx' => 'application/mac-binhex40', + '.hqx' => 'application/x-binhex40', + '.hqx' => 'application/x-mac-binhex40', + '.hta' => 'application/hta', + '.htc' => 'text/x-component', + '.htm' => 'text/html', + '.html' => 'text/html', + '.htmls' => 'text/html', + '.htt' => 'text/webviewhtml', + '.htx' => 'text/html', + '.ice' => 'x-conference/x-cooltalk', + '.ico' => 'image/x-icon', + '.idc' => 'text/plain', + '.ief' => 'image/ief', + '.iefs' => 'image/ief', + '.iges' => 'application/iges', + '.iges' => 'model/iges', + '.igs' => 'application/iges', + '.igs' => 'model/iges', + '.ima' => 'application/x-ima', + '.imap' => 'application/x-httpd-imap', + '.inf' => 'application/inf', + '.ins' => 'application/x-internett-signup', + '.ip' => 'application/x-ip2', + '.isu' => 'video/x-isvideo', + '.it' => 'audio/it', + '.iv' => 'application/x-inventor', + '.ivr' => 'i-world/i-vrml', + '.ivy' => 'application/x-livescreen', + '.jam' => 'audio/x-jam', + '.jav' => 'text/plain', + '.jav' => 'text/x-java-source', + '.java' => 'text/plain', + '.java' => 'text/x-java-source', + '.jcm' => 'application/x-java-commerce', + '.jfif' => 'image/jpeg', + '.jfif' => 'image/pjpeg', + '.jfif-tbnl' => 'image/jpeg', + '.jpe' => 'image/jpeg', + '.jpe' => 'image/pjpeg', + '.jpeg' => 'image/jpeg', + '.jpeg' => 'image/pjpeg', + '.jpg' => 'image/jpeg', + '.jpg' => 'image/pjpeg', + '.jps' => 'image/x-jps', + '.js' => 'application/x-javascript', + '.jut' => 'image/jutvision', + '.kar' => 'audio/midi', + '.kar' => 'music/x-karaoke', + '.ksh' => 'application/x-ksh', + '.ksh' => 'text/x-script.ksh', + '.la' => 'audio/nspaudio', + '.la' => 'audio/x-nspaudio', + '.lam' => 'audio/x-liveaudio', + '.latex' => 'application/x-latex', + '.lha' => 'application/lha', + '.lha' => 'application/octet-stream', + '.lha' => 'application/x-lha', + '.lhx' => 'application/octet-stream', + '.list' => 'text/plain', + '.lma' => 'audio/nspaudio', + '.lma' => 'audio/x-nspaudio', + '.log' => 'text/plain', + '.lsp' => 'application/x-lisp', + '.lsp' => 'text/x-script.lisp', + '.lst' => 'text/plain', + '.lsx' => 'text/x-la-asf', + '.ltx' => 'application/x-latex', + '.lzh' => 'application/octet-stream', + '.lzh' => 'application/x-lzh', + '.lzx' => 'application/lzx', + '.lzx' => 'application/octet-stream', + '.lzx' => 'application/x-lzx', + '.m' => 'text/plain', + '.m' => 'text/x-m', + '.m1v' => 'video/mpeg', + '.m2a' => 'audio/mpeg', + '.m2v' => 'video/mpeg', + '.m3u' => 'audio/x-mpequrl', + '.man' => 'application/x-troff-man', + '.map' => 'application/x-navimap', + '.mar' => 'text/plain', + '.mbd' => 'application/mbedlet', + '.mc' => 'application/x-magic-cap-package-1.0', + '.mcd' => 'application/mcad', + '.mcd' => 'application/x-mathcad', + '.mcf' => 'image/vasa', + '.mcf' => 'text/mcf', + '.mcp' => 'application/netmc', + '.me' => 'application/x-troff-me', + '.mht' => 'message/rfc822', + '.mhtml' => 'message/rfc822', + '.mid' => 'application/x-midi', + '.mid' => 'audio/midi', + '.mid' => 'audio/x-mid', + '.mid' => 'audio/x-midi', + '.mid' => 'music/crescendo', + '.mid' => 'x-music/x-midi', + '.midi' => 'application/x-midi', + '.midi' => 'audio/midi', + '.midi' => 'audio/x-mid', + '.midi' => 'audio/x-midi', + '.midi' => 'music/crescendo', + '.midi' => 'x-music/x-midi', + '.mif' => 'application/x-frame', + '.mif' => 'application/x-mif', + '.mime' => 'message/rfc822', + '.mime' => 'www/mime', + '.mjf' => 'audio/x-vnd.audioexplosion.mjuicemediafile', + '.mjpg' => 'video/x-motion-jpeg', + '.mm' => 'application/base64', + '.mm' => 'application/x-meme', + '.mme' => 'application/base64', + '.mod' => 'audio/mod', + '.mod' => 'audio/x-mod', + '.moov' => 'video/quicktime', + '.mov' => 'video/quicktime', + '.movie' => 'video/x-sgi-movie', + '.mp2' => 'audio/mpeg', + '.mp2' => 'audio/x-mpeg', + '.mp2' => 'video/mpeg', + '.mp2' => 'video/x-mpeg', + '.mp2' => 'video/x-mpeq2a', + '.mp3' => 'audio/mpeg3', + '.mp3' => 'audio/x-mpeg-3', + '.mp3' => 'video/mpeg', + '.mp3' => 'video/x-mpeg', + '.mpa' => 'audio/mpeg', + '.mpa' => 'video/mpeg', + '.mpc' => 'application/x-project', + '.mpe' => 'video/mpeg', + '.mpeg' => 'video/mpeg', + '.mpg' => 'audio/mpeg', + '.mpg' => 'video/mpeg', + '.mpga' => 'audio/mpeg', + '.mpp' => 'application/vnd.ms-project', + '.mpt' => 'application/x-project', + '.mpv' => 'application/x-project', + '.mpx' => 'application/x-project', + '.mrc' => 'application/marc', + '.ms' => 'application/x-troff-ms', + '.mv' => 'video/x-sgi-movie', + '.my' => 'audio/make', + '.mzz' => 'application/x-vnd.audioexplosion.mzz', + '.nap' => 'image/naplps', + '.naplps' => 'image/naplps', + '.nc' => 'application/x-netcdf', + '.ncm' => 'application/vnd.nokia.configuration-message', + '.nif' => 'image/x-niff', + '.niff' => 'image/x-niff', + '.nix' => 'application/x-mix-transfer', + '.nsc' => 'application/x-conference', + '.nvd' => 'application/x-navidoc', + '.o' => 'application/octet-stream', + '.oda' => 'application/oda', + '.omc' => 'application/x-omc', + '.omcd' => 'application/x-omcdatamaker', + '.omcr' => 'application/x-omcregerator', + '.p' => 'text/x-pascal', + '.p10' => 'application/pkcs10', + '.p10' => 'application/x-pkcs10', + '.p12' => 'application/pkcs-12', + '.p12' => 'application/x-pkcs12', + '.p7a' => 'application/x-pkcs7-signature', + '.p7c' => 'application/pkcs7-mime', + '.p7c' => 'application/x-pkcs7-mime', + '.p7m' => 'application/pkcs7-mime', + '.p7m' => 'application/x-pkcs7-mime', + '.p7r' => 'application/x-pkcs7-certreqresp', + '.p7s' => 'application/pkcs7-signature', + '.part' => 'application/pro_eng', + '.pas' => 'text/pascal', + '.pbm' => 'image/x-portable-bitmap', + '.pcl' => 'application/vnd.hp-pcl', + '.pcl' => 'application/x-pcl', + '.pct' => 'image/x-pict', + '.pcx' => 'image/x-pcx', + '.pdb' => 'chemical/x-pdb', + '.pdf' => 'application/pdf', + '.pfunk' => 'audio/make', + '.pgm' => 'image/x-portable-greymap', + '.pic' => 'image/pict', + '.pict' => 'image/pict', + '.pkg' => 'application/x-newton-compatible-pkg', + '.pko' => 'application/vnd.ms-pki.pko', + '.pl' => 'text/plain', + '.pl' => 'text/x-script.perl', + '.plx' => 'application/x-pixclscript', + '.pm' => 'image/x-xpixmap', + '.pm' => 'text/x-script.perl-module', + '.pm4' => 'application/x-pagemaker', + '.pm5' => 'application/x-pagemaker', + '.png' => 'image/png', + '.pnm' => 'application/x-portable-anymap', + '.pnm' => 'image/x-portable-anymap', + '.pot' => 'application/mspowerpoint', + '.pot' => 'application/vnd.ms-powerpoint', + '.pov' => 'model/x-pov', + '.ppa' => 'application/vnd.ms-powerpoint', + '.ppm' => 'image/x-portable-pixmap', + '.pps' => 'application/mspowerpoint', + '.pps' => 'application/vnd.ms-powerpoint', + '.ppt' => 'application/mspowerpoint', + '.ppt' => 'application/powerpoint', + '.ppt' => 'application/vnd.ms-powerpoint', + '.ppt' => 'application/x-mspowerpoint', + '.ppz' => 'application/mspowerpoint', + '.pre' => 'application/x-freelance', + '.prt' => 'application/pro_eng', + '.ps' => 'application/postscript', + '.psd' => 'application/octet-stream', + '.pvu' => 'paleovu/x-pv', + '.pwz' => 'application/vnd.ms-powerpoint', + '.py' => 'text/x-script.phyton', + '.pyc' => 'applicaiton/x-bytecode.python', + '.qcp' => 'audio/vnd.qcelp', + '.qd3' => 'x-world/x-3dmf', + '.qd3d' => 'x-world/x-3dmf', + '.qif' => 'image/x-quicktime', + '.qt' => 'video/quicktime', + '.qtc' => 'video/x-qtc', + '.qti' => 'image/x-quicktime', + '.qtif' => 'image/x-quicktime', + '.ra' => 'audio/x-pn-realaudio', + '.ra' => 'audio/x-pn-realaudio-plugin', + '.ra' => 'audio/x-realaudio', + '.ram' => 'audio/x-pn-realaudio', + '.ras' => 'application/x-cmu-raster', + '.ras' => 'image/cmu-raster', + '.ras' => 'image/x-cmu-raster', + '.rast' => 'image/cmu-raster', + '.rexx' => 'text/x-script.rexx', + '.rf' => 'image/vnd.rn-realflash', + '.rgb' => 'image/x-rgb', + '.rm' => 'application/vnd.rn-realmedia', + '.rm' => 'audio/x-pn-realaudio', + '.rmi' => 'audio/mid', + '.rmm' => 'audio/x-pn-realaudio', + '.rmp' => 'audio/x-pn-realaudio', + '.rmp' => 'audio/x-pn-realaudio-plugin', + '.rng' => 'application/ringing-tones', + '.rng' => 'application/vnd.nokia.ringing-tone', + '.rnx' => 'application/vnd.rn-realplayer', + '.roff' => 'application/x-troff', + '.rp' => 'image/vnd.rn-realpix', + '.rpm' => 'audio/x-pn-realaudio-plugin', + '.rt' => 'text/richtext', + '.rt' => 'text/vnd.rn-realtext', + '.rtf' => 'application/rtf', + '.rtf' => 'application/x-rtf', + '.rtf' => 'text/richtext', + '.rtx' => 'application/rtf', + '.rtx' => 'text/richtext', + '.rv' => 'video/vnd.rn-realvideo', + '.s' => 'text/x-asm', + '.s3m' => 'audio/s3m', + '.saveme' => 'aapplication/octet-stream', + '.sbk' => 'application/x-tbook', + '.scm' => 'application/x-lotusscreencam', + '.scm' => 'text/x-script.guile', + '.scm' => 'text/x-script.scheme', + '.scm' => 'video/x-scm', + '.sdml' => 'text/plain', + '.sdp' => 'application/sdp', + '.sdp' => 'application/x-sdp', + '.sdr' => 'application/sounder', + '.sea' => 'application/sea', + '.sea' => 'application/x-sea', + '.set' => 'application/set', + '.sgm' => 'text/sgml', + '.sgm' => 'text/x-sgml', + '.sgml' => 'text/sgml', + '.sgml' => 'text/x-sgml', + '.sh' => 'application/x-bsh', + '.sh' => 'application/x-sh', + '.sh' => 'application/x-shar', + '.sh' => 'text/x-script.sh', + '.shar' => 'application/x-bsh', + '.shar' => 'application/x-shar', + '.shtml' => 'text/html', + '.shtml' => 'text/x-server-parsed-html', + '.sid' => 'audio/x-psid', + '.sit' => 'application/x-sit', + '.sit' => 'application/x-stuffit', + '.skd' => 'application/x-koan', + '.skm' => 'application/x-koan', + '.skp' => 'application/x-koan', + '.skt' => 'application/x-koan', + '.sl' => 'application/x-seelogo', + '.smi' => 'application/smil', + '.smil' => 'application/smil', + '.snd' => 'audio/basic', + '.snd' => 'audio/x-adpcm', + '.sol' => 'application/solids', + '.spc' => 'application/x-pkcs7-certificates', + '.spc' => 'text/x-speech', + '.spl' => 'application/futuresplash', + '.spr' => 'application/x-sprite', + '.sprite' => 'application/x-sprite', + '.src' => 'application/x-wais-source', + '.ssi' => 'text/x-server-parsed-html', + '.ssm' => 'application/streamingmedia', + '.sst' => 'application/vnd.ms-pki.certstore', + '.step' => 'application/step', + '.stl' => 'application/sla', + '.stl' => 'application/vnd.ms-pki.stl', + '.stl' => 'application/x-navistyle', + '.stp' => 'application/step', + '.sv4cpio' => 'application/x-sv4cpio', + '.sv4crc' => 'application/x-sv4crc', + '.svf' => 'image/vnd.dwg', + '.svf' => 'image/x-dwg', + '.svr' => 'application/x-world', + '.svr' => 'x-world/x-svr', + '.swf' => 'application/x-shockwave-flash', + '.t' => 'application/x-troff', + '.talk' => 'text/x-speech', + '.tar' => 'application/x-tar', + '.tbk' => 'application/toolbook', + '.tbk' => 'application/x-tbook', + '.tcl' => 'application/x-tcl', + '.tcl' => 'text/x-script.tcl', + '.tcsh' => 'text/x-script.tcsh', + '.tex' => 'application/x-tex', + '.texi' => 'application/x-texinfo', + '.texinfo' => ' lication/x-texinfo', + '.text' => 'application/plain', + '.text' => 'text/plain', + '.tgz' => 'application/gnutar', + '.tgz' => 'application/x-compressed', + '.tif' => 'image/tiff', + '.tif' => 'image/x-tiff', + '.tiff' => 'image/tiff', + '.tiff' => 'image/x-tiff', + '.tr' => 'application/x-troff', + '.tsi' => 'audio/tsp-audio', + '.tsp' => 'application/dsptype', + '.tsp' => 'audio/tsplayer', + '.tsv' => 'text/tab-separated-values', + '.turbot' => 'image/florian', + '.txt' => 'text/plain', + '.uil' => 'text/x-uil', + '.uni' => 'text/uri-list', + '.unis' => 'text/uri-list', + '.unv' => 'application/i-deas', + '.uri' => 'text/uri-list', + '.uris' => 'text/uri-list', + '.ustar' => 'application/x-ustar', + '.ustar' => 'multipart/x-ustar', + '.uu' => 'application/octet-stream', + '.uu' => 'text/x-uuencode', + '.uue' => 'text/x-uuencode', + '.vcd' => 'application/x-cdlink', + '.vcs' => 'text/x-vcalendar', + '.vda' => 'application/vda', + '.vdo' => 'video/vdo', + '.vew' => 'application/groupwise', + '.viv' => 'video/vivo', + '.viv' => 'video/vnd.vivo', + '.vivo' => 'video/vivo', + '.vivo' => 'video/vnd.vivo', + '.vmd' => 'application/vocaltec-media-desc', + '.vmf' => 'application/vocaltec-media-file', + '.voc' => 'audio/voc', + '.voc' => 'audio/x-voc', + '.vos' => 'video/vosaic', + '.vox' => 'audio/voxware', + '.vqe' => 'audio/x-twinvq-plugin', + '.vqf' => 'audio/x-twinvq', + '.vql' => 'audio/x-twinvq-plugin', + '.vrml' => 'application/x-vrml', + '.vrml' => 'model/vrml', + '.vrml' => 'x-world/x-vrml', + '.vrt' => 'x-world/x-vrt', + '.vsd' => 'application/x-visio', + '.vst' => 'application/x-visio', + '.vsw' => 'application/x-visio', + '.w60' => 'application/wordperfect6.0', + '.w61' => 'application/wordperfect6.1', + '.w6w' => 'application/msword', + '.wav' => 'audio/wav', + '.wav' => 'audio/x-wav', + '.wb1' => 'application/x-qpro', + '.wbmp' => 'image/vnd.wap.wbmp', + '.web' => 'application/vnd.xara', + '.wiz' => 'application/msword', + '.wk1' => 'application/x-123', + '.wmf' => 'windows/metafile', + '.wml' => 'text/vnd.wap.wml', + '.wmlc' => 'application/vnd.wap.wmlc', + '.wmls' => 'text/vnd.wap.wmlscript', + '.wmlsc' => 'application/vnd.wap.wmlscriptc', + '.word' => 'application/msword', + '.wp' => 'application/wordperfect', + '.wp5' => 'application/wordperfect', + '.wp5' => 'application/wordperfect6.0', + '.wp6' => 'application/wordperfect', + '.wpd' => 'application/wordperfect', + '.wpd' => 'application/x-wpwin', + '.wq1' => 'application/x-lotus', + '.wri' => 'application/mswrite', + '.wri' => 'application/x-wri', + '.wrl' => 'application/x-world', + '.wrl' => 'model/vrml', + '.wrl' => 'x-world/x-vrml', + '.wrz' => 'model/vrml', + '.wrz' => 'x-world/x-vrml', + '.wsc' => 'text/scriplet', + '.wsrc' => 'application/x-wais-source', + '.wtk' => 'application/x-wintalk', + '.xbm' => 'image/x-xbitmap', + '.xbm' => 'image/x-xbm', + '.xbm' => 'image/xbm', + '.xdr' => 'video/x-amt-demorun', + '.xgz' => 'xgl/drawing', + '.xif' => 'image/vnd.xiff', + '.xl' => 'application/excel', + '.xla' => 'application/excel', + '.xla' => 'application/x-excel', + '.xla' => 'application/x-msexcel', + '.xlb' => 'application/excel', + '.xlb' => 'application/vnd.ms-excel', + '.xlb' => 'application/x-excel', + '.xlc' => 'application/excel', + '.xlc' => 'application/vnd.ms-excel', + '.xlc' => 'application/x-excel', + '.xld' => 'application/excel', + '.xld' => 'application/x-excel', + '.xlk' => 'application/excel', + '.xlk' => 'application/x-excel', + '.xll' => 'application/excel', + '.xll' => 'application/vnd.ms-excel', + '.xll' => 'application/x-excel', + '.xlm' => 'application/excel', + '.xlm' => 'application/vnd.ms-excel', + '.xlm' => 'application/x-excel', + '.xls' => 'application/excel', + '.xls' => 'application/vnd.ms-excel', + '.xls' => 'application/x-excel', + '.xls' => 'application/x-msexcel', + '.xlt' => 'application/excel', + '.xlt' => 'application/x-excel', + '.xlv' => 'application/excel', + '.xlv' => 'application/x-excel', + '.xlw' => 'application/excel', + '.xlw' => 'application/vnd.ms-excel', + '.xlw' => 'application/x-excel', + '.xlw' => 'application/x-msexcel', + '.xm' => 'audio/xm', + '.xml' => 'application/xml', + '.xml' => 'text/xml', + '.xmz' => 'xgl/movie', + '.xpix' => 'application/x-vnd.ls-xpix', + '.xpm' => 'image/x-xpixmap', + '.xpm' => 'image/xpm', + '.x-png' => 'image/png', + '.xsr' => 'video/x-amt-showrun', + '.xwd' => 'image/x-xwd', + '.xwd' => 'image/x-xwindowdump', + '.xyz' => 'chemical/x-pdb', + '.z' => 'application/x-compress', + '.z' => 'application/x-compressed', + '.zip' => 'application/x-compressed', + '.zip' => 'application/x-zip-compressed', + '.zip' => 'application/zip', + '.zip' => 'multipart/x-zip', + '.zoo' => 'application/octet-stream', + '.zsh' => 'text/x-script.zsh)', +]; diff --git a/config/routes.php b/config/routes.php index 2c62e92..813ba87 100755 --- a/config/routes.php +++ b/config/routes.php @@ -1,21 +1,19 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ -return +return [ - 'path' => SS_PATH . 'routes' . '/', - 'routes' => - [ - 'web', - 'api', + 'path' => SS_PATH.'/routes'.'/', + 'routes' => [ 'auth', - 'hello' - ] -]; \ No newline at end of file + 'api', + 'web', + ], +]; diff --git a/config/services.php b/config/services.php index cddfc44..1776d53 100644 --- a/config/services.php +++ b/config/services.php @@ -1,13 +1,13 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ return [ - 'Service\Test\TestService' => 'test' -]; \ No newline at end of file + 'Service\Test\TestService' => 'test', +]; diff --git a/config/storage.php b/config/storage.php new file mode 100644 index 0000000..e39297e --- /dev/null +++ b/config/storage.php @@ -0,0 +1,6 @@ + * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ return [ - 'timezone' => 'Asia/Kuala_Lumpur' -]; \ No newline at end of file + 'timezone' => 'Asia/Kuala_Lumpur', +]; diff --git a/index.php b/index.php index 88ce425..fa438d1 100755 --- a/index.php +++ b/index.php @@ -1,14 +1,16 @@ * @copyright 2017 Fariz Luqman * @license MIT + * * @link https://stupidlysimple.github.io/ */ - +ini_set('display_errors', 1); +ini_set('display_startup_errors', 1); +error_reporting(E_ALL); /* |-------------------------------------------------------------------------- | Track the Pre-Execution Time @@ -29,7 +31,8 @@ | bit) | */ -define('SS_PATH', realpath(dirname(__FILE__)) .'/'); + +define('SS_PATH', realpath(dirname(__FILE__))); /* |-------------------------------------------------------------------------- @@ -37,12 +40,12 @@ |-------------------------------------------------------------------------- | | In this file we will register the Autoloader from Composer. Environment -| variables (that you set on config/env.php) will be registered this time. +| variables (that you set on config/env.php) will be registered this time. | Our sweet debugging tool will also be loaded to track errors as earlier | as possible. | */ -require_once(SS_PATH.'app/autoloader.php'); +require_once SS_PATH.'/app/autoloader.php'; /* |-------------------------------------------------------------------------- @@ -53,4 +56,4 @@ | manager and routing runs perfectly well. | */ -require_once(SS_PATH.'app/bootstrap.php'); \ No newline at end of file +require_once SS_PATH.'/app/bootstrap.php'; diff --git a/phpunit.xml b/phpunit.xml index a7acf40..404041a 100755 --- a/phpunit.xml +++ b/phpunit.xml @@ -7,5 +7,5 @@ convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" - bootstrap="vendor/stupidlysimple/core/tests/bootstrap.php"> + bootstrap="tests/bootstrap.php"> \ No newline at end of file diff --git a/public/index.php b/public/index.php new file mode 100755 index 0000000..458bd20 --- /dev/null +++ b/public/index.php @@ -0,0 +1,56 @@ + + * @copyright 2017 Fariz Luqman + * @license MIT + * + * @link https://stupidlysimple.github.io/ + */ + +/* +|-------------------------------------------------------------------------- +| Track the Pre-Execution Time +|-------------------------------------------------------------------------- +| +| Get the time in microtime format for you to measure the awesomeness by +| Damn Stupid Simple framework. +| +*/ +define('SS_START', microtime(true)); + +/* +|-------------------------------------------------------------------------- +| Use Full Paths for Better Performance +|-------------------------------------------------------------------------- +| +| The full path starting from the index.php file. Improves performance (a +| bit) +| +*/ +define('SS_PATH', realpath(dirname(__FILE__).'/../')); + +/* +|-------------------------------------------------------------------------- +| Include the Autoloader file +|-------------------------------------------------------------------------- +| +| In this file we will register the Autoloader from Composer. Environment +| variables (that you set on config/env.php) will be registered this time. +| Our sweet debugging tool will also be loaded to track errors as earlier +| as possible. +| +*/ +require_once SS_PATH.'/app/autoloader.php'; + +/* +|-------------------------------------------------------------------------- +| Include the Bootstrap File +|-------------------------------------------------------------------------- +| +| The bootstrapper will make sure that every services, like database, cache +| manager and routing runs perfectly well. +| +*/ +require_once SS_PATH.'/app/bootstrap.php'; diff --git a/resources/assets/css/main.css b/resources/assets/css/main.css index b3f589f..823ad6a 100644 --- a/resources/assets/css/main.css +++ b/resources/assets/css/main.css @@ -2610,6 +2610,10 @@ margin: 2.5em 0 0 2.5em; } + .tiles-smaller article { + width: calc(25% - 2.5em); + } + .tiles article > .image { -moz-transition: -moz-transform 0.5s ease; -webkit-transition: -webkit-transform 0.5s ease; @@ -3179,6 +3183,18 @@ } + #second { + padding: 0em 0 6em 0 ; + } + + @media screen and (max-width: 736px) { + + #second { + padding: 0em 0 4em 0 ; + } + + } + /* Footer */ #footer { @@ -3343,4 +3359,20 @@ padding: 0 1.25em; } - } \ No newline at end of file + } + +.ss_exec_time { + background: #383838; + width: 100%; + text-align: center; + color: #fff; +} + +.nightly { + background: #383838 !important; + color: #fff; +} + +.nightly .copyright { + color: #bababa !important; +} \ No newline at end of file diff --git a/resources/assets/images/pic5.jpg b/resources/assets/images/pic5.jpg index e9543ec..75a794d 100644 Binary files a/resources/assets/images/pic5.jpg and b/resources/assets/images/pic5.jpg differ diff --git a/resources/assets/images/pic8.jpg b/resources/assets/images/pic8.jpg new file mode 100644 index 0000000..cc775d1 Binary files /dev/null and b/resources/assets/images/pic8.jpg differ diff --git a/resources/storage/cache/index.php b/resources/storage/cache/index.php new file mode 100644 index 0000000..aa21832 --- /dev/null +++ b/resources/storage/cache/index.php @@ -0,0 +1,2 @@ +parent = false; + + $this->blocks = array( + ); + } + + protected function doDisplay(array $context, array $blocks = array()) + { + // line 1 + echo " + + + 'StupidlySimple PHP | Home']; +Viewer::file('layouts/head', \$data); +?> + + +
+ + + + + + + + + +
+
+
+

Example Applications

+

StupidlySimple in the real world. See how StupidlySimple can be used in various applications / projects.

+
+
+ + + +
+
+
+ + + +
+ + + + +"; + } + + public function getTemplateName() + { + return "home.tpl.php"; + } + + public function getDebugInfo() + { + return array ( 19 => 1,); + } + + public function getSourceContext() + { + return new Twig_Source("", "home.tpl.php", "/Applications/MAMP/htdocs/github/php/resources/views/home.tpl.php"); + } +} diff --git a/resources/storage/cache/twig/df/df1006847e329e89367afe4f44cce5812a9def724c13610a9a3862f2192b9c00.php b/resources/storage/cache/twig/df/df1006847e329e89367afe4f44cce5812a9def724c13610a9a3862f2192b9c00.php new file mode 100644 index 0000000..c9fdb68 --- /dev/null +++ b/resources/storage/cache/twig/df/df1006847e329e89367afe4f44cce5812a9def724c13610a9a3862f2192b9c00.php @@ -0,0 +1,38 @@ +parent = false; + + $this->blocks = array( + ); + } + + protected function doDisplay(array $context, array $blocks = array()) + { + // line 1 + echo " +

This is twig!!!

+"; + } + + public function getTemplateName() + { + return "twig.tpl.php"; + } + + public function getDebugInfo() + { + return array ( 19 => 1,); + } + + public function getSourceContext() + { + return new Twig_Source("", "twig.tpl.php", "/Applications/MAMP/htdocs/github/php/resources/views/twig.tpl.php"); + } +} diff --git a/resources/storage/upload/index.php b/resources/storage/upload/index.php new file mode 100644 index 0000000..aa21832 --- /dev/null +++ b/resources/storage/upload/index.php @@ -0,0 +1,2 @@ + - 'StupidlySimple PHP | Home' ]; -Core\Viewer::file('../layouts/head.php', $data); ?> + 'StupidlySimple PHP | Home']); ?>
- true]; - Viewer::file('../layouts/top.php', $top_data) ?> + true]); ?> - +
@@ -25,17 +21,17 @@

Welcome to the Admin Area

A very fresh start for the MVC framework with some basic CRUD functions

- User successfully deleted

'; - }else if(Core\Request::get('edit') === 'success'){ - echo '

User successfully updated

'; - }else if(Core\Request::get('delete') === 'failed'){ - echo '

Failed to delete

'; - }else if(Core\Request::get('edit') === 'failed'){ - echo '

Failed to update

'; - } - + User successfully deleted

'; + } elseif (Request::get('edit') === 'success') { + echo '

User successfully updated

'; + } elseif (Request::get('delete') === 'failed') { + echo '

Failed to delete

'; + } elseif (Request::get('edit') === 'failed') { + echo '

Failed to update

'; + } + ?>
- + - + \ No newline at end of file diff --git a/resources/views/auth/login.php b/resources/views/auth/login.tpl.php similarity index 86% rename from resources/views/auth/login.php rename to resources/views/auth/login.tpl.php index 3e5969d..ef62e18 100755 --- a/resources/views/auth/login.php +++ b/resources/views/auth/login.tpl.php @@ -33,22 +33,26 @@ - + \ No newline at end of file diff --git a/resources/views/routing.php b/resources/views/directory.tpl.php similarity index 87% rename from resources/views/routing.php rename to resources/views/directory.tpl.php index 16d3b4a..1fc3d5f 100644 --- a/resources/views/routing.php +++ b/resources/views/directory.tpl.php @@ -5,16 +5,17 @@ Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> - 'StupidlySimple PHP | Service' ]; -Core\Viewer::file('layouts/head.php', $data); ?> + 'StupidlySimple PHP | Directory']; +Viewer::file('layouts/head', $data); +?>
- + - +
@@ -47,10 +48,10 @@
- + - + \ No newline at end of file diff --git a/resources/views/hello.php b/resources/views/hello.php deleted file mode 100644 index 587cd4f..0000000 --- a/resources/views/hello.php +++ /dev/null @@ -1,2 +0,0 @@ - - 'StupidlySimple PHP | Home' ]; -Core\Viewer::file('layouts/head.php', $data); ?> + 'StupidlySimple PHP | Home']; +Viewer::file('layouts/head', $data); +?>
- + - +
@@ -25,8 +26,20 @@ from the root directory. You can read tutorials and documentations on our website or even from here. Start coding today and get creative.

+
+
@@ -87,10 +100,56 @@
- + +
+
+
+

Example Applications

+

StupidlySimple in the real world. See how StupidlySimple can be used in various applications / projects.

+
+
+ + + +
+
+
+ + - + + \ No newline at end of file diff --git a/resources/views/layouts/footer.php b/resources/views/layouts/footer.tpl.php similarity index 80% rename from resources/views/layouts/footer.php rename to resources/views/layouts/footer.tpl.php index b0e537a..18d0938 100644 --- a/resources/views/layouts/footer.php +++ b/resources/views/layouts/footer.tpl.php @@ -1,5 +1,5 @@ -