File tree Expand file tree Collapse file tree 5 files changed +54
-9
lines changed Expand file tree Collapse file tree 5 files changed +54
-9
lines changed Original file line number Diff line number Diff line change 55/.vscode
66/.github
77.env
8+ .env.example
89composer.lock
Original file line number Diff line number Diff line change 55 "type" : " library" ,
66 "license" : " MIT" ,
77 "authors" : [
8- {
9- "name" : " Fredrick Peterson" ,
10- "email" : " fredi.peterson2000@gmail.com"
11- },
128 {
139 "name" : " Tame Developers" ,
1410 "email" : " tamedevelopers@gmail.com"
3026 " src/helpers.php"
3127 ]
3228 },
33- "minimum-stability" : " stable"
29+ "minimum-stability" : " stable" ,
30+ "config" : {
31+ "allow-plugins" : {
32+ "tamedevelopers/support" : true
33+ }
34+ }
3435}
Original file line number Diff line number Diff line change 2525 *
2626 * @package tamedevelopers\file
2727 * @author Tame Developers <tamedevelopers@gmail.com>
28- * @author Fredrick Peterson <fredi.peterson2000@gmail.com>
2928 * @copyright 2021-2023 Tame Developers
3029 * @license http://www.opensource.org/licenses/MIT The MIT License
3130 * @link https://github.com/tamedevelopers/file
Original file line number Diff line number Diff line change @@ -174,10 +174,13 @@ protected function createTimeBaseFolder($uploadDirectory = null)
174174 // if directory is empty
175175 $ uploadDirectory = empty ($ uploadDirectory ) ? "" : "{$ uploadDirectory }/ " ;
176176
177+ $ stamp = new Time ($ now );
178+
179+ // Getting current year month day
177180 $ time = [
178- "year " => Time:: timestamp ( $ now , 'Y ' ),
179- "month " => Time:: timestamp ( $ now , 'n ' ),
180- "day " => Time:: timestamp ( $ now , 'j ' ),
181+ "year " => $ stamp -> format ( 'Y ' ),
182+ "month " => $ stamp -> format ( 'n ' ),
183+ "day " => $ stamp -> format ( 'j ' ),
181184 "now " => $ now
182185 ];
183186
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ // Unix timestamp with microseconds
5+ define ('TAME_START ' , microtime (true ));
6+
7+ /*
8+ |--------------------------------------------------------------------------
9+ | Ensure <composer autoload> is registered
10+ |--------------------------------------------------------------------------
11+ |
12+ | This file makes sure that composer's autoloader is loaded before any otherthing
13+ | in this application. It also ensures that all of our dependencies are installed
14+ | and ready to use by the developer.
15+ |
16+ */
17+
18+ include_once __DIR__ . "/vendor/autoload.php " ;
19+
20+ /*
21+ |--------------------------------------------------------------------------
22+ | Run The Application CLI <dispatcher>
23+ |--------------------------------------------------------------------------
24+ |
25+ | This file is where your <CLI commands> will be dispatched from
26+ | using the command line, the response sent back to a terminal
27+ | or another output device for the developers.
28+ |
29+ */
30+
31+ $ artisan = new Tamedevelopers \Support \Capsule \Artisan ();
32+
33+ /**
34+ * Register the default Support Command Name
35+ */
36+ $ artisan ->register (
37+ 'make ' , new Tamedevelopers \Support \Commands \MakeCommand , 'Make Artisans '
38+ );
39+
40+
41+ exit ($ artisan ->run ($ argv ));
You can’t perform that action at this time.
0 commit comments