diff --git a/app/Commands/AddRecord.php b/app/Commands/AddRecord.php index 608da33..793e1b8 100644 --- a/app/Commands/AddRecord.php +++ b/app/Commands/AddRecord.php @@ -3,8 +3,6 @@ namespace App\Commands; use App\Helpers\DigitalOceanHelper; -use App\Helpers\SettingsHelper; -use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\DB; use LaravelZero\Framework\Commands\Command; @@ -24,28 +22,14 @@ class AddRecord extends Command */ protected $description = 'Set which records to update.'; - protected $settings; - protected $token; - - private $digitalocean; - /** * Execute the console command. * * @return mixed */ - public function handle() + public function handle(DigitalOceanHelper $digitalocean) { - $this->settings = new SettingsHelper(); - - if ($this->settings->error !== null) { - $this->error($this->settings->error); - return; - } - - $this->digitalocean = new DigitalOceanHelper($this->settings->getToken()); - - $domains = $this->digitalocean->getDomains(); + $domains = $digitalocean->getDomains(); $selected_domain = $this->menu("Which domain?", $domains)->open(); @@ -54,7 +38,7 @@ public function handle() return; } - $records = $this->digitalocean->getDomainRecords($selected_domain); + $records = $digitalocean->getDomainRecords($selected_domain); $records_for_menu = $records->mapWithKeys(function ($values, $key) { return [$key => "{$values->name} ({$values->type}): {$values->data}"]; diff --git a/app/Commands/ListRecords.php b/app/Commands/ListRecords.php index 4c9cf9b..80d7212 100644 --- a/app/Commands/ListRecords.php +++ b/app/Commands/ListRecords.php @@ -3,7 +3,6 @@ namespace App\Commands; use Carbon\Carbon; -use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\DB; use LaravelZero\Framework\Commands\Command; diff --git a/app/Commands/RemoveRecord.php b/app/Commands/RemoveRecord.php index 1f9d901..0e518a6 100644 --- a/app/Commands/RemoveRecord.php +++ b/app/Commands/RemoveRecord.php @@ -2,7 +2,6 @@ namespace App\Commands; -use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\DB; use LaravelZero\Framework\Commands\Command; diff --git a/app/Commands/Setup.php b/app/Commands/Setup.php index 8f65131..f8c8d80 100644 --- a/app/Commands/Setup.php +++ b/app/Commands/Setup.php @@ -3,11 +3,9 @@ namespace App\Commands; use App\Helpers\SettingsHelper; -use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use LaravelZero\Framework\Commands\Command; -use Storage; class Setup extends Command { @@ -25,27 +23,23 @@ class Setup extends Command */ protected $description = 'Well... It sets things up.'; - private $settings; - /** * Execute the console command. * * @return mixed */ - public function handle() + public function handle(SettingsHelper $settings) { if ($this->confirm("This will destroy any existing doddns configuration. Is that ok?")) { $this->createDatabase(); } - $this->settings = new SettingsHelper(); - $token = $this->ask("What is your Digital Ocean peronal access token?"); - if ($this->settings->error !== null) { - $this->insertToken($token); - } else { + if ($settings->hasToken()) { $this->updateToken($token); + } else { + $this->insertToken($token); } $this->info("All done! We're good to go!"); diff --git a/app/Commands/UpdateRecords.php b/app/Commands/UpdateRecords.php index 98b6217..0c01caf 100644 --- a/app/Commands/UpdateRecords.php +++ b/app/Commands/UpdateRecords.php @@ -3,7 +3,6 @@ namespace App\Commands; use App\Helpers\DigitalOceanHelper; -use App\Helpers\SettingsHelper; use Carbon\Carbon; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\DB; @@ -26,32 +25,18 @@ class UpdateRecords extends Command */ protected $description = 'Update saved records to current IP address.'; - protected $settings; - - private $digitalocean; - /** * Execute the console command. * * @return mixed */ - public function handle() + public function handle(DigitalOceanHelper $digitalocean) { - $this->settings = new SettingsHelper(); - - if ($this->settings->error !== null) { - $this->error($this->settings->error); - return; - } - - $this->digitalocean = new DigitalOceanHelper($this->settings->getToken()); - $current_ip = Ip::get(); $records_to_update = DB::table('records')->get(); - $records_to_update->each(function ($record) use ($current_ip) { - $this->digitalocean->domainRecord->update($record->domain, $record->record_id, $record->record_name, $current_ip); - ; + $records_to_update->each(function ($record) use ($current_ip, $digitalocean) { + $digitalocean->domainRecord->update($record->domain, $record->record_id, $record->record_name, $current_ip); DB::update('update records set record_updated_at = ? where id = ?', [Carbon::now()->toDatetimeString(), $record->id]); diff --git a/app/Commands/UpdateToken.php b/app/Commands/UpdateToken.php index 3b00e57..7bcb08f 100644 --- a/app/Commands/UpdateToken.php +++ b/app/Commands/UpdateToken.php @@ -3,7 +3,6 @@ namespace App\Commands; use App\Helpers\SettingsHelper; -use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\DB; use LaravelZero\Framework\Commands\Command; @@ -30,11 +29,9 @@ class UpdateToken extends Command * * @return mixed */ - public function handle() + public function handle(SettingsHelper $settings) { - $this->settings = new SettingsHelper(); - - if ($this->settings->error !== null) { + if ($settings->hasToken()) { $this->updateToken(); } else { $this->insertToken(); diff --git a/app/Exceptions/InvalidSettingException.php b/app/Exceptions/InvalidSettingException.php new file mode 100644 index 0000000..81d25ba --- /dev/null +++ b/app/Exceptions/InvalidSettingException.php @@ -0,0 +1,11 @@ +settings; + } - if (!is_file(config('database.connections.sqlite.database'))) { - $this->error = "You have to run the setup command in order to create the local database."; - return $this; - } + public function hasToken() + { + return $this->hasSetting('token'); + } - $this->settings = DB::table('settings')->get(); + public function getToken() + { + return $this->getSetting('token'); + } - if ($this->settings->isNotEmpty()) { - $this->token = $this->settings->first()->token; - } else { - $this->error = "There is no settings to the database."; - } + /** + * @param $key + * @return mixed + */ + private function getSetting($key) + { + $this->setupSettings(); - return $this; + return $this->settings->{$key}; } - public function getSettings() + /** + * Check to see if the settings exists in the database + * + * @param $key + * @return boolean + */ + private function hasSetting($key) { - return $this->settings; + try { + $this->setupSettings(); + + return is_object($this->settings) && + property_exists($this->settings, $key); + } catch (InvalidSettingException $exception) { + return false; + } } - public function getToken() + /** + * @throws InvalidSettingException + */ + private function setupSettings() { - return $this->token; + // We bail if the settings are already loaded + if($this->settings) { + return; + } + + if (!is_file(config('database.connections.sqlite.database'))) { + throw new InvalidSettingException( + "The local database does not exist. Please run the setup command." + ); + } + + $this->settings = DB::table('settings')->first(); } } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 35471f6..ad03002 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,6 +2,8 @@ namespace App\Providers; +use App\Helpers\DigitalOceanHelper; +use App\Helpers\SettingsHelper; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider @@ -23,6 +25,15 @@ public function boot() */ public function register() { - // + $this->app->singleton(SettingsHelper::class, function() { + return new SettingsHelper(); + }); + + $this->app->singleton(DigitalOceanHelper::class, function() { + /** @var SettingsHelper $settings */ + $settings = app(SettingsHelper::class); + + return new DigitalOceanHelper($settings->getToken()); + }); } } diff --git a/builds/doddns b/builds/doddns old mode 100755 new mode 100644 index a257146..549b1fe Binary files a/builds/doddns and b/builds/doddns differ diff --git a/changelog.md b/changelog.md index ab776aa..9215b2e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,11 @@ # Changelog # X (Next release) +- Nothing yet. + +# 1.3.0 +- Now with more dependency injection thanks to @victorlap ! +- Added ASCII logo from latest version of Laravel Zero. # 1.2.1 Updated readme to add notes on updating. diff --git a/composer.json b/composer.json index 9dae58e..1395886 100644 --- a/composer.json +++ b/composer.json @@ -18,10 +18,11 @@ "require": { "php": "^7.1.3", "benjamin-smith/php-ipify": "^1.0", - "toin0u/digitalocean-v2": "~2.0", "guzzlehttp/guzzle": "^6.3", "illuminate/database": "5.7.*", - "laravel-zero/framework": "5.7.*" + "laravel-zero/framework": "5.7.*", + "toin0u/digitalocean-v2": "~2.0", + "zendframework/zend-text": "^2.7" }, "require-dev": { "mockery/mockery": "^1.0", diff --git a/composer.lock b/composer.lock index e3443a0..561d9c5 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": "1665091cb2d0f9e591cb18b740809a96", + "content-hash": "381ffaaac1e6efb76e4220eec81a7398", "packages": [ { "name": "beberlei/assert", @@ -105,6 +105,37 @@ ], "time": "2016-03-15T02:26:51+00:00" }, + { + "name": "container-interop/container-interop", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/container-interop/container-interop.git", + "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8", + "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8", + "shasum": "" + }, + "require": { + "psr/container": "^1.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Interop\\Container\\": "src/Interop/Container/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Promoting the interoperability of container objects (DIC, SL, etc.)", + "homepage": "https://github.com/container-interop/container-interop", + "time": "2017-02-14T19:40:03+00:00" + }, { "name": "doctrine/inflector", "version": "v1.3.0", @@ -223,16 +254,16 @@ }, { "name": "filp/whoops", - "version": "2.2.1", + "version": "2.3.0", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "e79cd403fb77fc8963a99ecc30e80ddd885b3311" + "reference": "a9f129b99df316f847584d482c89c14a9f796e2b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/e79cd403fb77fc8963a99ecc30e80ddd885b3311", - "reference": "e79cd403fb77fc8963a99ecc30e80ddd885b3311", + "url": "https://api.github.com/repos/filp/whoops/zipball/a9f129b99df316f847584d482c89c14a9f796e2b", + "reference": "a9f129b99df316f847584d482c89c14a9f796e2b", "shasum": "" }, "require": { @@ -280,7 +311,7 @@ "throwable", "whoops" ], - "time": "2018-06-30T13:14:06+00:00" + "time": "2018-10-20T09:00:00+00:00" }, { "name": "guzzlehttp/guzzle", @@ -465,16 +496,16 @@ }, { "name": "illuminate/cache", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/cache.git", - "reference": "0f8c6c5fa5f09f56165e239dd5e5e07932463284" + "reference": "e123a184fd42cc9103cde384fcd3831877a601f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/cache/zipball/0f8c6c5fa5f09f56165e239dd5e5e07932463284", - "reference": "0f8c6c5fa5f09f56165e239dd5e5e07932463284", + "url": "https://api.github.com/repos/illuminate/cache/zipball/e123a184fd42cc9103cde384fcd3831877a601f4", + "reference": "e123a184fd42cc9103cde384fcd3831877a601f4", "shasum": "" }, "require": { @@ -510,20 +541,20 @@ ], "description": "The Illuminate Cache package.", "homepage": "https://laravel.com", - "time": "2018-09-10T14:51:32+00:00" + "time": "2018-10-06T18:48:42+00:00" }, { "name": "illuminate/config", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/config.git", - "reference": "4bf5ad8913e41e934160fa0d9ba8f42f4cd3cee6" + "reference": "08b6e422d62602ee5263ca2113e9f3d800e905a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/config/zipball/4bf5ad8913e41e934160fa0d9ba8f42f4cd3cee6", - "reference": "4bf5ad8913e41e934160fa0d9ba8f42f4cd3cee6", + "url": "https://api.github.com/repos/illuminate/config/zipball/08b6e422d62602ee5263ca2113e9f3d800e905a4", + "reference": "08b6e422d62602ee5263ca2113e9f3d800e905a4", "shasum": "" }, "require": { @@ -554,20 +585,20 @@ ], "description": "The Illuminate Config package.", "homepage": "https://laravel.com", - "time": "2018-01-04T20:39:14+00:00" + "time": "2018-10-06T18:48:42+00:00" }, { "name": "illuminate/console", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/console.git", - "reference": "cdcc37b0336e4aeb94ac06b0c2620adf0fe45691" + "reference": "e04e4e26c0b25196ce09bf9a68d788c128de6118" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/console/zipball/cdcc37b0336e4aeb94ac06b0c2620adf0fe45691", - "reference": "cdcc37b0336e4aeb94ac06b0c2620adf0fe45691", + "url": "https://api.github.com/repos/illuminate/console/zipball/e04e4e26c0b25196ce09bf9a68d788c128de6118", + "reference": "e04e4e26c0b25196ce09bf9a68d788c128de6118", "shasum": "" }, "require": { @@ -604,24 +635,25 @@ ], "description": "The Illuminate Console package.", "homepage": "https://laravel.com", - "time": "2018-09-11T13:32:44+00:00" + "time": "2018-10-06T18:48:42+00:00" }, { "name": "illuminate/container", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", - "reference": "b2adca648536dfdfc13c2b93a2d717149794b682" + "reference": "73cde7bd4985eefb1d468a745e1d50d03e276121" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/container/zipball/b2adca648536dfdfc13c2b93a2d717149794b682", - "reference": "b2adca648536dfdfc13c2b93a2d717149794b682", + "url": "https://api.github.com/repos/illuminate/container/zipball/73cde7bd4985eefb1d468a745e1d50d03e276121", + "reference": "73cde7bd4985eefb1d468a745e1d50d03e276121", "shasum": "" }, "require": { "illuminate/contracts": "5.7.*", + "illuminate/support": "5.7.*", "php": "^7.1.3", "psr/container": "^1.0" }, @@ -648,20 +680,20 @@ ], "description": "The Illuminate Container package.", "homepage": "https://laravel.com", - "time": "2018-05-28T08:50:10+00:00" + "time": "2018-10-07T15:52:17+00:00" }, { "name": "illuminate/contracts", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "fd5d68eddfe49647f8354ac4c5f09cb88ccece7a" + "reference": "64df81d3382d876f1c1d3d5481d89c93b61b8279" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/fd5d68eddfe49647f8354ac4c5f09cb88ccece7a", - "reference": "fd5d68eddfe49647f8354ac4c5f09cb88ccece7a", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/64df81d3382d876f1c1d3d5481d89c93b61b8279", + "reference": "64df81d3382d876f1c1d3d5481d89c93b61b8279", "shasum": "" }, "require": { @@ -692,20 +724,20 @@ ], "description": "The Illuminate Contracts package.", "homepage": "https://laravel.com", - "time": "2018-09-05T21:56:43+00:00" + "time": "2018-10-08T13:34:14+00:00" }, { "name": "illuminate/database", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/database.git", - "reference": "415c573e8c57bc6e17ecbe26a8744e9ed041af05" + "reference": "1f4a0881ca0012732ae7b73809cf50ef8d964547" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/database/zipball/415c573e8c57bc6e17ecbe26a8744e9ed041af05", - "reference": "415c573e8c57bc6e17ecbe26a8744e9ed041af05", + "url": "https://api.github.com/repos/illuminate/database/zipball/1f4a0881ca0012732ae7b73809cf50ef8d964547", + "reference": "1f4a0881ca0012732ae7b73809cf50ef8d964547", "shasum": "" }, "require": { @@ -751,20 +783,20 @@ "orm", "sql" ], - "time": "2018-09-06T13:57:10+00:00" + "time": "2018-10-06T18:48:42+00:00" }, { "name": "illuminate/events", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/events.git", - "reference": "ada2f80ea8d4a5933ded24f592b7940456a68be0" + "reference": "a8e5e3d601ad7f3571428176a578ddf03ce649d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/events/zipball/ada2f80ea8d4a5933ded24f592b7940456a68be0", - "reference": "ada2f80ea8d4a5933ded24f592b7940456a68be0", + "url": "https://api.github.com/repos/illuminate/events/zipball/a8e5e3d601ad7f3571428176a578ddf03ce649d8", + "reference": "a8e5e3d601ad7f3571428176a578ddf03ce649d8", "shasum": "" }, "require": { @@ -796,20 +828,20 @@ ], "description": "The Illuminate Events package.", "homepage": "https://laravel.com", - "time": "2018-07-26T15:27:42+00:00" + "time": "2018-10-06T18:48:42+00:00" }, { "name": "illuminate/filesystem", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/filesystem.git", - "reference": "2251e31e382ddcbbcb34fddc43e7cc0afa530be8" + "reference": "a09fae4470494dc9867609221b46fe844f2f3b70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/filesystem/zipball/2251e31e382ddcbbcb34fddc43e7cc0afa530be8", - "reference": "2251e31e382ddcbbcb34fddc43e7cc0afa530be8", + "url": "https://api.github.com/repos/illuminate/filesystem/zipball/a09fae4470494dc9867609221b46fe844f2f3b70", + "reference": "a09fae4470494dc9867609221b46fe844f2f3b70", "shasum": "" }, "require": { @@ -852,16 +884,16 @@ }, { "name": "illuminate/support", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "966c3198b5f82c00f8e5f7b6f16c35ffcb636acc" + "reference": "ea95697233b06650382eb0f5798be22b4e520dea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/966c3198b5f82c00f8e5f7b6f16c35ffcb636acc", - "reference": "966c3198b5f82c00f8e5f7b6f16c35ffcb636acc", + "url": "https://api.github.com/repos/illuminate/support/zipball/ea95697233b06650382eb0f5798be22b4e520dea", + "reference": "ea95697233b06650382eb0f5798be22b4e520dea", "shasum": "" }, "require": { @@ -907,36 +939,36 @@ ], "description": "The Illuminate Support package.", "homepage": "https://laravel.com", - "time": "2018-09-07T22:44:17+00:00" + "time": "2018-10-07T15:51:39+00:00" }, { "name": "jakub-onderka/php-console-color", - "version": "0.1", + "version": "v0.2", "source": { "type": "git", "url": "https://github.com/JakubOnderka/PHP-Console-Color.git", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1" + "reference": "d5deaecff52a0d61ccb613bb3804088da0307191" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1", - "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1", + "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/d5deaecff52a0d61ccb613bb3804088da0307191", + "reference": "d5deaecff52a0d61ccb613bb3804088da0307191", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": ">=5.4.0" }, "require-dev": { "jakub-onderka/php-code-style": "1.0", - "jakub-onderka/php-parallel-lint": "0.*", + "jakub-onderka/php-parallel-lint": "1.0", "jakub-onderka/php-var-dump-check": "0.*", - "phpunit/phpunit": "3.7.*", + "phpunit/phpunit": "~4.3", "squizlabs/php_codesniffer": "1.*" }, "type": "library", "autoload": { - "psr-0": { - "JakubOnderka\\PhpConsoleColor": "src/" + "psr-4": { + "JakubOnderka\\PhpConsoleColor\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -946,11 +978,10 @@ "authors": [ { "name": "Jakub Onderka", - "email": "jakub.onderka@gmail.com", - "homepage": "http://www.acci.cz" + "email": "jakub.onderka@gmail.com" } ], - "time": "2014-04-08T15:00:19+00:00" + "time": "2018-09-29T17:23:10+00:00" }, { "name": "jakub-onderka/php-console-highlighter", @@ -1054,16 +1085,16 @@ }, { "name": "laravel-zero/foundation", - "version": "v5.7.3", + "version": "v5.7.9", "source": { "type": "git", "url": "https://github.com/laravel-zero/foundation.git", - "reference": "1f7b538985c54e5f4a5d9fdcdb967e642d0797c6" + "reference": "419e1c7edc85983e495349799c8713361c3eb159" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-zero/foundation/zipball/1f7b538985c54e5f4a5d9fdcdb967e642d0797c6", - "reference": "1f7b538985c54e5f4a5d9fdcdb967e642d0797c6", + "url": "https://api.github.com/repos/laravel-zero/foundation/zipball/419e1c7edc85983e495349799c8713361c3eb159", + "reference": "419e1c7edc85983e495349799c8713361c3eb159", "shasum": "" }, "require": { @@ -1087,20 +1118,20 @@ "framework", "laravel" ], - "time": "2018-09-12T21:36:07+00:00" + "time": "2018-10-14T15:11:29+00:00" }, { "name": "laravel-zero/framework", - "version": "v5.7.1", + "version": "v5.7.10", "source": { "type": "git", "url": "https://github.com/laravel-zero/framework.git", - "reference": "833d854face641bb6ad84340131629b7810cb4d9" + "reference": "712a12fa1fb55fdd2f65a7de6328177f806917f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-zero/framework/zipball/833d854face641bb6ad84340131629b7810cb4d9", - "reference": "833d854face641bb6ad84340131629b7810cb4d9", + "url": "https://api.github.com/repos/laravel-zero/framework/zipball/712a12fa1fb55fdd2f65a7de6328177f806917f5", + "reference": "712a12fa1fb55fdd2f65a7de6328177f806917f5", "shasum": "" }, "require": { @@ -1109,8 +1140,10 @@ "illuminate/config": "5.7.*", "illuminate/console": "5.7.*", "illuminate/container": "5.7.*", + "illuminate/contracts": "5.7.*", "illuminate/events": "5.7.*", "illuminate/filesystem": "5.7.*", + "illuminate/support": "5.7.*", "laravel-zero/foundation": "5.7.*", "league/flysystem": "^1.0.8", "nunomaduro/collision": "^2.0", @@ -1121,6 +1154,7 @@ "php": "^7.1.3", "symfony/console": "^4.1", "symfony/debug": "^4.1", + "symfony/process": "^4.1", "symfony/var-dumper": "^4.1" }, "require-dev": { @@ -1131,7 +1165,8 @@ "nunomaduro/laravel-console-dusk": "^1.0", "phpstan/phpstan": "^0.10", "phpunit/phpunit": "^7.3", - "vlucas/phpdotenv": "^2.4" + "vlucas/phpdotenv": "^2.4", + "zendframework/zend-text": "^2.7" }, "type": "library", "autoload": { @@ -1158,20 +1193,20 @@ "framework", "laravel" ], - "time": "2018-09-12T22:16:45+00:00" + "time": "2018-10-16T11:01:25+00:00" }, { "name": "league/flysystem", - "version": "1.0.47", + "version": "1.0.48", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "a11e4a75f256bdacf99d20780ce42d3b8272975c" + "reference": "a6ded5b2f6055e2db97b4b859fdfca2b952b78aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a11e4a75f256bdacf99d20780ce42d3b8272975c", - "reference": "a11e4a75f256bdacf99d20780ce42d3b8272975c", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a6ded5b2f6055e2db97b4b859fdfca2b952b78aa", + "reference": "a6ded5b2f6055e2db97b4b859fdfca2b952b78aa", "shasum": "" }, "require": { @@ -1242,20 +1277,20 @@ "sftp", "storage" ], - "time": "2018-09-14T15:30:29+00:00" + "time": "2018-10-15T13:53:10+00:00" }, { "name": "nesbot/carbon", - "version": "1.33.0", + "version": "1.34.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "55667c1007a99e82030874b1bb14d24d07108413" + "reference": "1dbd3cb01c5645f3e7deda7aa46ef780d95fcc33" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/55667c1007a99e82030874b1bb14d24d07108413", - "reference": "55667c1007a99e82030874b1bb14d24d07108413", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/1dbd3cb01c5645f3e7deda7aa46ef780d95fcc33", + "reference": "1dbd3cb01c5645f3e7deda7aa46ef780d95fcc33", "shasum": "" }, "require": { @@ -1297,20 +1332,20 @@ "datetime", "time" ], - "time": "2018-08-07T08:39:47+00:00" + "time": "2018-09-20T19:36:25+00:00" }, { "name": "nunomaduro/collision", - "version": "v2.0.3", + "version": "v2.1.0", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "b1f606399ae77e9479b5597cd1aa3d8ea0078176" + "reference": "1149ad9f36f61b121ae61f5f6de820fc77b51e6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/b1f606399ae77e9479b5597cd1aa3d8ea0078176", - "reference": "b1f606399ae77e9479b5597cd1aa3d8ea0078176", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/1149ad9f36f61b121ae61f5f6de820fc77b51e6b", + "reference": "1149ad9f36f61b121ae61f5f6de820fc77b51e6b", "shasum": "" }, "require": { @@ -1320,9 +1355,9 @@ "symfony/console": "~2.8|~3.3|~4.0" }, "require-dev": { - "laravel/framework": "5.6.*", - "phpstan/phpstan": "^0.9.2", - "phpunit/phpunit": "~7.2" + "laravel/framework": "5.7.*", + "phpstan/phpstan": "^0.10", + "phpunit/phpunit": "~7.3" }, "type": "library", "extra": { @@ -1360,20 +1395,20 @@ "php", "symfony" ], - "time": "2018-06-16T22:05:52+00:00" + "time": "2018-10-03T20:01:54+00:00" }, { "name": "nunomaduro/laravel-console-menu", - "version": "v2.0.0", + "version": "v2.0.1", "source": { "type": "git", "url": "https://github.com/nunomaduro/laravel-console-menu.git", - "reference": "0bdb20e37a54708429d6c8aa7bb63dbafb04ca35" + "reference": "303cf565be9ac88ef38680d4b9197149dcfa9f26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/laravel-console-menu/zipball/0bdb20e37a54708429d6c8aa7bb63dbafb04ca35", - "reference": "0bdb20e37a54708429d6c8aa7bb63dbafb04ca35", + "url": "https://api.github.com/repos/nunomaduro/laravel-console-menu/zipball/303cf565be9ac88ef38680d4b9197149dcfa9f26", + "reference": "303cf565be9ac88ef38680d4b9197149dcfa9f26", "shasum": "" }, "require": { @@ -1416,7 +1451,7 @@ "php", "symfony" ], - "time": "2018-08-27T09:19:52+00:00" + "time": "2018-10-14T13:14:31+00:00" }, { "name": "nunomaduro/laravel-console-summary", @@ -1951,16 +1986,16 @@ }, { "name": "symfony/console", - "version": "v4.1.4", + "version": "v4.1.6", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "ca80b8ced97cf07390078b29773dc384c39eee1f" + "reference": "dc7122fe5f6113cfaba3b3de575d31112c9aa60b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/ca80b8ced97cf07390078b29773dc384c39eee1f", - "reference": "ca80b8ced97cf07390078b29773dc384c39eee1f", + "url": "https://api.github.com/repos/symfony/console/zipball/dc7122fe5f6113cfaba3b3de575d31112c9aa60b", + "reference": "dc7122fe5f6113cfaba3b3de575d31112c9aa60b", "shasum": "" }, "require": { @@ -2015,20 +2050,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2018-07-26T11:24:31+00:00" + "time": "2018-10-03T08:15:46+00:00" }, { "name": "symfony/debug", - "version": "v4.1.4", + "version": "v4.1.6", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "47ead688f1f2877f3f14219670f52e4722ee7052" + "reference": "e3f76ce6198f81994e019bb2b4e533e9de1b9b90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/47ead688f1f2877f3f14219670f52e4722ee7052", - "reference": "47ead688f1f2877f3f14219670f52e4722ee7052", + "url": "https://api.github.com/repos/symfony/debug/zipball/e3f76ce6198f81994e019bb2b4e533e9de1b9b90", + "reference": "e3f76ce6198f81994e019bb2b4e533e9de1b9b90", "shasum": "" }, "require": { @@ -2071,20 +2106,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2018-08-03T11:13:38+00:00" + "time": "2018-10-02T16:36:10+00:00" }, { "name": "symfony/finder", - "version": "v4.1.4", + "version": "v4.1.6", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "e162f1df3102d0b7472805a5a9d5db9fcf0a8068" + "reference": "1f17195b44543017a9c9b2d437c670627e96ad06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/e162f1df3102d0b7472805a5a9d5db9fcf0a8068", - "reference": "e162f1df3102d0b7472805a5a9d5db9fcf0a8068", + "url": "https://api.github.com/repos/symfony/finder/zipball/1f17195b44543017a9c9b2d437c670627e96ad06", + "reference": "1f17195b44543017a9c9b2d437c670627e96ad06", "shasum": "" }, "require": { @@ -2120,7 +2155,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2018-07-26T11:24:31+00:00" + "time": "2018-10-03T08:47:56+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -2238,16 +2273,16 @@ }, { "name": "symfony/process", - "version": "v4.1.4", + "version": "v4.1.6", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "86cdb930a6a855b0ab35fb60c1504cb36184f843" + "reference": "ee33c0322a8fee0855afcc11fff81e6b1011b529" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/86cdb930a6a855b0ab35fb60c1504cb36184f843", - "reference": "86cdb930a6a855b0ab35fb60c1504cb36184f843", + "url": "https://api.github.com/repos/symfony/process/zipball/ee33c0322a8fee0855afcc11fff81e6b1011b529", + "reference": "ee33c0322a8fee0855afcc11fff81e6b1011b529", "shasum": "" }, "require": { @@ -2283,20 +2318,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2018-08-03T11:13:38+00:00" + "time": "2018-10-02T12:40:59+00:00" }, { "name": "symfony/translation", - "version": "v4.1.4", + "version": "v4.1.6", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "fa2182669f7983b7aa5f1a770d053f79f0ef144f" + "reference": "9f0b61e339160a466ebcde167a6c5521c810e304" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/fa2182669f7983b7aa5f1a770d053f79f0ef144f", - "reference": "fa2182669f7983b7aa5f1a770d053f79f0ef144f", + "url": "https://api.github.com/repos/symfony/translation/zipball/9f0b61e339160a466ebcde167a6c5521c810e304", + "reference": "9f0b61e339160a466ebcde167a6c5521c810e304", "shasum": "" }, "require": { @@ -2352,20 +2387,20 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2018-08-07T12:45:11+00:00" + "time": "2018-10-02T16:36:10+00:00" }, { "name": "symfony/var-dumper", - "version": "v4.1.4", + "version": "v4.1.6", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "a05426e27294bba7b0226ffc17dd01a3c6ef9777" + "reference": "60319b45653580b0cdacca499344577d87732f16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/a05426e27294bba7b0226ffc17dd01a3c6ef9777", - "reference": "a05426e27294bba7b0226ffc17dd01a3c6ef9777", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/60319b45653580b0cdacca499344577d87732f16", + "reference": "60319b45653580b0cdacca499344577d87732f16", "shasum": "" }, "require": { @@ -2427,7 +2462,7 @@ "debug", "dump" ], - "time": "2018-08-02T09:24:26+00:00" + "time": "2018-10-02T16:36:10+00:00" }, { "name": "toin0u/digitalocean-v2", @@ -2497,6 +2532,168 @@ "vps" ], "time": "2017-04-18T15:02:19+00:00" + }, + { + "name": "zendframework/zend-servicemanager", + "version": "3.3.2", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-servicemanager.git", + "reference": "9f35a104b8d4d3b32da5f4a3b6efc0dd62e5af42" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-servicemanager/zipball/9f35a104b8d4d3b32da5f4a3b6efc0dd62e5af42", + "reference": "9f35a104b8d4d3b32da5f4a3b6efc0dd62e5af42", + "shasum": "" + }, + "require": { + "container-interop/container-interop": "^1.2", + "php": "^5.6 || ^7.0", + "psr/container": "^1.0", + "zendframework/zend-stdlib": "^3.1" + }, + "provide": { + "container-interop/container-interop-implementation": "^1.2", + "psr/container-implementation": "^1.0" + }, + "require-dev": { + "mikey179/vfsstream": "^1.6.5", + "ocramius/proxy-manager": "^1.0 || ^2.0", + "phpbench/phpbench": "^0.13.0", + "phpunit/phpunit": "^5.7.25 || ^6.4.4", + "zendframework/zend-coding-standard": "~1.0.0" + }, + "suggest": { + "ocramius/proxy-manager": "ProxyManager 1.* to handle lazy initialization of services", + "zendframework/zend-stdlib": "zend-stdlib ^2.5 if you wish to use the MergeReplaceKey or MergeRemoveKey features in Config instances" + }, + "bin": [ + "bin/generate-deps-for-config-factory", + "bin/generate-factory-for-class" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.3-dev", + "dev-develop": "4.0-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\ServiceManager\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Factory-Driven Dependency Injection Container", + "keywords": [ + "PSR-11", + "ZendFramework", + "dependency-injection", + "di", + "dic", + "service-manager", + "servicemanager", + "zf" + ], + "time": "2018-01-29T16:48:37+00:00" + }, + { + "name": "zendframework/zend-stdlib", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-stdlib.git", + "reference": "66536006722aff9e62d1b331025089b7ec71c065" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-stdlib/zipball/66536006722aff9e62d1b331025089b7ec71c065", + "reference": "66536006722aff9e62d1b331025089b7ec71c065", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpbench/phpbench": "^0.13", + "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2", + "zendframework/zend-coding-standard": "~1.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2.x-dev", + "dev-develop": "3.3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Stdlib\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "SPL extensions, array utilities, error handlers, and more", + "keywords": [ + "ZendFramework", + "stdlib", + "zf" + ], + "time": "2018-08-28T21:34:05+00:00" + }, + { + "name": "zendframework/zend-text", + "version": "2.7.0", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-text.git", + "reference": "ca987dd4594f5f9508771fccd82c89bc7fbb39ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-text/zipball/ca987dd4594f5f9508771fccd82c89bc7fbb39ac", + "reference": "ca987dd4594f5f9508771fccd82c89bc7fbb39ac", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0", + "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3", + "zendframework/zend-stdlib": "^2.7 || ^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.4", + "zendframework/zend-coding-standard": "~1.0.0", + "zendframework/zend-config": "^2.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7.x-dev", + "dev-develop": "2.8.x-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Text\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Create FIGlets and text-based tables", + "keywords": [ + "ZendFramework", + "text", + "zf" + ], + "time": "2018-04-30T14:55:10+00:00" } ], "packages-dev": [ @@ -2604,16 +2801,16 @@ }, { "name": "mockery/mockery", - "version": "1.1.0", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/mockery/mockery.git", - "reference": "99e29d3596b16dabe4982548527d5ddf90232e99" + "reference": "100633629bf76d57430b86b7098cd6beb996a35a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/99e29d3596b16dabe4982548527d5ddf90232e99", - "reference": "99e29d3596b16dabe4982548527d5ddf90232e99", + "url": "https://api.github.com/repos/mockery/mockery/zipball/100633629bf76d57430b86b7098cd6beb996a35a", + "reference": "100633629bf76d57430b86b7098cd6beb996a35a", "shasum": "" }, "require": { @@ -2622,8 +2819,7 @@ "php": ">=5.6.0" }, "require-dev": { - "phpdocumentor/phpdocumentor": "^2.9", - "phpunit/phpunit": "~5.7.10|~6.5" + "phpunit/phpunit": "~5.7.10|~6.5|~7.0" }, "type": "library", "extra": { @@ -2666,7 +2862,7 @@ "test double", "testing" ], - "time": "2018-05-08T08:54:48+00:00" + "time": "2018-10-02T21:52:37+00:00" }, { "name": "myclabs/deep-copy", @@ -3035,16 +3231,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "6.0.7", + "version": "6.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "865662550c384bc1db7e51d29aeda1c2c161d69a" + "reference": "b097681a19a48e52706f57e47a09594bac4f7cab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/865662550c384bc1db7e51d29aeda1c2c161d69a", - "reference": "865662550c384bc1db7e51d29aeda1c2c161d69a", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/b097681a19a48e52706f57e47a09594bac4f7cab", + "reference": "b097681a19a48e52706f57e47a09594bac4f7cab", "shasum": "" }, "require": { @@ -3055,7 +3251,7 @@ "phpunit/php-text-template": "^1.2.1", "phpunit/php-token-stream": "^3.0", "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^3.1", + "sebastian/environment": "^3.1 || ^4.0", "sebastian/version": "^2.0.1", "theseer/tokenizer": "^1.1" }, @@ -3068,7 +3264,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "6.0-dev" + "dev-master": "6.1-dev" } }, "autoload": { @@ -3094,7 +3290,7 @@ "testing", "xunit" ], - "time": "2018-06-01T07:51:50+00:00" + "time": "2018-10-18T09:01:38+00:00" }, { "name": "phpunit/php-file-iterator", @@ -3287,16 +3483,16 @@ }, { "name": "phpunit/phpunit", - "version": "7.3.5", + "version": "7.4.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "7b331efabbb628c518c408fdfcaf571156775de2" + "reference": "c5a120ade60992bd671a912188ee9ee9f8083bbd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7b331efabbb628c518c408fdfcaf571156775de2", - "reference": "7b331efabbb628c518c408fdfcaf571156775de2", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c5a120ade60992bd671a912188ee9ee9f8083bbd", + "reference": "c5a120ade60992bd671a912188ee9ee9f8083bbd", "shasum": "" }, "require": { @@ -3317,11 +3513,11 @@ "phpunit/php-timer": "^2.0", "sebastian/comparator": "^3.0", "sebastian/diff": "^3.0", - "sebastian/environment": "^3.1", + "sebastian/environment": "^3.1 || ^4.0", "sebastian/exporter": "^3.1", "sebastian/global-state": "^2.0", "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^1.0", + "sebastian/resource-operations": "^2.0", "sebastian/version": "^2.0.1" }, "conflict": { @@ -3341,7 +3537,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "7.3-dev" + "dev-master": "7.4-dev" } }, "autoload": { @@ -3367,7 +3563,7 @@ "testing", "xunit" ], - "time": "2018-09-08T15:14:29+00:00" + "time": "2018-10-18T09:02:52+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -3849,25 +4045,25 @@ }, { "name": "sebastian/resource-operations", - "version": "1.0.0", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9" }, "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/4d7a795d35b889bf80a0cc04e08d77cedfa917a9", + "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9", "shasum": "" }, "require": { - "php": ">=5.6.0" + "php": "^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -3887,7 +4083,7 @@ ], "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": "2018-10-04T04:07:39+00:00" }, { "name": "sebastian/version", diff --git a/config/app.php b/config/app.php index 95bcf4d..f5a9761 100644 --- a/config/app.php +++ b/config/app.php @@ -26,7 +26,7 @@ | */ - 'version' => "1.1.0", + 'version' => "1.3.0", /* |-------------------------------------------------------------------------- diff --git a/config/logo.php b/config/logo.php new file mode 100644 index 0000000..c74f1e4 --- /dev/null +++ b/config/logo.php @@ -0,0 +1,72 @@ + true, + + /* + |-------------------------------------------------------------------------- + | Default Font + |-------------------------------------------------------------------------- + | + | This option defines the font which should be used for rendering. + | By default, one default font is shipped. However, you are free + | to download and use additional fonts: http://www.figlet.org. + | + */ + + 'font' => \LaravelZero\Framework\Components\Logo\FigletString::DEFAULT_FONT, + + /* + |-------------------------------------------------------------------------- + | Output Width + |-------------------------------------------------------------------------- + | + | This option defines the maximum width of the output string. This is + | used for word-wrap as well as justification. Be careful when using + | small values, because they may result in an undefined behavior. + | + */ + + 'outputWidth' => 80, + + /* + |-------------------------------------------------------------------------- + | Justification + |-------------------------------------------------------------------------- + | + | This option defines the justification of the logo text. By default, + | justification is provided, which will work well on most of your + | console apps. Of course, you are free to change this value. + | + */ + + 'justification' => null, + + /* + |-------------------------------------------------------------------------- + | Right To Left + |-------------------------------------------------------------------------- + | + | This option defines the option in which the text is written. By, default + | the setting of the font-file is used. When justification is not defined, + | a text written from right-to-left is automatically right-aligned. + | + | Possible values: "right-to-left", "left-to-right", null + | + */ + + 'rightToLeft' => null, + +];