Skip to content
Permalink
Browse files

Track

  • Loading branch information
rodolfoberrios committed Sep 7, 2019
1 parent 032214f commit 1b29b0b9c762d5700eb2bda97812cd5e0831a416
Showing with 14,832 additions and 0 deletions.
  1. +2 −0 .gitattributes
  2. +13 −0 .gitignore
  3. +23 −0 .htaccess
  4. +108 −0 .php-cs
  5. +9 −0 Chevereto-Chevere/LICENSE
  6. +74 −0 Chevereto-Chevere/bootstrap.php
  7. +30 −0 Chevereto-Chevere/composer.json
  8. +11 −0 Chevereto-Chevere/phpunit.php
  9. +8 −0 Chevereto-Chevere/phpunit.xml
  10. +29 −0 Chevereto-Chevere/resources/functions/dump.php
  11. +85 −0 Chevereto-Chevere/src/Api/Api.php
  12. +88 −0 Chevereto-Chevere/src/Api/Endpoint.php
  13. +231 −0 Chevereto-Chevere/src/Api/Maker.php
  14. +58 −0 Chevereto-Chevere/src/Api/src/FilterIterator.php
  15. +164 −0 Chevereto-Chevere/src/App/App.php
  16. +35 −0 Chevereto-Chevere/src/App/Checkout.php
  17. +304 −0 Chevereto-Chevere/src/App/Loader.php
  18. +123 −0 Chevereto-Chevere/src/App/Parameters.php
  19. +145 −0 Chevereto-Chevere/src/ArrayFile/ArrayFile.php
  20. +48 −0 Chevereto-Chevere/src/ArrayFile/ArrayFileCallback.php
  21. +126 −0 Chevereto-Chevere/src/Cache/Cache.php
  22. +287 −0 Chevereto-Chevere/src/CallableWrap.php
  23. +124 −0 Chevereto-Chevere/src/Console/Cli.php
  24. +92 −0 Chevereto-Chevere/src/Console/Command.php
  25. +44 −0 Chevereto-Chevere/src/Console/Commands/BuildCommand.php
  26. +152 −0 Chevereto-Chevere/src/Console/Commands/InspectCommand.php
  27. +187 −0 Chevereto-Chevere/src/Console/Commands/RequestCommand.php
  28. +193 −0 Chevereto-Chevere/src/Console/Commands/RunCommand.php
  29. +135 −0 Chevereto-Chevere/src/Console/Console.php
  30. +50 −0 Chevereto-Chevere/src/Console/SymfonyCommand.php
  31. +21 −0 Chevereto-Chevere/src/Contracts/Api/ApiContract.php
  32. +30 −0 Chevereto-Chevere/src/Contracts/Api/MakerContract.php
  33. +27 −0 Chevereto-Chevere/src/Contracts/Api/src/EndpointContract.php
  34. +35 −0 Chevereto-Chevere/src/Contracts/Api/src/FilterIteratorContract.php
  35. +50 −0 Chevereto-Chevere/src/Contracts/App/AppContract.php
  36. +19 −0 Chevereto-Chevere/src/Contracts/App/CheckoutContract.php
  37. +59 −0 Chevereto-Chevere/src/Contracts/App/LoaderContract.php
  38. +21 −0 Chevereto-Chevere/src/Contracts/App/ParametersContract.php
  39. +46 −0 Chevereto-Chevere/src/Contracts/Console/CliContract.php
  40. +27 −0 Chevereto-Chevere/src/Contracts/Console/CommandContract.php
  41. +50 −0 Chevereto-Chevere/src/Contracts/Console/ConsoleContract.php
  42. +312 −0 Chevereto-Chevere/src/Contracts/Console/SymfonyCommandContract.php
  43. +21 −0 Chevereto-Chevere/src/Contracts/Controller/ArgumentsWrapContract.php
  44. +30 −0 Chevereto-Chevere/src/Contracts/Controller/ControllerContract.php
  45. +24 −0 Chevereto-Chevere/src/Contracts/Controller/InspectContract.php
  46. +45 −0 Chevereto-Chevere/src/Contracts/DataContract.php
  47. +23 −0 Chevereto-Chevere/src/Contracts/Http/MethodContract.php
  48. +28 −0 Chevereto-Chevere/src/Contracts/Http/MethodsContract.php
  49. +41 −0 Chevereto-Chevere/src/Contracts/Http/ResponseContract.php
  50. +731 −0 Chevereto-Chevere/src/Contracts/Http/Symfony/RequestContract.php
  51. +566 −0 Chevereto-Chevere/src/Contracts/Http/Symfony/ResponseContract.php
  52. +19 −0 Chevereto-Chevere/src/Contracts/Render/RenderContract.php
  53. +23 −0 Chevereto-Chevere/src/Contracts/Route/PathValidateContract.php
  54. +96 −0 Chevereto-Chevere/src/Contracts/Route/RouteContract.php
  55. +27 −0 Chevereto-Chevere/src/Contracts/Route/WildcardsContract.php
  56. +23 −0 Chevereto-Chevere/src/Contracts/Router/ResolverContract.php
  57. +31 −0 Chevereto-Chevere/src/Contracts/Router/RouterContract.php
  58. +25 −0 Chevereto-Chevere/src/Contracts/Runtime/RuntimeSetContract.php
  59. +22 −0 Chevereto-Chevere/src/Contracts/ToArrayContract.php
  60. +92 −0 Chevereto-Chevere/src/Controller/ArgumentsWrap.php
  61. +105 −0 Chevereto-Chevere/src/Controller/Controller.php
  62. +272 −0 Chevereto-Chevere/src/Controller/Inspect.php
  63. +31 −0 Chevereto-Chevere/src/Controller/Relationship.php
  64. +31 −0 Chevereto-Chevere/src/Controller/Resource.php
  65. +90 −0 Chevereto-Chevere/src/Controllers/Api/GetController.php
  66. +72 −0 Chevereto-Chevere/src/Controllers/Api/HeadController.php
  67. +78 −0 Chevereto-Chevere/src/Controllers/Api/OptionsController.php
  68. +41 −0 Chevereto-Chevere/src/Controllers/HeadController.php
  69. +106 −0 Chevereto-Chevere/src/Data/Data.php
  70. +28 −0 Chevereto-Chevere/src/Data/Traits/DataAccessTrait.php
  71. +28 −0 Chevereto-Chevere/src/Data/Traits/DataKeyTrait.php
  72. +27 −0 Chevereto-Chevere/src/ExceptionHandler/ErrorHandler.php
  73. +223 −0 Chevereto-Chevere/src/ExceptionHandler/ExceptionHandler.php
  74. +318 −0 Chevereto-Chevere/src/ExceptionHandler/src/Formatter.php
  75. +191 −0 Chevereto-Chevere/src/ExceptionHandler/src/Output.php
  76. +73 −0 Chevereto-Chevere/src/ExceptionHandler/src/Stack.php
  77. +28 −0 Chevereto-Chevere/src/ExceptionHandler/src/Style.php
  78. +61 −0 Chevereto-Chevere/src/ExceptionHandler/src/Template.php
  79. +135 −0 Chevereto-Chevere/src/ExceptionHandler/src/TemplatedStrings.php
  80. +187 −0 Chevereto-Chevere/src/ExceptionHandler/src/TraceEntry.php
  81. +75 −0 Chevereto-Chevere/src/ExceptionHandler/src/Wrap.php
  82. +59 −0 Chevereto-Chevere/src/File.php
  83. +235 −0 Chevereto-Chevere/src/FileReturn/FileReturn.php
  84. +23 −0 Chevereto-Chevere/src/FromString.php
  85. +74 −0 Chevereto-Chevere/src/Handler.php
  86. +305 −0 Chevereto-Chevere/src/Hooking/Hook.php
  87. +129 −0 Chevereto-Chevere/src/Hooking/Hookable.php
  88. +71 −0 Chevereto-Chevere/src/Http/Http.php
  89. +75 −0 Chevereto-Chevere/src/Http/Method.php
  90. +55 −0 Chevereto-Chevere/src/Http/Methods.php
  91. +20 −0 Chevereto-Chevere/src/Http/Request.php
  92. +39 −0 Chevereto-Chevere/src/Http/Request/RequestException.php
  93. +105 −0 Chevereto-Chevere/src/Http/Response.php
  94. +22 −0 Chevereto-Chevere/src/Interfaces/ControllerRelationshipInterface.php
  95. +22 −0 Chevereto-Chevere/src/Interfaces/ControllerResourceInterface.php
  96. +22 −0 Chevereto-Chevere/src/Interfaces/CreateFromString.php
  97. +21 −0 Chevereto-Chevere/src/Interfaces/HandlerInterface.php
  98. +19 −0 Chevereto-Chevere/src/Interfaces/MiddlewareInterface.php
  99. +23 −0 Chevereto-Chevere/src/Interfaces/PrintableInterface.php
  100. +19 −0 Chevereto-Chevere/src/Interfaces/RenderableInterface.php
  101. +100 −0 Chevereto-Chevere/src/Json.php
  102. +59 −0 Chevereto-Chevere/src/JsonApi/Data.php
  103. +118 −0 Chevereto-Chevere/src/JsonApi/JsonApi.php
  104. 0 Chevereto-Chevere/src/JsonApi/Objects/Error.php
  105. 0 Chevereto-Chevere/src/JsonApi/Objects/JsonApi.php
  106. 0 Chevereto-Chevere/src/JsonApi/Objects/Links.php
  107. 0 Chevereto-Chevere/src/JsonApi/Objects/Meta.php
  108. 0 Chevereto-Chevere/src/JsonApi/Objects/Resource.php
  109. +236 −0 Chevereto-Chevere/src/Log.php
  110. +96 −0 Chevereto-Chevere/src/Message.php
  111. +194 −0 Chevereto-Chevere/src/Path/Path.php
  112. +177 −0 Chevereto-Chevere/src/Path/PathHandle.php
  113. +93 −0 Chevereto-Chevere/src/Route/PathValidate.php
  114. +281 −0 Chevereto-Chevere/src/Route/Route.php
  115. +159 −0 Chevereto-Chevere/src/Route/Set.php
  116. +96 −0 Chevereto-Chevere/src/Route/Wildcard.php
  117. +19 −0 Chevereto-Chevere/src/Router/Exception/RouteNotFoundException.php
  118. +194 −0 Chevereto-Chevere/src/Router/Maker.php
  119. +45 −0 Chevereto-Chevere/src/Router/Resolver.php
  120. +103 −0 Chevereto-Chevere/src/Router/Router.php
  121. +41 −0 Chevereto-Chevere/src/Runtime/Runtime.php
  122. +38 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetDebug.php
  123. +36 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetDefaultCharset.php
  124. +46 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetErrorHandler.php
  125. +46 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetExceptionHandler.php
  126. +36 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetLocale.php
  127. +36 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetPrecision.php
  128. +48 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetTimeZone.php
  129. +37 −0 Chevereto-Chevere/src/Runtime/Sets/RuntimeSetUriScheme.php
  130. +46 −0 Chevereto-Chevere/src/Runtime/Traits/RuntimeSet.php
  131. +102 −0 Chevereto-Chevere/src/Stopwatch.php
  132. +81 −0 Chevereto-Chevere/src/Traits/CallableTrait.php
  133. +129 −0 Chevereto-Chevere/src/Traits/HookableTrait.php
  134. +56 −0 Chevereto-Chevere/src/Traits/PrintableTrait.php
  135. +144 −0 Chevereto-Chevere/src/Type.php
  136. +127 −0 Chevereto-Chevere/src/Utility/Arr.php
  137. +300 −0 Chevereto-Chevere/src/Utility/Benchmark.php
  138. +102 −0 Chevereto-Chevere/src/Utility/Bytes.php
  139. +90 −0 Chevereto-Chevere/src/Utility/Color.php
  140. +143 −0 Chevereto-Chevere/src/Utility/DateTime.php
  141. +64 −0 Chevereto-Chevere/src/Utility/Number.php
  142. +66 −0 Chevereto-Chevere/src/Utility/Random.php
  143. +385 −0 Chevereto-Chevere/src/Utility/Str.php
  144. +57 −0 Chevereto-Chevere/src/Validate.php
  145. +30 −0 Chevereto-Chevere/src/VarDump/ConsoleVarDump.php
  146. +228 −0 Chevereto-Chevere/src/VarDump/Dumper.php
  147. +45 −0 Chevereto-Chevere/src/VarDump/HtmlVarDump.php
  148. +25 −0 Chevereto-Chevere/src/VarDump/PlainVarDump.php
  149. +53 −0 Chevereto-Chevere/src/VarDump/VarDump.php
  150. +271 −0 Chevereto-Chevere/src/VarDump/VarDumpAbstract.php
  151. +53 −0 Chevereto-Chevere/src/VarDump/src/Pallete.php
  152. +23 −0 Chevereto-Chevere/src/VarDump/src/Template.php
  153. +95 −0 Chevereto-Chevere/src/VarDump/src/Wrapper.php
  154. +50 −0 Chevereto-Chevere/tests/Api/MakerTest.php
  155. +13 −0 Chevereto-Chevere/utils/phpcheck.php
  156. +21 −0 LICENSE
  157. +54 −0 README.md
  158. +7 −0 app/app.php
  159. +5 −0 app/bootstrap.php
  160. +12 −0 app/config.php
  161. +7 −0 app/console
  162. +5 −0 app/hacks.php
  163. +16 −0 app/loader.php
  164. +22 −0 app/parameters.php
  165. +10 −0 app/routes/dashboard.php
  166. +20 −0 app/routes/web.php
  167. 0 app/settings.php
  168. +23 −0 app/src/Api/Users/DELETE.php
  169. +13 −0 app/src/Api/Users/Friends/Relationship.php
  170. +10 −0 app/src/Api/Users/Friends/_GET.php
  171. +16 −0 app/src/Api/Users/GET.php
  172. +16 −0 app/src/Api/Users/PATCH.php
  173. +18 −0 app/src/Api/Users/Resource.php
  174. +12 −0 app/src/Api/Users/_GET.php
  175. +20 −0 app/src/Api/Users/_POST.php
  176. +13 −0 app/src/Controller.php
  177. +29 −0 app/src/Controllers/Cache.php
  178. +14 −0 app/src/Controllers/Dashboard.php
  179. +32 −0 app/src/Controllers/Home.php
  180. +34 −0 app/src/Controllers/Index.php
  181. +23 −0 app/src/Controllers/PostComments.php
  182. +32 −0 app/src/Middlewares/RoleAdmin.php
  183. +31 −0 app/src/Middlewares/RoleBanned.php
  184. +66 −0 app/src/User.php
  185. 0 app/translations/traducciones po.txt
  186. +31 −0 composer.json
  187. 0 content/APP GENERATED CONTENT.txt
  188. 0 content/images/system/fondos, covers, etc.txt
  189. 0 content/images/users/Contenido de usuario bajo FOLDER ID.txt
  190. 0 extend/user/USER CUSTOMIZATION.txt
  191. +15 −0 index.php
  192. +13 −0 phpstan.neon
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
@@ -0,0 +1,13 @@
_trash/
_reports/
vendor/
docs/
app/var/
app/cache/
Chevereto-Chevere/logs/
var/
composer.lock
.vscode/
.phpunit.result.cache
app/build
/devnotes/
@@ -0,0 +1,23 @@
# Disable server signature
ServerSignature Off

# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
Options -Indexes
Options -MultiViews
Options +FollowSymLinks

<IfModule mod_rewrite.c>

RewriteEngine On

# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
# If you are using alias is most likely that you will need this.
RewriteBase /Core

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpe?g|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
RewriteRule . index.php [L]

</IfModule>
108 .php-cs
@@ -0,0 +1,108 @@
<?php

$header = <<<'EOF'
This file is part of Chevere.

(c) Rodolfo Berrios <rodolfo@chevereto.com>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;

return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'@Symfony' => true,
'yoda_style' => true,
'array_indentation' => true,
'array_syntax' => array('syntax' => 'short'),
'combine_consecutive_unsets' => true,
'method_separation' => true,
'no_multiline_whitespace_before_semicolons' => true,
'single_quote' => true,

'binary_operator_spaces' => array(
'align_double_arrow' => false,
'align_equals' => false,
),
// 'blank_line_after_opening_tag' => true,
// 'blank_line_before_return' => true,
'braces' => array(
'allow_single_line_closure' => true,
),
// 'cast_spaces' => true,
// 'class_definition' => array('singleLine' => true),
'concat_space' => array('spacing' => 'one'),
'declare_equal_normalize' => true,
'function_typehint_space' => true,
'hash_to_slash_comment' => true,
'include' => true,
'lowercase_cast' => true,
// 'native_function_casing' => true,
// 'new_with_braces' => true,
// 'no_blank_lines_after_class_opening' => true,
// 'no_blank_lines_after_phpdoc' => true,
// 'no_empty_comment' => true,
// 'no_empty_phpdoc' => true,
// 'no_empty_statement' => true,
'no_extra_consecutive_blank_lines' => array(
'curly_brace_block',
'extra',
'parenthesis_brace_block',
'square_brace_block',
'throw',
'use',
),
// 'no_leading_import_slash' => true,
// 'no_leading_namespace_whitespace' => true,
// 'no_mixed_echo_print' => array('use' => 'echo'),
'no_multiline_whitespace_around_double_arrow' => true,
// 'no_short_bool_cast' => true,
// 'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
// 'no_trailing_comma_in_list_call' => true,
// 'no_trailing_comma_in_singleline_array' => true,
// 'no_unneeded_control_parentheses' => true,
// 'no_unused_imports' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
// 'normalize_index_brace' => true,
'object_operator_without_whitespace' => true,
// 'php_unit_fqcn_annotation' => true,
// 'phpdoc_align' => true,
// 'phpdoc_annotation_without_dot' => true,
// 'phpdoc_indent' => true,
// 'phpdoc_inline_tag' => true,
// 'phpdoc_no_access' => true,
// 'phpdoc_no_alias_tag' => true,
// 'phpdoc_no_empty_return' => true,
// 'phpdoc_no_package' => true,
// 'phpdoc_no_useless_inheritdoc' => true,
// 'phpdoc_return_self_reference' => true,
// 'phpdoc_scalar' => true,
// 'phpdoc_separation' => true,
// 'phpdoc_single_line_var_spacing' => true,
// 'phpdoc_summary' => true,
// 'phpdoc_to_comment' => true,
// 'phpdoc_trim' => true,
// 'phpdoc_types' => true,
// 'phpdoc_var_without_name' => true,
// 'pre_increment' => true,
// 'return_type_declaration' => true,
// 'self_accessor' => true,
// 'short_scalar_cast' => true,
'single_blank_line_before_namespace' => true,
// 'single_class_element_per_statement' => true,
// 'space_after_semicolon' => true,
// 'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
// 'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'header_comment' => ['header' => $header],
'declare_strict_types' => true,
))
//->setIndent("\t")
->setLineEnding("\n")
;
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) Rodolfo Berrios

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,74 @@
<?php

declare(strict_types=1);

/*
* This file is part of Chevere.
*
* (c) Rodolfo Berrios <rodolfo@chevereto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Chevere;

use Chevere\App\App;
use Chevere\App\Loader;
use Chevere\Console\Console;
use Chevere\Runtime\Runtime;
use Chevere\Runtime\Sets\RuntimeSetDebug;
use Chevere\Runtime\Sets\RuntimeSetDefaultCharset;
use Chevere\Runtime\Sets\RuntimeSetPrecision;
use Chevere\Runtime\Sets\RuntimeSetTimeZone;
use Chevere\Runtime\Sets\RuntimeSetUriScheme;
use Chevere\Runtime\Sets\RuntimeSetLocale;
use Chevere\Runtime\Sets\RuntimeSetErrorHandler;
use Chevere\Runtime\Sets\RuntimeSetExceptionHandler;

/** DEV_MODE true rebuild the App on every load */
define('Chevere\DEV_MODE', false);

/*
* Assuming that this file has been loaded from /app/bootstrap.php
*/

define('Chevere\BOOTSTRAPPER', debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']);

/* Root path containing /app */
define('Chevere\ROOT_PATH', rtrim(str_replace('\\', '/', dirname(BOOTSTRAPPER, 2)), '/') . '/');

/*
* Chevere\PATH
* Relative path to Core, usually 'vendor/chevereto/chevereto-core'
*/
define('Chevere\PATH', rtrim(str_replace(ROOT_PATH, null, str_replace('\\', '/', __DIR__)), '/') . '/');

/* Relative path to app, usually 'app' */
define('Chevere\APP_PATH_RELATIVE', basename(dirname(BOOTSTRAPPER)) . '/');
define('Chevere\APP_PATH', ROOT_PATH . APP_PATH_RELATIVE);

if ('cli' == php_sapi_name()) {
Console::init(); //10ms
}

define('Chevere\CLI', Console::isAvailable());

// $sw = new Stopwatch();
Loader::setDefaultRuntime(
new Runtime(
new RuntimeSetDebug('1'), // 0.2ms
new RuntimeSetErrorHandler('Chevere\ExceptionHandler\ErrorHandler::error'), // 0.9ms
new RuntimeSetExceptionHandler('Chevere\ExceptionHandler\ExceptionHandler::exception'), // 0.5ms
new RuntimeSetLocale('en_US.UTF8'), // 0.2ms
new RuntimeSetDefaultCharset('utf-8'), // 0.2ms
new RuntimeSetPrecision('16'), // 0.2ms
new RuntimeSetUriScheme('https'), // 0.2ms
new RuntimeSetTimeZone('UTC') // 1.85
)
); // 0.6ms wrapper

// $sw->stop();
// dd($sw->records(), 'BOOTSTRAP');

// ->addFile(App::FILEHANDLE_CONFIG)
@@ -0,0 +1,30 @@
{
"name": "chevereto/chevere",
"description": "Chevereto Framework",
"homepage": "http://github.com/chevereto/chevere",
"type": "library",
"license": "MIT",
"authors": [{
"name": "Rodolfo Berrios",
"email": "inbox@rodolfoberrios.com",
"homepage": "http://rodolfoberrios.com"
}],
"require": {
"php": ">=7.2",
"psr/simple-cache": "~1.0",
"monolog/monolog": "~1.24",
"symfony/http-foundation": "~4.2",
"symfony/console": "~4.2",
"jakub-onderka/php-console-color": "~0.2",
"roave/better-reflection": "~3.2"
},
"require-dev": {
"phpunit/phpunit": "^8"
},
"autoload": {
"files": ["utils/phpcheck.php", "resources/functions/dump.php"],
"psr-4": {
"Chevere\\": "src/"
}
}
}
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

namespace Chevere;

require dirname(__DIR__, 1).'/vendor/autoload.php';
define('Chevere\ROOT_PATH', dirname(__DIR__, 1).'/');
define('Chevere\PATH', __DIR__.'/');
define('Chevere\App\PATH', 'app/');
define('Chevere\CLI', true);
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./phpunit.php">
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>
@@ -0,0 +1,29 @@
<?php

declare(strict_types=1);

/*
* This file is part of Chevere.
*
* (c) Rodolfo Berrios <rodolfo@chevereto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Chevere\VarDump\Dumper;

/**
* Dumps information about one or more variables.
*/
function dump(...$vars)
{
Dumper::dump(...$vars);
}
/**
* Dumps information about one or more variables and die().
*/
function dd(...$vars)
{
Dumper::dd(...$vars);
}

0 comments on commit 1b29b0b

Please sign in to comment.
You can’t perform that action at this time.