From 72b003da6d48602c1a2dc4603e04c13aa1f72dfd Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Thu, 16 Feb 2017 02:51:05 +0800
Subject: [PATCH 01/34] Use nightly builds for php-core package
---
composer.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/composer.json b/composer.json
index bbfb907..7048584 100755
--- a/composer.json
+++ b/composer.json
@@ -16,7 +16,7 @@
"require": {
"php": ">=5.4.0",
"filp/whoops": "^2.1",
- "stupidlysimple/php-core": "0.4.*",
+ "stupidlysimple/php-core": "dev-nightly",
"symfony/var-dumper": "^3.1",
"phpFastCache/phpFastCache": "^4.3",
"illuminate/database": "5.2.*",
From 80a546b5b06c0b1d8bbba825cadddbe049b738c3 Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Thu, 16 Feb 2017 02:59:36 +0800
Subject: [PATCH 02/34] Update composer.lock
---
composer.lock | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/composer.lock b/composer.lock
index 5e5f048..7728b08 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"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": "9a8bcbb5a80f058cbb66ecc17eca28a0",
"packages": [
{
"name": "cartalyst/sentry",
@@ -611,16 +611,16 @@
},
{
"name": "stupidlysimple/php-core",
- "version": "0.4.0",
+ "version": "dev-nightly",
"source": {
"type": "git",
"url": "https://github.com/stupidlysimple/php-core.git",
- "reference": "275c09f97aa88cbbfa7cd8033668f00609702f74"
+ "reference": "7017cafb57143f678ba53cae341b69165a4000de"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/stupidlysimple/php-core/zipball/275c09f97aa88cbbfa7cd8033668f00609702f74",
- "reference": "275c09f97aa88cbbfa7cd8033668f00609702f74",
+ "url": "https://api.github.com/repos/stupidlysimple/php-core/zipball/7017cafb57143f678ba53cae341b69165a4000de",
+ "reference": "7017cafb57143f678ba53cae341b69165a4000de",
"shasum": ""
},
"require": {
@@ -653,7 +653,7 @@
"php framework",
"stupidly simple"
],
- "time": "2017-02-15T17:05:53+00:00"
+ "time": "2017-02-15 18:06:17"
},
{
"name": "symfony/polyfill-mbstring",
@@ -2150,7 +2150,9 @@
],
"aliases": [],
"minimum-stability": "stable",
- "stability-flags": [],
+ "stability-flags": {
+ "stupidlysimple/php-core": 20
+ },
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
From bad97b682915e947c79d1bf694dbe613c946a5bf Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Thu, 16 Feb 2017 03:05:32 +0800
Subject: [PATCH 03/34] Introducing Storage
---
resources/storage/cache/index.php | 2 ++
resources/storage/upload/index.php | 2 ++
2 files changed, 4 insertions(+)
create mode 100644 resources/storage/cache/index.php
create mode 100644 resources/storage/upload/index.php
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 @@
+
Date: Thu, 16 Feb 2017 03:07:49 +0800
Subject: [PATCH 04/34] Storage config file
---
config/storage.php | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 config/storage.php
diff --git a/config/storage.php b/config/storage.php
new file mode 100644
index 0000000..5a07475
--- /dev/null
+++ b/config/storage.php
@@ -0,0 +1,5 @@
+
Date: Thu, 16 Feb 2017 03:24:28 +0800
Subject: [PATCH 05/34] Remove para under nightly build
---
README.md | 2 --
resources/views/layouts/footer.php | 8 ++++----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 709b3e7..0f7ad9e 100755
--- a/README.md
+++ b/README.md
@@ -92,8 +92,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/resources/views/layouts/footer.php b/resources/views/layouts/footer.php
index b0e537a..cfe0bab 100644
--- a/resources/views/layouts/footer.php
+++ b/resources/views/layouts/footer.php
@@ -1,5 +1,5 @@
-
diff --git a/resources/views/routing.tpl.php b/resources/views/routing.tpl.php
index a70853e..2b1b109 100644
--- a/resources/views/routing.tpl.php
+++ b/resources/views/routing.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service' ];
-Core\Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Service'];
+Core\Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/service.tpl.php b/resources/views/service.tpl.php
index cdb936e..80f1b83 100644
--- a/resources/views/service.tpl.php
+++ b/resources/views/service.tpl.php
@@ -5,8 +5,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service' ];
+ 'StupidlySimple PHP | Service'];
Core\Viewer::file('layouts/head', $data); ?>
@@ -45,7 +45,7 @@
echo $service->test->calculate(1,'+',2);
Output:
- test->calculate(1,'+',2); ?>
+ test->calculate(1, '+', 2); ?>
diff --git a/resources/views/test.tpl.php b/resources/views/test.tpl.php
index 587cd4f..b75d24e 100644
--- a/resources/views/test.tpl.php
+++ b/resources/views/test.tpl.php
@@ -1,2 +1,2 @@
* @copyright 2017 Fariz Luqman
* @license MIT
+ *
* @link https://stupidlysimple.github.io/
*/
@@ -30,4 +30,4 @@
*/
Router::post('/login', 'Controller\Auth@authenticate');
Router::post('/register', 'Controller\Auth@register');
-Router::get('/logout', 'Controller\Auth@logout');
\ No newline at end of file
+Router::get('/logout', 'Controller\Auth@logout');
diff --git a/routes/web.php b/routes/web.php
index 151b93b..1b5ad0a 100755
--- a/routes/web.php
+++ b/routes/web.php
@@ -1,11 +1,11 @@
* @copyright 2017 Fariz Luqman
* @license MIT
+ *
* @link https://stupidlysimple.github.io/
*/
@@ -38,7 +38,7 @@
| see what happen.
|
*/
-Router::group('Middleware\Hello@filter', function() {
+Router::group('Middleware\Hello@filter', function () {
Router::get('/hello', 'hello');
Router::get('/hello/(:any)', 'Controller\Hello@greetWithName');
Router::post('/hello', 'Controller\Hello@greetForm');
@@ -54,7 +54,7 @@
| middleware will intercept the HTTP request if the user is not logged in.
|
*/
-Router::group('Controller\Auth@check', function() {
+Router::group('Controller\Auth@check', function () {
Router::get('/admin', 'admin/home');
Router::post('/updateuser', 'Controller\User@editUser');
Router::get('/deleteuser', 'Controller\User@deleteUser');
@@ -75,6 +75,6 @@
| other route declarations.
|
*/
-Router::get('/(:any)', function($match) {
- Viewer::file($match);
-});
\ No newline at end of file
+Router::get('/(:any)', function ($match) {
+ Viewer::file($match);
+});
From 7ea059b0484081542c9d7e02c18e1bc4e9ad819b Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Fri, 6 Oct 2017 02:16:48 +0800
Subject: [PATCH 15/34] Edit database.php and .htaccess
---
.htaccess | 34 +++++++++++++++++-----------------
config/database.php | 24 ++++++++++++++++++++++++
2 files changed, 41 insertions(+), 17 deletions(-)
diff --git a/.htaccess b/.htaccess
index 35b72bf..e3e820a 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,17 +1,17 @@
-#
-#Order Deny,Allow
-#Deny from all
-#Allow from 127.0.0.1
-#
-#
-#
-#Order Allow,Deny
-#Allow from all
-#
-#
-#Options +FollowSymLinks
-#RewriteEngine On
-#
-#RewriteCond %{REQUEST_FILENAME} !-d
-#RewriteCond %{REQUEST_FILENAME} !-f
-#RewriteRule ^ index.php [L]
\ No newline at end of file
+
+Order Deny,Allow
+Deny from all
+Allow from 127.0.0.1
+
+
+
+Order Allow,Deny
+Allow from all
+
+
+Options +FollowSymLinks
+RewriteEngine On
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteRule ^ index.php [L]
\ No newline at end of file
diff --git a/config/database.php b/config/database.php
index d24be6c..31f7890 100755
--- a/config/database.php
+++ b/config/database.php
@@ -2,6 +2,7 @@
/**
* StupidlySimple - A PHP Framework For Lazy Developers.
*
+<<<<<<< Updated upstream
* @author Fariz Luqman
* @copyright 2017 Fariz Luqman
* @license MIT
@@ -22,3 +23,26 @@
'prefix' => '',
],
];
+=======
+ * @package StupidlySimple
+ * @author Fariz Luqman
+ * @copyright 2017 Fariz Luqman
+ * @license MIT
+ * @link https://stupidlysimple.github.io/
+ */
+return
+ [
+ 'enabled' => true,
+ 'settings' =>
+ [
+ 'host' => 'localhost',
+ 'driver' => 'mysql',
+ 'database' => 'stupidlysimple',
+ 'username' => 'root',
+ 'password' => 'root',
+ 'charset' => 'utf8',
+ 'collation' => 'utf8_unicode_ci',
+ 'prefix' => '',
+ ]
+ ];
+>>>>>>> Stashed changes
From f511a2cee932a1555ed7927c1679dd70164712ea Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Fri, 6 Oct 2017 02:19:16 +0800
Subject: [PATCH 16/34] Fix database.php
---
config/database.php | 26 +-------------------------
1 file changed, 1 insertion(+), 25 deletions(-)
diff --git a/config/database.php b/config/database.php
index 31f7890..7bb9ec0 100755
--- a/config/database.php
+++ b/config/database.php
@@ -2,7 +2,6 @@
/**
* StupidlySimple - A PHP Framework For Lazy Developers.
*
-<<<<<<< Updated upstream
* @author Fariz Luqman
* @copyright 2017 Fariz Luqman
* @license MIT
@@ -22,27 +21,4 @@
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],
-];
-=======
- * @package StupidlySimple
- * @author Fariz Luqman
- * @copyright 2017 Fariz Luqman
- * @license MIT
- * @link https://stupidlysimple.github.io/
- */
-return
- [
- 'enabled' => true,
- 'settings' =>
- [
- 'host' => 'localhost',
- 'driver' => 'mysql',
- 'database' => 'stupidlysimple',
- 'username' => 'root',
- 'password' => 'root',
- 'charset' => 'utf8',
- 'collation' => 'utf8_unicode_ci',
- 'prefix' => '',
- ]
- ];
->>>>>>> Stashed changes
+];
\ No newline at end of file
From 59c7ef70dcf44bfbf8b7b8e72c0d1a2e4ba5f714 Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Thu, 5 Oct 2017 18:21:38 +0000
Subject: [PATCH 17/34] Apply fixes from StyleCI
---
config/database.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/database.php b/config/database.php
index 7bb9ec0..d24be6c 100755
--- a/config/database.php
+++ b/config/database.php
@@ -21,4 +21,4 @@
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],
-];
\ No newline at end of file
+];
From d1c71c7e450a938bd4f7ccd3b892dd3307d75440 Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Sat, 7 Oct 2017 06:34:29 +0800
Subject: [PATCH 18/34] Update README.md
---
README.md | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 0f7ad9e..3c18d40 100755
--- a/README.md
+++ b/README.md
@@ -2,10 +2,9 @@
Follow us on [Facebook](https://www.facebook.com/stupidlysimpleframework).
-[](https://gitter.im/stupidlysimpleframework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[](https://badge.fury.io/ph/stupidlysimple%2Fphp) [](https://gitter.im/stupidlysimpleframework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-[](https://badge.fury.io/ph/stupidlysimple%2Fphp) [](https://travis-ci.org/stupidlysimple/php)
-[](https://packagist.org/packages/stupidlysimple/php)
+[](https://travis-ci.org/stupidlysimple/php) [](https://styleci.io/repos/62019007) [](https://scrutinizer-ci.com/g/stupidlysimple/php/) [](https://packagist.org/packages/stupidlysimple/php)
[](https://packagist.org/packages/stupidlysimple/php)
[](https://github.com/stupidlysimple/php/blob/master/LICENSE)
[](https://www.google.com/search?q=malaysia)
From 5eac644b615201fb9a8639a3e6add468ce6e3b34 Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Sat, 7 Oct 2017 06:37:26 +0800
Subject: [PATCH 19/34] Release candidate 0.5 (need to review changes)
---
app/Controller/Auth.php | 6 +-
app/autoloader.php | 4 +-
app/bootstrap.php | 33 ++++++---
composer.json | 16 ++++-
config/aliases.php | 33 +++++----
config/cache.php | 108 ++++++++++++++---------------
config/env.php | 2 +-
index.php | 4 +-
resources/views/admin/home.tpl.php | 42 +++++------
resources/views/controller.tpl.php | 6 +-
resources/views/hello.tpl.php | 2 +-
resources/views/home.tpl.php | 6 +-
resources/views/model.tpl.php | 18 ++---
resources/views/routing.tpl.php | 6 +-
resources/views/service.tpl.php | 6 +-
15 files changed, 159 insertions(+), 133 deletions(-)
diff --git a/app/Controller/Auth.php b/app/Controller/Auth.php
index 02cb058..5e7873c 100755
--- a/app/Controller/Auth.php
+++ b/app/Controller/Auth.php
@@ -11,9 +11,9 @@
namespace Controller;
-use Request;
-use Response;
-use Sentry;
+use Simplyfier\Http\Request;
+use Simplyfier\Http\Response;
+use Cartalyst\Sentry\Facades\Native\Sentry;
/**
* Class Auth.
diff --git a/app/autoloader.php b/app/autoloader.php
index 8866e73..ac38c99 100755
--- a/app/autoloader.php
+++ b/app/autoloader.php
@@ -30,7 +30,7 @@
| function everywhere in the project.
|
*/
-Core\Config::setEnv();
+Simplyfier\Config::setEnv();
/*
|--------------------------------------------------------------------------
@@ -41,4 +41,4 @@
| configuration (located at config/env.php).
|
*/
-Core\Debugger::start();
+Simplyfier\Debugger::start();
diff --git a/app/bootstrap.php b/app/bootstrap.php
index e73960f..5d0c1bb 100755
--- a/app/bootstrap.php
+++ b/app/bootstrap.php
@@ -9,6 +9,16 @@
* @link https://stupidlysimple.github.io/
*/
+use Simplyfier\Alias;
+use Simplyfier\Cache;
+use Simplyfier\TimeTrackr;
+use Simplyfier\Database;
+use Simplyfier\DI\Container;
+use Simplyfier\DI\Sharer;
+use Simplyfier\Debugger;
+use Simplyfier\Service;
+use Simplyfier\Http\Router;
+
/*
|--------------------------------------------------------------------------
| Setup Aliases
@@ -17,7 +27,7 @@
| Reads the configuration file (config/aliases.php) and create aliases
|
*/
-Core\Alias::init();
+Alias::loadAliases();
/*
|--------------------------------------------------------------------------
@@ -27,18 +37,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 +59,7 @@
| Connect the database for only once. Save the planet.
|
*/
-$app->link('database', Database::connect());
+$app->put('database', Database::connect());
/*
|--------------------------------------------------------------------------
@@ -59,7 +70,7 @@
| capabilities.
|
*/
-$app->link('cachemanager', Cache::init());
+$app->put('cachemanager', Cache::initialize());
/*
|--------------------------------------------------------------------------
@@ -72,11 +83,11 @@
$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);
diff --git a/composer.json b/composer.json
index 704252a..e90440e 100755
--- a/composer.json
+++ b/composer.json
@@ -34,7 +34,21 @@
},
"autoload": {
"psr-4": {
- "Core\\": "app/Core"
+ "Simplyfier\\": [
+ "vendor/simplyfier/alias",
+ "vendor/simplyfier/config",
+ "vendor/simplyfier/database",
+ "vendor/simplyfier/timetrackr",
+ "vendor/simplyfier/debugger",
+ "vendor/simplyfier/service",
+ "vendor/simplyfier/viewer",
+ "vendor/simplyfier/cache"
+ ],
+ "Simplyfier\\Database\\Factories\\": "vendor/simplyfier/database/factories",
+ "Simplyfier\\Cache\\Factories\\": "vendor/simplyfier/cache/factories",
+ "Simplyfier\\Debugger\\Providers\\": "vendor/simplyfier/debugger/providers",
+ "Simplyfier\\DI\\": "vendor/simplyfier/di",
+ "Simplyfier\\Http\\": "vendor/simplyfier/http"
},
"classmap": [
"app/Model",
diff --git a/config/aliases.php b/config/aliases.php
index 302b2ab..467c826 100755
--- a/config/aliases.php
+++ b/config/aliases.php
@@ -2,25 +2,24 @@
/**
* StupidlySimple - A PHP Framework For Lazy Developers.
*
- * @author Fariz Luqman
- * @copyright 2017 Fariz Luqman
- * @license MIT
+ * @author Fariz Luqman
+ * @copyright 2017 Fariz Luqman
+ * @license MIT
*
- * @link https://stupidlysimple.github.io/
+ * @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',
+ '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 a41cf19..d23f638 100755
--- a/config/cache.php
+++ b/config/cache.php
@@ -2,71 +2,71 @@
/**
* StupidlySimple - A PHP Framework For Lazy Developers.
*
- * @author Fariz Luqman
- * @copyright 2017 Fariz Luqman
- * @license MIT
+ * @author Fariz Luqman
+ * @copyright 2017 Fariz Luqman
+ * @license MIT
*
- * @link https://stupidlysimple.github.io/
+ * @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' => [
+ /*
+ * Default Memcache Server for all $cache = phpFastCache('memcache');
+ */
+ 'server' => [
['127.0.0.1', 11211, 1],
- ],
+ ],
- 'memcache' => [
+ 'memcache' => [
['127.0.0.1', 11211, 1],
- ],
+ ],
- 'redis' => [
- 'host' => '127.0.0.1',
- 'port' => '6379',
- 'password' => '',
- 'database' => '',
- 'timeout' => '',
- ],
+ 'redis' => [
+ 'host' => '127.0.0.1',
+ 'port' => '6379',
+ 'password' => '',
+ 'database' => '',
+ 'timeout' => '',
+ ],
- 'ssdb' => [
- 'host' => '127.0.0.1',
- 'port' => 8888,
- 'password' => '',
- '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,
+ ],
];
diff --git a/config/env.php b/config/env.php
index 7eb5686..976988d 100755
--- a/config/env.php
+++ b/config/env.php
@@ -16,7 +16,7 @@
* 1 - Show simple error message, file and the line occured
* 2 - Advanced debugging with code snippet, stack frames, and envionment details
*/
- 'DEBUG' => 1,
+ 'DEBUG' => 2,
/*
* Display the time taken to complete current request. See the bootstrap.php file
diff --git a/index.php b/index.php
index d5d6f51..fa438d1 100755
--- a/index.php
+++ b/index.php
@@ -8,7 +8,9 @@
*
* @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
diff --git a/resources/views/admin/home.tpl.php b/resources/views/admin/home.tpl.php
index 4de89df..d5cd0f0 100644
--- a/resources/views/admin/home.tpl.php
+++ b/resources/views/admin/home.tpl.php
@@ -5,7 +5,7 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Home']); ?>
+ 'StupidlySimple PHP | Home']); ?>
@@ -21,17 +21,17 @@
Welcome to the Admin Area
A very fresh start for the MVC framework with some basic CRUD functions
- User successfully deleted';
- } elseif (Core\Request::get('edit') === 'success') {
- echo '
User successfully updated
';
- } elseif (Core\Request::get('delete') === 'failed') {
- echo '
Failed to delete
';
- } elseif (Core\Request::get('edit') === 'failed') {
- echo '
Failed to update
';
- }
-
+ User successfully deleted';
+ } elseif (Core\Request::get('edit') === 'success') {
+ echo '
User successfully updated
';
+ } elseif (Core\Request::get('delete') === 'failed') {
+ echo '
Failed to delete
';
+ } elseif (Core\Request::get('edit') === 'failed') {
+ echo '
Failed to update
';
+ }
+
?>
@@ -52,15 +52,15 @@
- test->getRegisteredUsers() as $user) {
- echo '';
- echo '| '.$user->first_name.' | ';
- echo ''.$user->last_name.' | ';
- echo ''.$user->email.' | ';
- echo 'Delete | ';
- echo '
';
- }
+ test->getRegisteredUsers() as $user) {
+ echo '';
+ echo '| '.$user->first_name.' | ';
+ echo ''.$user->last_name.' | ';
+ echo ''.$user->email.' | ';
+ echo 'Delete | ';
+ echo '
';
+ }
?>
diff --git a/resources/views/controller.tpl.php b/resources/views/controller.tpl.php
index a25c256..d893479 100644
--- a/resources/views/controller.tpl.php
+++ b/resources/views/controller.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple | Controller'];
-Core\Viewer::file('layouts/head', $data); ?>
+ 'StupidlySimple | Controller'];
+Viewer::file('layouts/head', $data); ?>
diff --git a/resources/views/hello.tpl.php b/resources/views/hello.tpl.php
index b75d24e..a813e22 100644
--- a/resources/views/hello.tpl.php
+++ b/resources/views/hello.tpl.php
@@ -1,2 +1,2 @@
- 'StupidlySimple PHP | Home'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Home'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/model.tpl.php b/resources/views/model.tpl.php
index 2a097eb..6500d5c 100644
--- a/resources/views/model.tpl.php
+++ b/resources/views/model.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Core\Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Service'];
+Viewer::file('layouts/head', $data);
?>
@@ -35,17 +35,17 @@
Load all Post
Load the whole post with Model\Post::all()
-
= $first_post->'.$post->title.'
= $first_post->'.$post->content.'
-
';
- }
- echo 'There are: '.Model\Post::all()->count().' posts.';
+
';
+ }
+ echo 'There are: '.Model\Post::all()->count().' posts.';
?>
diff --git a/resources/views/routing.tpl.php b/resources/views/routing.tpl.php
index 2b1b109..513a86a 100644
--- a/resources/views/routing.tpl.php
+++ b/resources/views/routing.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Core\Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Service'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/service.tpl.php b/resources/views/service.tpl.php
index 80f1b83..3d14bcd 100644
--- a/resources/views/service.tpl.php
+++ b/resources/views/service.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Core\Viewer::file('layouts/head', $data); ?>
+ 'StupidlySimple PHP | Service'];
+Viewer::file('layouts/head', $data); ?>
From ece84509a23e3abd9197bfc9174976f62abf3292 Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Fri, 6 Oct 2017 22:37:59 +0000
Subject: [PATCH 20/34] Apply fixes from StyleCI
---
app/Controller/Auth.php | 2 +-
app/bootstrap.php | 7 +++---
config/aliases.php | 24 +++++++++---------
config/cache.php | 16 ++++++------
resources/views/admin/home.tpl.php | 40 +++++++++++++++---------------
resources/views/controller.tpl.php | 4 +--
resources/views/hello.tpl.php | 2 +-
resources/views/home.tpl.php | 6 ++---
resources/views/model.tpl.php | 18 +++++++-------
resources/views/routing.tpl.php | 6 ++---
resources/views/service.tpl.php | 4 +--
resources/views/test.tpl.php | 1 +
12 files changed, 65 insertions(+), 65 deletions(-)
diff --git a/app/Controller/Auth.php b/app/Controller/Auth.php
index 5e7873c..81abbf3 100755
--- a/app/Controller/Auth.php
+++ b/app/Controller/Auth.php
@@ -11,9 +11,9 @@
namespace Controller;
+use Cartalyst\Sentry\Facades\Native\Sentry;
use Simplyfier\Http\Request;
use Simplyfier\Http\Response;
-use Cartalyst\Sentry\Facades\Native\Sentry;
/**
* Class Auth.
diff --git a/app/bootstrap.php b/app/bootstrap.php
index 5d0c1bb..b980d23 100755
--- a/app/bootstrap.php
+++ b/app/bootstrap.php
@@ -8,16 +8,15 @@
*
* @link https://stupidlysimple.github.io/
*/
-
use Simplyfier\Alias;
use Simplyfier\Cache;
-use Simplyfier\TimeTrackr;
use Simplyfier\Database;
+use Simplyfier\Debugger;
use Simplyfier\DI\Container;
use Simplyfier\DI\Sharer;
-use Simplyfier\Debugger;
-use Simplyfier\Service;
use Simplyfier\Http\Router;
+use Simplyfier\Service;
+use Simplyfier\TimeTrackr;
/*
|--------------------------------------------------------------------------
diff --git a/config/aliases.php b/config/aliases.php
index 467c826..0d75c6a 100755
--- a/config/aliases.php
+++ b/config/aliases.php
@@ -9,17 +9,17 @@
* @link https://stupidlysimple.github.io/
*/
return [
- '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',
+ '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 d23f638..f0ceca4 100755
--- a/config/cache.php
+++ b/config/cache.php
@@ -9,7 +9,7 @@
* @link https://stupidlysimple.github.io/
*/
return [
- 'enabled' => true,
+ 'enabled' => true,
'settings' => [
/*
* Default storage
@@ -22,7 +22,7 @@
* Use full PATH like /home/username/cache
* Keep it blank '', it will automatic setup for you
*/
- 'path' => '', // default path for files
+ 'path' => '', // default path for files
'securityKey' => '', // default will good. It will create a path by PATH/securityKey
/*
@@ -50,18 +50,18 @@
],
'redis' => [
- 'host' => '127.0.0.1',
- 'port' => '6379',
+ 'host' => '127.0.0.1',
+ 'port' => '6379',
'password' => '',
'database' => '',
- 'timeout' => '',
+ 'timeout' => '',
],
'ssdb' => [
- 'host' => '127.0.0.1',
- 'port' => 8888,
+ 'host' => '127.0.0.1',
+ 'port' => 8888,
'password' => '',
- 'timeout' => '',
+ 'timeout' => '',
],
/*
diff --git a/resources/views/admin/home.tpl.php b/resources/views/admin/home.tpl.php
index d5cd0f0..e0a2a8e 100644
--- a/resources/views/admin/home.tpl.php
+++ b/resources/views/admin/home.tpl.php
@@ -21,17 +21,17 @@
Welcome to the Admin Area
A very fresh start for the MVC framework with some basic CRUD functions
- User successfully deleted';
- } elseif (Core\Request::get('edit') === 'success') {
- echo 'User successfully updated
';
- } elseif (Core\Request::get('delete') === 'failed') {
- echo 'Failed to delete
';
- } elseif (Core\Request::get('edit') === 'failed') {
- echo 'Failed to update
';
- }
-
+ User successfully deleted';
+ } elseif (Core\Request::get('edit') === 'success') {
+ echo 'User successfully updated
';
+ } elseif (Core\Request::get('delete') === 'failed') {
+ echo 'Failed to delete
';
+ } elseif (Core\Request::get('edit') === 'failed') {
+ echo 'Failed to update
';
+ }
+
?>
@@ -52,15 +52,15 @@
- test->getRegisteredUsers() as $user) {
- echo '';
- echo '| '.$user->first_name.' | ';
- echo ''.$user->last_name.' | ';
- echo ''.$user->email.' | ';
- echo 'Delete | ';
- echo '
';
- }
+ test->getRegisteredUsers() as $user) {
+ echo '';
+ echo '| '.$user->first_name.' | ';
+ echo ''.$user->last_name.' | ';
+ echo ''.$user->email.' | ';
+ echo 'Delete | ';
+ echo '
';
+ }
?>
diff --git a/resources/views/controller.tpl.php b/resources/views/controller.tpl.php
index d893479..f02dff0 100644
--- a/resources/views/controller.tpl.php
+++ b/resources/views/controller.tpl.php
@@ -5,8 +5,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple | Controller'];
+ 'StupidlySimple | Controller'];
Viewer::file('layouts/head', $data); ?>
diff --git a/resources/views/hello.tpl.php b/resources/views/hello.tpl.php
index a813e22..b75d24e 100644
--- a/resources/views/hello.tpl.php
+++ b/resources/views/hello.tpl.php
@@ -1,2 +1,2 @@
- 'StupidlySimple PHP | Home'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Home'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/model.tpl.php b/resources/views/model.tpl.php
index 6500d5c..4ac5604 100644
--- a/resources/views/model.tpl.php
+++ b/resources/views/model.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Service'];
+Viewer::file('layouts/head', $data);
?>
@@ -35,17 +35,17 @@
Load all Post
Load the whole post with Model\Post::all()
-
= $first_post->'.$post->title.'
= $first_post->'.$post->content.'
-
';
- }
- echo 'There are: '.Model\Post::all()->count().' posts.';
+ ';
+ }
+ echo 'There are: '.Model\Post::all()->count().' posts.';
?>
diff --git a/resources/views/routing.tpl.php b/resources/views/routing.tpl.php
index 513a86a..326ade2 100644
--- a/resources/views/routing.tpl.php
+++ b/resources/views/routing.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Service'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/service.tpl.php b/resources/views/service.tpl.php
index 3d14bcd..2b1d273 100644
--- a/resources/views/service.tpl.php
+++ b/resources/views/service.tpl.php
@@ -5,8 +5,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
+ 'StupidlySimple PHP | Service'];
Viewer::file('layouts/head', $data); ?>
diff --git a/resources/views/test.tpl.php b/resources/views/test.tpl.php
index b75d24e..881af89 100644
--- a/resources/views/test.tpl.php
+++ b/resources/views/test.tpl.php
@@ -1,2 +1,3 @@
Date: Sat, 7 Oct 2017 07:09:34 +0800
Subject: [PATCH 21/34] Add minimum stability to dev (for nightly)
---
composer.json | 1 +
1 file changed, 1 insertion(+)
diff --git a/composer.json b/composer.json
index e90440e..876ebe6 100755
--- a/composer.json
+++ b/composer.json
@@ -20,6 +20,7 @@
"config": {
"vendor-dir": "vendor"
},
+ "minimum-stability": "dev",
"require": {
"php": ">=5.4.0",
"filp/whoops": "^2.1",
From 2bd36f4f0b6dfab181fb981e4aeb97a214190713 Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Tue, 10 Oct 2017 12:37:49 +0800
Subject: [PATCH 22/34] Release candidate 0.5.0-dev
---
composer.json | 29 +-
composer.lock | 991 ++++++++++++++++++++++++++++++++++++++------------
2 files changed, 762 insertions(+), 258 deletions(-)
diff --git a/composer.json b/composer.json
index 876ebe6..0fb7efc 100755
--- a/composer.json
+++ b/composer.json
@@ -24,32 +24,27 @@
"require": {
"php": ">=5.4.0",
"filp/whoops": "^2.1",
- "stupidlysimple/php-core": "dev-nightly",
"symfony/var-dumper": "^3.1",
"phpFastCache/phpFastCache": "^4.3",
"illuminate/database": "5.2.*",
- "cartalyst/sentry": "2.1.*"
+ "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"
},
"require-dev": {
"phpunit/phpunit": "5.4.*"
},
"autoload": {
"psr-4": {
- "Simplyfier\\": [
- "vendor/simplyfier/alias",
- "vendor/simplyfier/config",
- "vendor/simplyfier/database",
- "vendor/simplyfier/timetrackr",
- "vendor/simplyfier/debugger",
- "vendor/simplyfier/service",
- "vendor/simplyfier/viewer",
- "vendor/simplyfier/cache"
- ],
- "Simplyfier\\Database\\Factories\\": "vendor/simplyfier/database/factories",
- "Simplyfier\\Cache\\Factories\\": "vendor/simplyfier/cache/factories",
- "Simplyfier\\Debugger\\Providers\\": "vendor/simplyfier/debugger/providers",
- "Simplyfier\\DI\\": "vendor/simplyfier/di",
- "Simplyfier\\Http\\": "vendor/simplyfier/http"
+
},
"classmap": [
"app/Model",
diff --git a/composer.lock b/composer.lock
index 7728b08..ed9342b 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": "9a8bcbb5a80f058cbb66ecc17eca28a0",
+ "content-hash": "592f3c47af3ed3c92c373aff660edaef",
"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,37 @@
"laravel",
"security"
],
- "time": "2015-11-26T01:19:39+00:00"
+ "time": "2016-09-05 00:18:34"
},
{
"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 +171,25 @@
"singularize",
"string"
],
- "time": "2015-11-06T14:35:42+00:00"
+ "time": "2017-10-04 05:38:52"
},
{
"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 +232,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 +275,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 +317,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 +377,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 +436,20 @@
],
"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": "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": {
@@ -488,20 +489,20 @@
"datetime",
"time"
],
- "time": "2017-01-16T07:55:07+00:00"
+ "time": "2017-02-06 22:02:47"
},
{
"name": "paragonie/random_compat",
- "version": "v1.4.1",
+ "version": "v1.x-dev",
"source": {
"type": "git",
"url": "https://github.com/paragonie/random_compat.git",
- "reference": "c7e26a21ba357863de030f0b9e701c7d04593774"
+ "reference": "965cdeb01fdcab7653253aa81d40441d261f1e66"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/paragonie/random_compat/zipball/c7e26a21ba357863de030f0b9e701c7d04593774",
- "reference": "c7e26a21ba357863de030f0b9e701c7d04593774",
+ "url": "https://api.github.com/repos/paragonie/random_compat/zipball/965cdeb01fdcab7653253aa81d40441d261f1e66",
+ "reference": "965cdeb01fdcab7653253aa81d40441d261f1e66",
"shasum": ""
},
"require": {
@@ -536,11 +537,11 @@
"pseudorandom",
"random"
],
- "time": "2016-03-18T20:34:03+00:00"
+ "time": "2017-03-13 16:22:52"
},
{
"name": "phpfastcache/phpfastcache",
- "version": "4.3.18",
+ "version": "v4.x-dev",
"source": {
"type": "git",
"url": "https://github.com/PHPSocialNetwork/phpfastcache.git",
@@ -607,29 +608,417 @@
"redis",
"wincache"
],
- "time": "2017-01-24T00:38:01+00:00"
+ "time": "2017-01-24 00:38:01"
},
{
- "name": "stupidlysimple/php-core",
- "version": "dev-nightly",
+ "name": "psr/log",
+ "version": "dev-master",
"source": {
"type": "git",
- "url": "https://github.com/stupidlysimple/php-core.git",
- "reference": "7017cafb57143f678ba53cae341b69165a4000de"
+ "url": "https://github.com/php-fig/log.git",
+ "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/stupidlysimple/php-core/zipball/7017cafb57143f678ba53cae341b69165a4000de",
- "reference": "7017cafb57143f678ba53cae341b69165a4000de",
+ "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
+ "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
"shasum": ""
},
"require": {
- "php": ">=5.4.0"
+ "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": [
+ "hhvm",
+ "http",
+ "lazy",
+ "micro framework",
+ "php 7",
+ "php framework",
+ "request",
+ "response",
+ "router",
+ "stupidly simple"
+ ],
+ "time": "2017-10-10 04:02:14"
+ },
+ {
+ "name": "simplyfier/service",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/simplyfier/service.git",
+ "reference": "5aa1dbf16183c712728e1541628e35fc146fbe70"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/simplyfier/service/zipball/5aa1dbf16183c712728e1541628e35fc146fbe70",
+ "reference": "5aa1dbf16183c712728e1541628e35fc146fbe70",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.6.0"
},
"type": "project",
"autoload": {
"psr-4": {
- "Core\\": "src"
+ "Simplyfier\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -644,8 +1033,9 @@
"role": "Developer"
}
],
- "description": "The core package for Stupidly Simple framework",
+ "description": "The Service manager for Stupidly Simple framework",
"keywords": [
+ "Service Manager",
"hhvm",
"lazy",
"micro framework",
@@ -653,20 +1043,114 @@
"php framework",
"stupidly simple"
],
- "time": "2017-02-15 18:06:17"
+ "time": "2017-10-10 04:01:22"
+ },
+ {
+ "name": "simplyfier/timetrackr",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/simplyfier/timetrackr.git",
+ "reference": "41ad6aa6b8df2e959f36c25967cd9c9a17ff27b6"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/simplyfier/timetrackr/zipball/41ad6aa6b8df2e959f36c25967cd9c9a17ff27b6",
+ "reference": "41ad6aa6b8df2e959f36c25967cd9c9a17ff27b6",
+ "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": "Manage everything related to Date and Time",
+ "keywords": [
+ "hhvm",
+ "lazy",
+ "micro framework",
+ "php 7",
+ "php framework",
+ "stupidly simple",
+ "time tracking"
+ ],
+ "time": "2017-10-10 03:59:08"
+ },
+ {
+ "name": "simplyfier/viewer",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/simplyfier/viewer.git",
+ "reference": "5baf5635f57c01bc9b5a6a348ab240f6f9d76024"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/simplyfier/viewer/zipball/5baf5635f57c01bc9b5a6a348ab240f6f9d76024",
+ "reference": "5baf5635f57c01bc9b5a6a348ab240f6f9d76024",
+ "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": "Manage everything related to Date and Time",
+ "keywords": [
+ "hhvm",
+ "lazy",
+ "micro framework",
+ "php 7",
+ "php framework",
+ "stupidly simple",
+ "time tracking"
+ ],
+ "time": "2017-10-10 03:58:13"
},
{
"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 +1162,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.3-dev"
+ "dev-master": "1.5-dev"
}
},
"autoload": {
@@ -712,34 +1196,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 +1237,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.2-dev"
+ "dev-master": "3.4-dev"
}
},
"autoload": {
@@ -776,36 +1264,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 +1333,36 @@
"debug",
"dump"
],
- "time": "2017-01-24T12:58:58+00:00"
+ "time": "2017-10-05 12:34:03"
}
],
"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 +1387,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 +1429,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 +1483,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 +1528,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 +1575,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 +1638,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 +1701,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 +1748,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 +1793,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 +1838,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 +1887,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 +1912,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 +1965,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 +2024,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 +2069,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 +2133,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 +2185,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 +2235,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 +2302,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 +2353,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 +2399,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 +2452,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 +2494,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 +2537,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 +2568,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.2-dev"
+ "dev-master": "3.4-dev"
}
},
"autoload": {
@@ -2095,20 +2595,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,13 +2645,22 @@
"check",
"validate"
],
- "time": "2016-11-23T20:04:58+00:00"
+ "time": "2016-11-23 20:04:41"
}
],
"aliases": [],
- "minimum-stability": "stable",
+ "minimum-stability": "dev",
"stability-flags": {
- "stupidlysimple/php-core": 20
+ "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,
From 351bbd9859844d100943f1576f33dc1f35e47f0c Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Mon, 16 Oct 2017 09:10:27 +0800
Subject: [PATCH 23/34] Release candidate 0.5-beta2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Add SwaggerPHP for documentation
- Fixes some bug on the admin page
- Create the directory structure page
- … more to come
---
composer.json | 3 +-
composer.lock | 235 ++++++++++++++++++++++++++-
resources/views/admin/home.tpl.php | 40 ++---
resources/views/directory.tpl.php | 57 +++++++
resources/views/home.tpl.php | 28 ++--
resources/views/layouts/menu.tpl.php | 4 +-
6 files changed, 330 insertions(+), 37 deletions(-)
create mode 100644 resources/views/directory.tpl.php
diff --git a/composer.json b/composer.json
index 0fb7efc..9444347 100755
--- a/composer.json
+++ b/composer.json
@@ -37,7 +37,8 @@
"simplyfier/timetrackr": "dev-master",
"simplyfier/viewer": "dev-master",
"simplyfier/database": "dev-master",
- "simplyfier/service": "dev-master"
+ "simplyfier/service": "dev-master",
+ "zircote/swagger-php": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "5.4.*"
diff --git a/composer.lock b/composer.lock
index ed9342b..734b3b5 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"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": "592f3c47af3ed3c92c373aff660edaef",
+ "content-hash": "e0356f390b6b376732cc50418ef276cc",
"packages": [
{
"name": "cartalyst/sentry",
@@ -106,6 +106,74 @@
],
"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": "dev-master",
@@ -173,6 +241,60 @@
],
"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.10",
@@ -1139,6 +1261,55 @@
],
"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"
+ }
+ ],
+ "description": "Symfony Finder Component",
+ "homepage": "https://symfony.com",
+ "time": "2017-10-02 06:49:52"
+ },
{
"name": "symfony/polyfill-mbstring",
"version": "dev-master",
@@ -1334,6 +1505,68 @@
"dump"
],
"time": "2017-10-05 12:34:03"
+ },
+ {
+ "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": [
diff --git a/resources/views/admin/home.tpl.php b/resources/views/admin/home.tpl.php
index e0a2a8e..039455c 100644
--- a/resources/views/admin/home.tpl.php
+++ b/resources/views/admin/home.tpl.php
@@ -21,17 +21,17 @@
Welcome to the Admin Area
A very fresh start for the MVC framework with some basic CRUD functions
- User successfully deleted';
- } elseif (Core\Request::get('edit') === 'success') {
- echo 'User successfully updated
';
- } elseif (Core\Request::get('delete') === 'failed') {
- echo 'Failed to delete
';
- } elseif (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
';
+ }
+
?>
@@ -52,15 +52,15 @@
- test->getRegisteredUsers() as $user) {
- echo '';
- echo '| '.$user->first_name.' | ';
- echo ''.$user->last_name.' | ';
- echo ''.$user->email.' | ';
- echo 'Delete | ';
- echo '
';
- }
+ test->getRegisteredUsers() as $user) {
+ echo '';
+ echo '| '.$user->first_name.' | ';
+ echo ''.$user->last_name.' | ';
+ echo ''.$user->email.' | ';
+ echo 'Delete | ';
+ echo '
';
+ }
?>
diff --git a/resources/views/directory.tpl.php b/resources/views/directory.tpl.php
new file mode 100644
index 0000000..326ade2
--- /dev/null
+++ b/resources/views/directory.tpl.php
@@ -0,0 +1,57 @@
+
+
+
+ 'StupidlySimple PHP | Service'];
+Viewer::file('layouts/head', $data);
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
Introduction to Routing
+
The Router is responsible for mapping incoming browser requests to particular MVC controller actions.
+ For example, the Router will map the uri /home to a HTML file called myhomepage.html. See?
+
The Router is among the important part in MVC frameworks. Routes are defined in the directory /routes
+ in the root of the StupidlySimple framework. We have several route groups defined in the folder, which is:
+ api.php for the use of RESTful APIs, auth.php for authentication related routes,
+ web.php for general routes and hello.php simply for this tutorial.
+
+
Check out on how we define the web routes on GitHub.
+
+
Router Demonstration
+
We have a couple of example on how routing on StupidlySimple works:
+
+
1) Remove .php from routes (View on GitHub)
+
Go to /routing
+ (Isn't it the same? Duh! But, you got the point?)
+
+
2) The Hello World (View on GitHub)
+
Go to /hello
+
+
3) Route /hello/yourname (View on GitHub)
+
Go to /hello/Adam
+ (See Controller to understand how this works)
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/views/home.tpl.php b/resources/views/home.tpl.php
index 76f685c..51b6d52 100644
--- a/resources/views/home.tpl.php
+++ b/resources/views/home.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Home'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Home'];
+Viewer::file('layouts/head', $data);
?>
@@ -29,6 +29,17 @@
+
+
+
+
+
+ Directory Structure
+
+
See the directory structure of the StupidlySimple PHP framework
+
+
+
@@ -74,17 +85,6 @@
-
-
-
-
-
- Directory Structure
-
-
See the directory structure of the StupidlySimple PHP framework
-
-
-
diff --git a/resources/views/layouts/menu.tpl.php b/resources/views/layouts/menu.tpl.php
index 090926d..4df98c6 100644
--- a/resources/views/layouts/menu.tpl.php
+++ b/resources/views/layouts/menu.tpl.php
@@ -3,6 +3,7 @@
Menu
\ No newline at end of file
From 125ba2923f2fec8664b5bb0194d1d7f2df92cc1d Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Mon, 16 Oct 2017 15:06:56 +0800
Subject: [PATCH 24/34] Add php unit testing
---
app/Service/Test/TestService.php | 21 ++++++++-
phpunit.xml | 2 +-
tests/AppTest.php | 80 ++++++++++++++++++++++++++++++++
tests/bootstrap.php | 19 ++++++++
4 files changed, 119 insertions(+), 3 deletions(-)
create mode 100755 tests/AppTest.php
create mode 100755 tests/bootstrap.php
diff --git a/app/Service/Test/TestService.php b/app/Service/Test/TestService.php
index 7c21016..12f61ba 100644
--- a/app/Service/Test/TestService.php
+++ b/app/Service/Test/TestService.php
@@ -11,15 +11,29 @@
namespace Service\Test;
-use ServiceContainer;
+use Model\User;
+use Simplyfier\Service\ServiceContainer;
+/**
+ * Class TestService
+ * @package Service\Test
+ */
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 == '+') {
@@ -35,8 +49,11 @@ public function calculate($var1, $operation, $var2)
}
}
+ /**
+ * @return \Illuminate\Database\Eloquent\Collection|static[]
+ */
public function getRegisteredUsers()
{
- return \Model\User::all();
+ return User::all();
}
}
diff --git a/phpunit.xml b/phpunit.xml
index 1b84158..404041a 100755
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -7,5 +7,5 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
- bootstrap="vendor/stupidlysimple/php-core/tests/bootstrap.php">
+ bootstrap="tests/bootstrap.php">
\ No newline at end of file
diff --git a/tests/AppTest.php b/tests/AppTest.php
new file mode 100755
index 0000000..2fe722a
--- /dev/null
+++ b/tests/AppTest.php
@@ -0,0 +1,80 @@
+
+ * @copyright 2017 Fariz Luqman
+ * @license MIT
+ * @link https://stupidlysimple.github.io/
+ */
+
+/**
+ * PHP Unit Testing
+ */
+
+use PHPUnit\Framework\TestCase;
+
+use Simplyfier\DI\Container;
+use Simplyfier\DI\Sharer;
+use Simplyfier\Database;
+use Simplyfier\Cache;
+use Simplyfier\Service;
+use Simplyfier\TimeTrackr;
+
+/**
+ * Class AppTest
+ */
+class AppTest extends TestCase
+{
+ /**
+ * @return string
+ */
+ public function testDependencies()
+ {
+ try {
+ echo "\n";
+ echo "Creating a new container...";
+ $app = new Container;
+ self::displayOK();
+
+ echo "Load TimeTrackr config...";
+ TimeTrackr::applyConfig();
+ self::displayOK();
+
+ echo "Connecting to the database...";
+ Database::loadConfig();
+ $app->put('database', Database::getInstance());
+ self::displayOK();
+
+ echo "Instantiate cachemanager... ";
+ Cache::loadConfig();
+ $app->put('cachemanager', Cache::getInstance());
+ self::displayOK();
+
+ echo "Instantiate service manager and load all services...";
+ $app->put('service', Service::loadServices());
+ self::displayOK();
+
+ echo "Sharing the app...";
+ Sharer::share('app', $app);
+ self::displayOK();
+ } catch (\Exception $exception) {
+ self::displayFailed();
+ static::assertTrue(false);
+ return 'first';
+ }
+ static::assertTrue(true);
+ return 'first';
+ }
+
+ public function displayOK()
+ {
+ echo " OK \n";
+ }
+
+ public function displayFailed()
+ {
+ echo " FAILED \n";
+ }
+}
\ No newline at end of file
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
new file mode 100755
index 0000000..3c7cec3
--- /dev/null
+++ b/tests/bootstrap.php
@@ -0,0 +1,19 @@
+
+ * @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);
+
+/**
+ * PHP Unit Testing
+ */
+define('SS_PATH', realpath(dirname(__FILE__)) .'/../');
+require SS_PATH . 'vendor/autoload.php';
\ No newline at end of file
From 56aa5f5bb96d7bc12eb920ce3a8165e9bbbeb1d2 Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Mon, 16 Oct 2017 15:10:01 +0800
Subject: [PATCH 25/34] Change directory of test files
---
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index cdc518c..0034b18 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,4 +2,4 @@ language: php
php:
- 5.6
before_script: composer update
-script: phpunit vendor/stupidlysimple/php-core/tests/AppTest.php --colors=auto
+script: phpunit tests/AppTest.php --colors=auto
From 8a25ed47d6b50333f6703e4315802667850cdbdb Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Mon, 16 Oct 2017 07:11:28 +0000
Subject: [PATCH 26/34] Apply fixes from StyleCI
---
app/Service/Test/TestService.php | 4 +--
resources/views/admin/home.tpl.php | 40 +++++++++++++++---------------
resources/views/home.tpl.php | 6 ++---
tests/AppTest.php | 32 ++++++++++++------------
tests/bootstrap.php | 10 ++++----
5 files changed, 46 insertions(+), 46 deletions(-)
diff --git a/app/Service/Test/TestService.php b/app/Service/Test/TestService.php
index 12f61ba..66b0bf3 100644
--- a/app/Service/Test/TestService.php
+++ b/app/Service/Test/TestService.php
@@ -15,8 +15,7 @@
use Simplyfier\Service\ServiceContainer;
/**
- * Class TestService
- * @package Service\Test
+ * Class TestService.
*/
class TestService extends ServiceContainer
{
@@ -32,6 +31,7 @@ public function hello()
* @param $var1
* @param $operation
* @param $var2
+ *
* @return float|int|string
*/
public function calculate($var1, $operation, $var2)
diff --git a/resources/views/admin/home.tpl.php b/resources/views/admin/home.tpl.php
index 039455c..e18d000 100644
--- a/resources/views/admin/home.tpl.php
+++ b/resources/views/admin/home.tpl.php
@@ -21,17 +21,17 @@
Welcome to the Admin Area
A very fresh start for the MVC framework with some basic CRUD functions
- 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
';
- }
-
+ 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
';
+ }
+
?>
@@ -52,15 +52,15 @@
- test->getRegisteredUsers() as $user) {
- echo '';
- echo '| '.$user->first_name.' | ';
- echo ''.$user->last_name.' | ';
- echo ''.$user->email.' | ';
- echo 'Delete | ';
- echo '
';
- }
+ test->getRegisteredUsers() as $user) {
+ echo '';
+ echo '| '.$user->first_name.' | ';
+ echo ''.$user->last_name.' | ';
+ echo ''.$user->email.' | ';
+ echo 'Delete | ';
+ echo '
';
+ }
?>
diff --git a/resources/views/home.tpl.php b/resources/views/home.tpl.php
index 51b6d52..836c359 100644
--- a/resources/views/home.tpl.php
+++ b/resources/views/home.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Home'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Home'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/tests/AppTest.php b/tests/AppTest.php
index 2fe722a..6d4e968 100755
--- a/tests/AppTest.php
+++ b/tests/AppTest.php
@@ -1,29 +1,27 @@
* @copyright 2017 Fariz Luqman
* @license MIT
+ *
* @link https://stupidlysimple.github.io/
*/
/**
- * PHP Unit Testing
+ * PHP Unit Testing.
*/
-
use PHPUnit\Framework\TestCase;
-
+use Simplyfier\Cache;
+use Simplyfier\Database;
use Simplyfier\DI\Container;
use Simplyfier\DI\Sharer;
-use Simplyfier\Database;
-use Simplyfier\Cache;
use Simplyfier\Service;
use Simplyfier\TimeTrackr;
/**
- * Class AppTest
+ * Class AppTest.
*/
class AppTest extends TestCase
{
@@ -34,37 +32,39 @@ public function testDependencies()
{
try {
echo "\n";
- echo "Creating a new container...";
- $app = new Container;
+ echo 'Creating a new container...';
+ $app = new Container();
self::displayOK();
- echo "Load TimeTrackr config...";
+ echo 'Load TimeTrackr config...';
TimeTrackr::applyConfig();
self::displayOK();
- echo "Connecting to the database...";
+ echo 'Connecting to the database...';
Database::loadConfig();
$app->put('database', Database::getInstance());
self::displayOK();
- echo "Instantiate cachemanager... ";
+ echo 'Instantiate cachemanager... ';
Cache::loadConfig();
$app->put('cachemanager', Cache::getInstance());
self::displayOK();
- echo "Instantiate service manager and load all services...";
+ echo 'Instantiate service manager and load all services...';
$app->put('service', Service::loadServices());
self::displayOK();
- echo "Sharing the app...";
+ echo 'Sharing the app...';
Sharer::share('app', $app);
self::displayOK();
} catch (\Exception $exception) {
self::displayFailed();
static::assertTrue(false);
+
return 'first';
}
static::assertTrue(true);
+
return 'first';
}
@@ -77,4 +77,4 @@ public function displayFailed()
{
echo " FAILED \n";
}
-}
\ No newline at end of file
+}
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 3c7cec3..f4313ec 100755
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -1,19 +1,19 @@
* @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);
-/**
+/*
* PHP Unit Testing
*/
-define('SS_PATH', realpath(dirname(__FILE__)) .'/../');
-require SS_PATH . 'vendor/autoload.php';
\ No newline at end of file
+define('SS_PATH', realpath(dirname(__FILE__)).'/../');
+require SS_PATH.'vendor/autoload.php';
From 8226920aee28d8fc8c0f86df817d6b6b19b4990a Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Mon, 16 Oct 2017 16:09:21 +0800
Subject: [PATCH 27/34] Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 3c18d40..a1c324e 100755
--- a/README.md
+++ b/README.md
@@ -2,9 +2,9 @@
Follow us on [Facebook](https://www.facebook.com/stupidlysimpleframework).
-[](https://badge.fury.io/ph/stupidlysimple%2Fphp) [](https://gitter.im/stupidlysimpleframework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[](https://badge.fury.io/ph/stupidlysimple%2Fphp)
-[](https://travis-ci.org/stupidlysimple/php) [](https://styleci.io/repos/62019007) [](https://scrutinizer-ci.com/g/stupidlysimple/php/) [](https://packagist.org/packages/stupidlysimple/php)
+[](https://badge.fury.io/ph/stupidlysimple%2Fphp) [](https://travis-ci.org/stupidlysimple/php) [](https://styleci.io/repos/62019007) [](https://scrutinizer-ci.com/g/stupidlysimple/php/) [](https://packagist.org/packages/stupidlysimple/php)
[](https://packagist.org/packages/stupidlysimple/php)
[](https://github.com/stupidlysimple/php/blob/master/LICENSE)
[](https://www.google.com/search?q=malaysia)
From 667bd2836b8c71bacc6c2226fd50039a05c6b16d Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Mon, 16 Oct 2017 16:11:08 +0800
Subject: [PATCH 28/34] Add DIscord invite link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a1c324e..98616bc 100755
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
Follow us on [Facebook](https://www.facebook.com/stupidlysimpleframework).
-[](https://badge.fury.io/ph/stupidlysimple%2Fphp)
+[](https://discord.gg/EQ4w9Cs)
[](https://badge.fury.io/ph/stupidlysimple%2Fphp) [](https://travis-ci.org/stupidlysimple/php) [](https://styleci.io/repos/62019007) [](https://scrutinizer-ci.com/g/stupidlysimple/php/) [](https://packagist.org/packages/stupidlysimple/php)
[](https://packagist.org/packages/stupidlysimple/php)
From bc3cc78eed2cc7a3b7fbf447f24330cd34726815 Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Mon, 16 Oct 2017 16:15:47 +0800
Subject: [PATCH 29/34] Add DIscord chat icon and link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 98616bc..3961507 100755
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
Follow us on [Facebook](https://www.facebook.com/stupidlysimpleframework).
-[](https://discord.gg/EQ4w9Cs)
+[](https://discord.gg/EQ4w9Cs)
[](https://badge.fury.io/ph/stupidlysimple%2Fphp) [](https://travis-ci.org/stupidlysimple/php) [](https://styleci.io/repos/62019007) [](https://scrutinizer-ci.com/g/stupidlysimple/php/) [](https://packagist.org/packages/stupidlysimple/php)
[](https://packagist.org/packages/stupidlysimple/php)
From 234bca75514087d31899ed7b4521d9cd90a1be91 Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Tue, 24 Oct 2017 11:00:06 +0800
Subject: [PATCH 30/34] Add support for various templating engine / renderer
---
app/Controller/Auth.php | 21 +-
app/Controller/Hello.php | 2 +-
composer.json | 6 +-
composer.lock | 114 ++++++++++-
config/env.php | 7 +
...ac1fe0b8a125daa60abac0b11e08d66577dea9.php | 190 ++++++++++++++++++
...cce5812a9def724c13610a9a3862f2192b9c00.php | 38 ++++
resources/views/controller.tpl.php | 4 +-
resources/views/directory.tpl.php | 6 +-
resources/views/model.tpl.php | 18 +-
resources/views/routing.tpl.php | 6 +-
resources/views/service.tpl.php | 4 +-
resources/views/twig.tpl.php | 3 +
routes/web.php | 11 +-
14 files changed, 395 insertions(+), 35 deletions(-)
create mode 100644 resources/storage/cache/twig/ba/baf6056aaf7b192ab1a4946d7eac1fe0b8a125daa60abac0b11e08d66577dea9.php
create mode 100644 resources/storage/cache/twig/df/df1006847e329e89367afe4f44cce5812a9def724c13610a9a3862f2192b9c00.php
create mode 100644 resources/views/twig.tpl.php
diff --git a/app/Controller/Auth.php b/app/Controller/Auth.php
index 81abbf3..0b98f39 100755
--- a/app/Controller/Auth.php
+++ b/app/Controller/Auth.php
@@ -11,6 +11,7 @@
namespace Controller;
+use Cartalyst\Sentry\Users;
use Cartalyst\Sentry\Facades\Native\Sentry;
use Simplyfier\Http\Request;
use Simplyfier\Http\Response;
@@ -40,27 +41,27 @@ public static function authenticate()
// 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',
]);
- } catch (\Cartalyst\Sentry\Users\PasswordRequiredException $e) {
+ } catch (Users\PasswordRequiredException $e) {
Response::redirect('login')->with([
'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',
]);
- } catch (\Cartalyst\Sentry\Users\UserNotFoundException $e) {
+ } catch (Users\UserNotFoundException $e) {
Response::redirect('login')->with([
'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',
@@ -89,22 +90,26 @@ public static function register()
'first_name' => Request::get('first_name'),
'last_name' => Request::get('last_name'),
], $activate = true);
- } catch (\Cartalyst\Sentry\Users\LoginRequiredException $e) {
+ } catch (Users\LoginRequiredException $e) {
Response::redirect('register')->with([
'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',
]);
- } 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',
]);
} catch (\Exception $e) {
+ Response::redirect('register')->with([
+ 'login_message'=> 'Login is not successful.',
+ 'type' => 'alert-danger',
+ ]);
} finally {
if ($user) {
Response::redirect('login')->with([
diff --git a/app/Controller/Hello.php b/app/Controller/Hello.php
index 6620e4f..6f1921f 100755
--- a/app/Controller/Hello.php
+++ b/app/Controller/Hello.php
@@ -11,7 +11,7 @@
namespace Controller;
-use Core\Request;
+use Simplyfier\Http\Request;
class Hello
{
diff --git a/composer.json b/composer.json
index 9444347..54a5f4f 100755
--- a/composer.json
+++ b/composer.json
@@ -38,14 +38,16 @@
"simplyfier/viewer": "dev-master",
"simplyfier/database": "dev-master",
"simplyfier/service": "dev-master",
- "zircote/swagger-php": "^2.0"
+ "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",
diff --git a/composer.lock b/composer.lock
index 734b3b5..992af1b 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"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": "e0356f390b6b376732cc50418ef276cc",
+ "content-hash": "3ebdadedb050266f8fe7169fecf42ec1",
"packages": [
{
"name": "cartalyst/sentry",
@@ -560,6 +560,52 @@
"homepage": "http://laravel.com",
"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": "dev-master",
@@ -1506,6 +1552,72 @@
],
"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",
diff --git a/config/env.php b/config/env.php
index 976988d..1198f29 100755
--- a/config/env.php
+++ b/config/env.php
@@ -10,6 +10,13 @@
*/
return
[
+ /**
+ * 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
diff --git a/resources/storage/cache/twig/ba/baf6056aaf7b192ab1a4946d7eac1fe0b8a125daa60abac0b11e08d66577dea9.php b/resources/storage/cache/twig/ba/baf6056aaf7b192ab1a4946d7eac1fe0b8a125daa60abac0b11e08d66577dea9.php
new file mode 100644
index 0000000..433cd5e
--- /dev/null
+++ b/resources/storage/cache/twig/ba/baf6056aaf7b192ab1a4946d7eac1fe0b8a125daa60abac0b11e08d66577dea9.php
@@ -0,0 +1,190 @@
+parent = false;
+
+ $this->blocks = array(
+ );
+ }
+
+ protected function doDisplay(array $context, array $blocks = array())
+ {
+ // line 1
+ echo "
+
+
+ 'StupidlySimple PHP | Home'];
+Viewer::file('layouts/head', \$data);
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+";
+ }
+
+ 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/views/controller.tpl.php b/resources/views/controller.tpl.php
index f02dff0..d893479 100644
--- a/resources/views/controller.tpl.php
+++ b/resources/views/controller.tpl.php
@@ -5,8 +5,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple | Controller'];
+ 'StupidlySimple | Controller'];
Viewer::file('layouts/head', $data); ?>
diff --git a/resources/views/directory.tpl.php b/resources/views/directory.tpl.php
index 326ade2..b0c30b4 100644
--- a/resources/views/directory.tpl.php
+++ b/resources/views/directory.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Directory'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/model.tpl.php b/resources/views/model.tpl.php
index 4ac5604..c83d873 100644
--- a/resources/views/model.tpl.php
+++ b/resources/views/model.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Model'];
+Viewer::file('layouts/head', $data);
?>
@@ -35,17 +35,17 @@
Load all Post
Load the whole post with Model\Post::all()
-
= $first_post->'.$post->title.'
= $first_post->'.$post->content.'
- ';
- }
- echo 'There are: '.Model\Post::all()->count().' posts.';
+ ';
+ }
+ echo 'There are: '.Model\Post::all()->count().' posts.';
?>
diff --git a/resources/views/routing.tpl.php b/resources/views/routing.tpl.php
index 326ade2..581c935 100644
--- a/resources/views/routing.tpl.php
+++ b/resources/views/routing.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Routing'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/service.tpl.php b/resources/views/service.tpl.php
index 2b1d273..3d14bcd 100644
--- a/resources/views/service.tpl.php
+++ b/resources/views/service.tpl.php
@@ -5,8 +5,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
+ 'StupidlySimple PHP | Service'];
Viewer::file('layouts/head', $data); ?>
diff --git a/resources/views/twig.tpl.php b/resources/views/twig.tpl.php
new file mode 100644
index 0000000..8bf225b
--- /dev/null
+++ b/resources/views/twig.tpl.php
@@ -0,0 +1,3 @@
+
+This is twig!!!
+
\ No newline at end of file
diff --git a/routes/web.php b/routes/web.php
index 1b5ad0a..0ca7874 100755
--- a/routes/web.php
+++ b/routes/web.php
@@ -2,13 +2,16 @@
/**
* StupidlySimple - A PHP Framework For Lazy Developers.
*
- * @author Fariz Luqman
- * @copyright 2017 Fariz Luqman
- * @license MIT
+ * @author Fariz Luqman
+ * @copyright 2017 Fariz Luqman
+ * @license MIT
*
- * @link https://stupidlysimple.github.io/
+ * @link https://stupidlysimple.github.io/
*/
+use Simplyfier\Http\Router;
+use Simplyfier\Viewer;
+
/*
|--------------------------------------------------------------------------
| The Basic Routes - Route GET / into /home.php
From 49b980d154693a3e9f315fffd90913cc9a814239 Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Wed, 25 Oct 2017 20:16:28 +0800
Subject: [PATCH 31/34] Added platform configuration on composer.json
---
composer.json | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/composer.json b/composer.json
index 54a5f4f..71d9d5a 100755
--- a/composer.json
+++ b/composer.json
@@ -18,7 +18,10 @@
}
],
"config": {
- "vendor-dir": "vendor"
+ "vendor-dir": "vendor",
+ "platform": {
+ "php": "5.6.19"
+ }
},
"minimum-stability": "dev",
"require": {
From 334ce89525d3333c68b25b517e3f27a84d64932c Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Wed, 25 Oct 2017 20:18:33 +0800
Subject: [PATCH 32/34] Change version 5.6.19 to 5.6
---
composer.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/composer.json b/composer.json
index 71d9d5a..0a1a514 100755
--- a/composer.json
+++ b/composer.json
@@ -20,7 +20,7 @@
"config": {
"vendor-dir": "vendor",
"platform": {
- "php": "5.6.19"
+ "php": "5.6"
}
},
"minimum-stability": "dev",
From 12b27b32d04b0481f9721d6f40fb2e7177ce9560 Mon Sep 17 00:00:00 2001
From: farizluqman
Date: Wed, 25 Oct 2017 20:21:10 +0800
Subject: [PATCH 33/34] Add --ignore-platform-reqs in travis.yml
---
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 0034b18..18d60fb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,5 @@
language: php
php:
- 5.6
-before_script: composer update
+before_script: composer update --ignore-platform-reqs
script: phpunit tests/AppTest.php --colors=auto
From 74454ad47a90b1d494c29983301bbd30ca0cac31 Mon Sep 17 00:00:00 2001
From: Fariz Luqman
Date: Wed, 25 Oct 2017 12:23:43 +0000
Subject: [PATCH 34/34] Apply fixes from StyleCI
---
app/Controller/Auth.php | 2 +-
config/env.php | 2 +-
resources/views/controller.tpl.php | 4 ++--
resources/views/directory.tpl.php | 6 +++---
resources/views/model.tpl.php | 18 +++++++++---------
resources/views/routing.tpl.php | 6 +++---
resources/views/service.tpl.php | 4 ++--
routes/web.php | 1 -
8 files changed, 21 insertions(+), 22 deletions(-)
diff --git a/app/Controller/Auth.php b/app/Controller/Auth.php
index 0b98f39..6586207 100755
--- a/app/Controller/Auth.php
+++ b/app/Controller/Auth.php
@@ -11,8 +11,8 @@
namespace Controller;
-use Cartalyst\Sentry\Users;
use Cartalyst\Sentry\Facades\Native\Sentry;
+use Cartalyst\Sentry\Users;
use Simplyfier\Http\Request;
use Simplyfier\Http\Response;
diff --git a/config/env.php b/config/env.php
index 1198f29..f9ded1d 100755
--- a/config/env.php
+++ b/config/env.php
@@ -10,7 +10,7 @@
*/
return
[
- /**
+ /*
* Set the running environment
* development - The system is running development mode
* production - The system is running in production mode
diff --git a/resources/views/controller.tpl.php b/resources/views/controller.tpl.php
index d893479..f02dff0 100644
--- a/resources/views/controller.tpl.php
+++ b/resources/views/controller.tpl.php
@@ -5,8 +5,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple | Controller'];
+ 'StupidlySimple | Controller'];
Viewer::file('layouts/head', $data); ?>
diff --git a/resources/views/directory.tpl.php b/resources/views/directory.tpl.php
index b0c30b4..1fc3d5f 100644
--- a/resources/views/directory.tpl.php
+++ b/resources/views/directory.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Directory'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Directory'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/model.tpl.php b/resources/views/model.tpl.php
index c83d873..6d2ef1b 100644
--- a/resources/views/model.tpl.php
+++ b/resources/views/model.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Model'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Model'];
+Viewer::file('layouts/head', $data);
?>
@@ -35,17 +35,17 @@
Load all Post
Load the whole post with Model\Post::all()
-
= $first_post->'.$post->title.'
= $first_post->'.$post->content.'
- ';
- }
- echo 'There are: '.Model\Post::all()->count().' posts.';
+ ';
+ }
+ echo 'There are: '.Model\Post::all()->count().' posts.';
?>
diff --git a/resources/views/routing.tpl.php b/resources/views/routing.tpl.php
index 581c935..a3471e2 100644
--- a/resources/views/routing.tpl.php
+++ b/resources/views/routing.tpl.php
@@ -5,9 +5,9 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Routing'];
-Viewer::file('layouts/head', $data);
+ 'StupidlySimple PHP | Routing'];
+Viewer::file('layouts/head', $data);
?>
diff --git a/resources/views/service.tpl.php b/resources/views/service.tpl.php
index 3d14bcd..2b1d273 100644
--- a/resources/views/service.tpl.php
+++ b/resources/views/service.tpl.php
@@ -5,8 +5,8 @@
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
- 'StupidlySimple PHP | Service'];
+ 'StupidlySimple PHP | Service'];
Viewer::file('layouts/head', $data); ?>
diff --git a/routes/web.php b/routes/web.php
index 0ca7874..d38b542 100755
--- a/routes/web.php
+++ b/routes/web.php
@@ -8,7 +8,6 @@
*
* @link https://stupidlysimple.github.io/
*/
-
use Simplyfier\Http\Router;
use Simplyfier\Viewer;