From 2671c864de7547412b018d6c1cae5b55e8887b0c Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Sun, 25 Dec 2022 18:07:48 +0330 Subject: [PATCH 1/8] cp project in my directory --- .../hamidrezaNiakan/.editorconfig | 18 + .../hamidrezaNiakan/.env.example | 58 + .../hamidrezaNiakan/.gitignore | 20 + .../app/Enums/DriverStatus.php | 7 + .../app/Enums/TravelEventType.php | 9 + .../app/Enums/TravelStatus.php | 9 + .../app/Exceptions/ActiveTravelException.php | 16 + .../AllSpotsDidNotPassException.php | 16 + .../app/Exceptions/AlreadyDriverException.php | 16 + .../CannotCancelFinishedTravelException.php | 16 + .../CannotCancelRunningTravelException.php | 11 + .../CarDoesNotArrivedAtOriginException.php | 16 + .../app/Exceptions/Concerns/JsonRender.php | 12 + ...alidTravelStatusForThisActionException.php | 11 + .../app/Exceptions/ProtectedSpotException.php | 11 + .../Exceptions/SpotAlreadyPassedException.php | 16 + .../app/Http/Controllers/AuthController.php | 10 + .../app/Http/Controllers/Controller.php | 13 + .../app/Http/Controllers/DriverController.php | 14 + .../app/Http/Controllers/TravelController.php | 31 + .../Http/Controllers/TravelSpotController.php | 18 + .../hamidrezaNiakan/app/Http/Kernel.php | 35 + .../app/Http/Middleware/Authenticate.php | 21 + .../app/Http/Middleware/TrimStrings.php | 19 + .../app/Http/Middleware/TrustProxies.php | 28 + .../app/Http/Requests/DriverSignupRequest.php | 26 + .../app/Http/Requests/DriverUpdateRequest.php | 29 + .../app/Http/Requests/RegisterRequest.php | 27 + .../Http/Requests/TravelSpotStoreRequest.php | 28 + .../app/Http/Requests/TravelStoreRequest.php | 40 + .../app/Http/Resources/TravelResource.php | 20 + .../hamidrezaNiakan/app/Models/Driver.php | 46 + .../hamidrezaNiakan/app/Models/Travel.php | 67 + .../app/Models/TravelEvent.php | 24 + .../hamidrezaNiakan/app/Models/TravelSpot.php | 17 + .../hamidrezaNiakan/app/Models/User.php | 31 + .../app/Policies/DriverPolicy.php | 20 + .../app/Policies/TravelPolicy.php | 41 + .../app/Policies/TravelSpotPolicy.php | 27 + .../app/Providers/AppServiceProvider.php | 18 + .../app/Providers/AuthServiceProvider.php | 28 + .../app/Providers/RouteServiceProvider.php | 18 + .../hamidrezaNiakan/artisan | 53 + .../hamidrezaNiakan/bootstrap/app.php | 55 + .../bootstrap/cache/.gitignore | 2 + .../hamidrezaNiakan/composer.json | 58 + .../hamidrezaNiakan/composer.lock | 7099 +++++++++++++++++ .../hamidrezaNiakan/config/app.php | 194 + .../hamidrezaNiakan/config/auth.php | 35 + .../hamidrezaNiakan/config/broadcasting.php | 11 + .../hamidrezaNiakan/config/cache.php | 21 + .../hamidrezaNiakan/config/cors.php | 21 + .../hamidrezaNiakan/config/database.php | 42 + .../hamidrezaNiakan/config/filesystems.php | 29 + .../hamidrezaNiakan/config/hashing.php | 11 + .../hamidrezaNiakan/config/logging.php | 86 + .../hamidrezaNiakan/config/mail.php | 29 + .../hamidrezaNiakan/config/queue.php | 17 + .../hamidrezaNiakan/config/sanctum.php | 14 + .../hamidrezaNiakan/config/services.php | 4 + .../hamidrezaNiakan/config/session.php | 24 + .../hamidrezaNiakan/config/view.php | 12 + .../hamidrezaNiakan/database/.gitignore | 1 + .../database/factories/DriverFactory.php | 50 + .../database/factories/TravelEventFactory.php | 61 + .../database/factories/TravelFactory.php | 71 + .../database/factories/TravelSpotFactory.php | 51 + .../database/factories/UserFactory.php | 26 + .../2014_10_12_000000_create_users_table.php | 26 + ...12_100000_create_password_resets_table.php | 32 + ..._08_19_000000_create_failed_jobs_table.php | 36 + ...01_create_personal_access_tokens_table.php | 37 + ...2022_11_27_090148_create_drivers_table.php | 33 + ...2022_11_27_091744_create_travels_table.php | 38 + ..._27_100550_create_travels_events_table.php | 31 + ...1_27_100749_create_travels_spots_table.php | 28 + .../database/seeders/DatabaseSeeder.php | 24 + .../hamidrezaNiakan/lang/en/auth.php | 20 + .../hamidrezaNiakan/lang/en/pagination.php | 19 + .../hamidrezaNiakan/lang/en/passwords.php | 22 + .../hamidrezaNiakan/lang/en/validation.php | 176 + .../hamidrezaNiakan/phpunit.xml | 35 + .../hamidrezaNiakan/public/.htaccess | 21 + .../hamidrezaNiakan/public/favicon.ico | 0 .../hamidrezaNiakan/public/index.php | 55 + .../hamidrezaNiakan/public/robots.txt | 2 + .../hamidrezaNiakan/routes/api.php | 31 + .../hamidrezaNiakan/storage/app/.gitignore | 3 + .../storage/app/public/.gitignore | 2 + .../storage/framework/.gitignore | 9 + .../storage/framework/cache/.gitignore | 3 + .../storage/framework/cache/data/.gitignore | 2 + .../storage/framework/sessions/.gitignore | 2 + .../storage/framework/testing/.gitignore | 2 + .../storage/framework/views/.gitignore | 2 + .../hamidrezaNiakan/storage/logs/.gitignore | 2 + .../tests/CreatesApplication.php | 22 + .../tests/Feature/AuthControllerTest.php | 57 + .../tests/Feature/Concerns/TestingTravel.php | 43 + .../tests/Feature/DriverControllerTest.php | 77 + .../tests/Feature/TravelControllerTest.php | 358 + .../Feature/TravelSpotControllerTest.php | 261 + .../hamidrezaNiakan/tests/TestCase.php | 10 + .../tests/Unit/Models/TravelEventTest.php | 18 + .../tests/Unit/Models/TravelTest.php | 20 + 105 files changed, 10594 insertions(+) create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.editorconfig create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.env.example create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Enums/DriverStatus.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Enums/TravelEventType.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Enums/TravelStatus.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/ActiveTravelException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/AllSpotsDidNotPassException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/AlreadyDriverException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/CannotCancelFinishedTravelException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/CannotCancelRunningTravelException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/CarDoesNotArrivedAtOriginException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/Concerns/JsonRender.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/InvalidTravelStatusForThisActionException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/ProtectedSpotException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/SpotAlreadyPassedException.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/AuthController.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/Controller.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/DriverController.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Kernel.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/Authenticate.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrimStrings.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrustProxies.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverSignupRequest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverUpdateRequest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/RegisterRequest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelStoreRequest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelResource.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Driver.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Travel.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/DriverPolicy.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelPolicy.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelSpotPolicy.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/AppServiceProvider.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/AuthServiceProvider.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/RouteServiceProvider.php create mode 100755 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/artisan create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/app.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/cache/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.json create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.lock create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/app.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/auth.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/broadcasting.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cache.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cors.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/database.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/filesystems.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/hashing.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/logging.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/mail.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/queue.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/sanctum.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/services.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/session.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/view.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/DriverFactory.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelEventFactory.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelFactory.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelSpotFactory.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/UserFactory.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_000000_create_users_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_100000_create_password_resets_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_08_19_000000_create_failed_jobs_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_090148_create_drivers_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_091744_create_travels_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100550_create_travels_events_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100749_create_travels_spots_table.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/auth.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/pagination.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/passwords.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/validation.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/phpunit.xml create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/.htaccess create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/favicon.ico create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/index.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/robots.txt create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/routes/api.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/public/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/data/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/sessions/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/testing/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/views/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/logs/.gitignore create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/CreatesApplication.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/AuthControllerTest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/Concerns/TestingTravel.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/DriverControllerTest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelSpotControllerTest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/TestCase.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Unit/Models/TravelEventTest.php create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Unit/Models/TravelTest.php diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.editorconfig b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.editorconfig new file mode 100644 index 00000000..8f0de65c --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.env.example b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.env.example new file mode 100644 index 00000000..00b6110e --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.env.example @@ -0,0 +1,58 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.gitignore new file mode 100644 index 00000000..26eab6cd --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/.gitignore @@ -0,0 +1,20 @@ +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode +/.phpunit.cache +/coverage \ No newline at end of file diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Enums/DriverStatus.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Enums/DriverStatus.php new file mode 100644 index 00000000..27f09258 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Enums/DriverStatus.php @@ -0,0 +1,7 @@ + str_replace("Exception", "", class_basename(get_class($this))), + 'message' => $this->message + ), 400); + } +} \ No newline at end of file diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/InvalidTravelStatusForThisActionException.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/InvalidTravelStatusForThisActionException.php new file mode 100644 index 00000000..fec52f3e --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Exceptions/InvalidTravelStatusForThisActionException.php @@ -0,0 +1,11 @@ + + */ + protected $middleware = [ + \Illuminate\Http\Middleware\HandleCors::class, + \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, + \App\Http\Middleware\TrimStrings::class, + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, + ]; + + /** + * @var array> + */ + protected $middlewareGroups = [ + 'api' => [ + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + ]; + + /** + * @var array + */ + protected $routeMiddleware = [ + 'auth' => \App\Http\Middleware\Authenticate::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + ]; +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/Authenticate.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/Authenticate.php new file mode 100644 index 00000000..704089a7 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/Authenticate.php @@ -0,0 +1,21 @@ +expectsJson()) { + return route('login'); + } + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrimStrings.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrimStrings.php new file mode 100644 index 00000000..88cadcaa --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,19 @@ + + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ]; +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrustProxies.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrustProxies.php new file mode 100644 index 00000000..3391630e --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,28 @@ +|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies. + * + * @var int + */ + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverSignupRequest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverSignupRequest.php new file mode 100644 index 00000000..8f0f3dad --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverSignupRequest.php @@ -0,0 +1,26 @@ + + */ + public function rules(): array + { + return [ + 'car_plate' => ['required', 'regex:/^[1-9]{2}[بجدژسصطقلتع][1-9]{5}$/u'], + 'car_model' => ['required'], + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverUpdateRequest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverUpdateRequest.php new file mode 100644 index 00000000..e26bd0c5 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/DriverUpdateRequest.php @@ -0,0 +1,29 @@ +user()); + } + + /** + * @return array + */ + public function rules(): array + { + return [ + 'latitude' => ['required_with:longitude', 'numeric', 'min:-90', 'max:90'], + 'longitude' => ['required_with:latitude', 'numeric', 'min:-180', 'max:180'], + 'status' => ['required', Rule::enum(DriverStatus::class)], + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/RegisterRequest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/RegisterRequest.php new file mode 100644 index 00000000..e8c07379 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/RegisterRequest.php @@ -0,0 +1,27 @@ + + */ + public function rules(): array + { + return [ + 'cellphone' => ['required', 'regex:/^09\d{9}$/'], + 'name' => ['required'], + 'lastname' => ['required'], + 'password' => ['required', 'min:6'], + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php new file mode 100644 index 00000000..cbd0cf9c --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php @@ -0,0 +1,28 @@ + + */ + public function rules(): array + { + return [ + 'position' => ['required', 'integer', 'min:1'], + 'latitude' => ['required','min:-90', 'max:90'], + 'longitude' => ['required','min:-180', 'max:180'], + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelStoreRequest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelStoreRequest.php new file mode 100644 index 00000000..ad0fb256 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelStoreRequest.php @@ -0,0 +1,40 @@ + + */ + public function rules(): array + { + return [ + 'spots' => ['required', 'array', 'min:2'], + 'spots.*.position' => ['required', 'integer', 'min:0'], + 'spots.*.latitude' => ['required','min:-90', 'max:90'], + 'spots.*.longitude' => ['required','min:-180', 'max:180'], + ]; + } + + public function withValidator(Validator $validator): void + { + $validator->after(function(Validator $validator) { + $validated = $validator->validated(); + $positions = array_map('intval', array_column($validated['spots'], 'position')); + sort($positions); + if ($positions !== range(0, count($validated['spots']) - 1)) { + $validator->errors()->add('spots', 'Spot position must be a numerical sequence starting with 0'); + } + }); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelResource.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelResource.php new file mode 100644 index 00000000..76148c66 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelResource.php @@ -0,0 +1,20 @@ +resource->load(["spots", "events"]); + return array( + 'travel' => parent::toArray($request) + ); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Driver.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Driver.php new file mode 100644 index 00000000..382325e4 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Driver.php @@ -0,0 +1,46 @@ +findOrFail($user->id); + } + + public static function isDriver(User $user): bool + { + return self::query()->where("id", $user->id)->exists(); + } + + public $incrementing = false; + + protected $casts = array( + 'status' => DriverStatus::class, + ); + + + /** + * @var string[] + */ + protected $fillable = [ + 'id', + 'car_model', + 'car_plate', + 'latitude', + 'longitude', + 'status', + ]; + + public function user() + { + return $this->hasOne(User::class, 'id'); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Travel.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Travel.php new file mode 100644 index 00000000..5c632f9a --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/Travel.php @@ -0,0 +1,67 @@ +whereIn("status", [TravelStatus::RUNNING, TravelStatus::SEARCHING_FOR_DRIVER]) + ->where(function ($q) use ($user) { + $q->where("passenger_id", $user->id); + $q->orWhere("driver_id", $user->id); + }) + ->exists(); + } + + protected $table = "travels"; + protected $casts = array( + 'status' => TravelStatus::class, + ); + + public function passenger() + { + return $this->belongsTo(User::class); + } + + public function driver() + { + return $this->belongsTo(Driver::class); + } + + public function events() + { + return $this->hasMany(TravelEvent::class); + } + + public function spots() + { + return $this->hasMany(TravelSpot::class); + } + + public function passengerIsInCar(): bool { + return $this->events()->where("type", TravelEventType::PASSENGER_ONBOARD)->exists(); + } + + public function driverHasArrivedToOrigin(): bool { + return $this->spots()->where("position", 0)->value("arrived_at") !== null; + } + + public function allSpotsPassed(): bool { + return $this->spots()->whereNull("arrived_at")->doesntExist(); + } + + public function getOriginSpot(): TravelSpot + { + return $this->spots() + ->where("position", 0) + ->firstOrFail(); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php new file mode 100644 index 00000000..e56e3331 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php @@ -0,0 +1,24 @@ + TravelEventType::class, + ); + + public function travel() + { + return $this->belongsTo(Travel::class); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php new file mode 100644 index 00000000..69ea8cd4 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php @@ -0,0 +1,17 @@ +belongsTo(Travel::class); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php new file mode 100644 index 00000000..8b331ceb --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php @@ -0,0 +1,31 @@ +id == $driver->id; + } + + public function signup(User $user): bool + { + return true; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelPolicy.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelPolicy.php new file mode 100644 index 00000000..0be23155 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelPolicy.php @@ -0,0 +1,41 @@ +id, [$travel->passenger_id, $travel->driver_id]); + } + + public function create(User $user): bool + { + return true; + } + + public function cancel(User $user, Travel $travel): bool + { + return in_array($user->id, [$travel->passenger_id, $travel->driver_id]); + } + + public function markAsPassengerOnBoard(User $user, Travel $travel): bool + { + return $user->id == $travel->driver_id; + } + + public function markAsDone(User $user, Travel $travel): bool + { + return $user->id == $travel->driver_id; + } + + public function take(User $user): bool + { + return Driver::isDriver($user); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelSpotPolicy.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelSpotPolicy.php new file mode 100644 index 00000000..04c6f034 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Policies/TravelSpotPolicy.php @@ -0,0 +1,27 @@ +passenger_id == $user->id; + } + + public function markAsArrived(User $user, TravelSpot $spot): bool + { + return $spot->travel->driver_id == $user->id; + } + + public function destroy(User $user, TravelSpot $spot): bool + { + return $spot->travel->passenger_id == $user->id; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/AppServiceProvider.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/AppServiceProvider.php new file mode 100644 index 00000000..d1376860 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/AppServiceProvider.php @@ -0,0 +1,18 @@ + + */ + protected $policies = [ + Travel::class => TravelPolicy::class, + TravelSpot::class => TravelSpotPolicy::class, + Driver::class => DriverPolicy::class, + ]; + + public function boot(): void + { + $this->registerPolicies(); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/RouteServiceProvider.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/RouteServiceProvider.php new file mode 100644 index 00000000..7da3261d --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Providers/RouteServiceProvider.php @@ -0,0 +1,18 @@ +routes(function () { + Route::middleware('api') + ->prefix('api') + ->group(base_path('routes/api.php')); + }); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/artisan b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/artisan new file mode 100755 index 00000000..67a3329b --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/artisan @@ -0,0 +1,53 @@ +#!/usr/bin/env php +make(Illuminate\Contracts\Console\Kernel::class); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running, we will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/app.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/app.php new file mode 100644 index 00000000..b5280472 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + Illuminate\Foundation\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + Illuminate\Foundation\Exceptions\Handler::class +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/cache/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/cache/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.json b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.json new file mode 100644 index 00000000..fd26aa21 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.json @@ -0,0 +1,58 @@ +{ + "name": "dnj/backend-recruiment-challenges-1", + "type": "project", + "license": "MIT", + "require": { + "php": "^8.0.2", + "laravel/framework": "^9.19", + "laravel/sanctum": "^3.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.2", + "fakerphp/faker": "^1.9.1", + "phpunit/phpunit": "^9.5", + "mockery/mockery": "^1.4.4" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.lock b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.lock new file mode 100644 index 00000000..6c2e4885 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/composer.lock @@ -0,0 +1,7099 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "f1b4f383461903eb05f6e16ca6acf3c6", + "packages": [ + { + "name": "brick/math", + "version": "0.10.2", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/459f2781e1a08d52ee56b0b1444086e038561e3f", + "reference": "459f2781e1a08d52ee56b0b1444086e038561e3f", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "4.25.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "brick", + "math" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.10.2" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2022-08-10T22:54:19+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "f41715465d65213d644d3141a6a93081be5d3549" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/f41715465d65213d644d3141a6a93081be5d3549", + "reference": "f41715465d65213d644d3141a6a93081be5d3549", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.2" + }, + "time": "2022-10-27T11:44:00+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.6", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.0.6" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2022-10-20T09:10:12+00:00" + }, + { + "name": "doctrine/lexer", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9.0", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.11" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2022-02-28T11:07:21+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.3.2", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "782ca5968ab8b954773518e9e49a6f892a34b2a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/782ca5968ab8b954773518e9e49a6f892a34b2a8", + "reference": "782ca5968ab8b954773518e9e49a6f892a34b2a8", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "webmozart/assert": "^1.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-webmozart-assert": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.2" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2022-09-10T18:51:20+00:00" + }, + { + "name": "egulias/email-validator", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "f88dcf4b14af14a98ad96b14b2b317969eab6715" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/f88dcf4b14af14a98ad96b14b2b317969eab6715", + "reference": "f88dcf4b14af14a98ad96b14b2b317969eab6715", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^1.2", + "php": ">=7.2", + "symfony/polyfill-intl-idn": "^1.15" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^8.5.8|^9.3.3", + "vimeo/psalm": "^4" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/3.2.1" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2022-06-18T20:57:19+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "58571acbaa5f9f462c9c77e911700ac66f446d4e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/58571acbaa5f9f462c9c77e911700ac66f446d4e", + "reference": "58571acbaa5f9f462c9c77e911700ac66f446d4e", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "symfony/http-foundation": "^4.4|^5.4|^6" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.2.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2022-02-20T15:07:15+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/a878d45c1914464426dc94da61c9e1d36ae262a8", + "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.28 || ^9.5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2022-07-30T15:56:11+00:00" + }, + { + "name": "laravel/framework", + "version": "v9.42.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "607d7867c93706eae20e28e46679f8a66e2a23ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/607d7867c93706eae20e28e46679f8a66e2a23ec", + "reference": "607d7867c93706eae20e28e46679f8a66e2a23ec", + "shasum": "" + }, + "require": { + "doctrine/inflector": "^2.0", + "dragonmantank/cron-expression": "^3.3.2", + "egulias/email-validator": "^3.2.1", + "ext-mbstring": "*", + "ext-openssl": "*", + "fruitcake/php-cors": "^1.2", + "laravel/serializable-closure": "^1.2.2", + "league/commonmark": "^2.2", + "league/flysystem": "^3.8.0", + "monolog/monolog": "^2.0", + "nesbot/carbon": "^2.62.1", + "nunomaduro/termwind": "^1.13", + "php": "^8.0.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.2.2", + "symfony/console": "^6.0.9", + "symfony/error-handler": "^6.0", + "symfony/finder": "^6.0", + "symfony/http-foundation": "^6.0", + "symfony/http-kernel": "^6.0", + "symfony/mailer": "^6.0", + "symfony/mime": "^6.0", + "symfony/process": "^6.0", + "symfony/routing": "^6.0", + "symfony/uid": "^6.0", + "symfony/var-dumper": "^6.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.4.1", + "voku/portable-ascii": "^2.0" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.235.5", + "doctrine/dbal": "^2.13.3|^3.1.4", + "fakerphp/faker": "^1.9.2", + "guzzlehttp/guzzle": "^7.5", + "league/flysystem-aws-s3-v3": "^3.0", + "league/flysystem-ftp": "^3.0", + "league/flysystem-path-prefixing": "^3.3", + "league/flysystem-read-only": "^3.3", + "league/flysystem-sftp-v3": "^3.0", + "mockery/mockery": "^1.5.1", + "orchestra/testbench-core": "^7.11", + "pda/pheanstalk": "^4.0", + "phpstan/phpstan": "^1.4.7", + "phpunit/phpunit": "^9.5.8", + "predis/predis": "^1.1.9|^2.0.2", + "symfony/cache": "^6.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.235.5).", + "brianium/paratest": "Required to run tests in parallel (^6.0).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).", + "ext-bcmath": "Required to use the multiple_of validation rule.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "guzzlehttp/guzzle": "Required to use the HTTP Client and the ping methods on schedules (^7.5).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.0).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.0).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.3).", + "league/flysystem-read-only": "Required to use read-only disks (^3.3)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.0).", + "mockery/mockery": "Required to use mocking (^1.5.1).", + "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^9.5.8).", + "predis/predis": "Required to use the predis connector (^1.1.9|^2.0.2).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^6.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^6.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^6.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^6.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^6.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2022-11-30T16:23:52+00:00" + }, + { + "name": "laravel/sanctum", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/sanctum.git", + "reference": "b71e80a3a8e8029e2ec8c1aa814b999609ce16dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/b71e80a3a8e8029e2ec8c1aa814b999609ce16dc", + "reference": "b71e80a3a8e8029e2ec8c1aa814b999609ce16dc", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/console": "^9.21", + "illuminate/contracts": "^9.21", + "illuminate/database": "^9.21", + "illuminate/support": "^9.21", + "php": "^8.0.2" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "^7.0", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Sanctum\\SanctumServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sanctum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", + "keywords": [ + "auth", + "laravel", + "sanctum" + ], + "support": { + "issues": "https://github.com/laravel/sanctum/issues", + "source": "https://github.com/laravel/sanctum" + }, + "time": "2022-07-29T21:33:30+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v1.2.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "47afb7fae28ed29057fdca37e16a84f90cc62fae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/47afb7fae28ed29057fdca37e16a84f90cc62fae", + "reference": "47afb7fae28ed29057fdca37e16a84f90cc62fae", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "nesbot/carbon": "^2.61", + "pestphp/pest": "^1.21.3", + "phpstan/phpstan": "^1.8.2", + "symfony/var-dumper": "^5.4.11" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2022-09-08T13:45:54+00:00" + }, + { + "name": "league/commonmark", + "version": "2.3.7", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "a36bd2be4f5387c0f3a8792a0d76b7d68865abbf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/a36bd2be4f5387c0f3a8792a0d76b7d68865abbf", + "reference": "a36bd2be4f5387c0f3a8792a0d76b7d68865abbf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.30.0", + "commonmark/commonmark.js": "0.30.0", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.4-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2022-11-03T17:29:46+00:00" + }, + { + "name": "league/config", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e", + "reference": "a9d39eeeb6cc49d10a6e6c36f22c4c1f4a767f3e", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.90", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2021-08-14T12:15:32+00:00" + }, + { + "name": "league/flysystem", + "version": "3.10.4", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "a7790f3dd1b27af81d380e6b2afa77c16ab7e181" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a7790f3dd1b27af81d380e6b2afa77c16ab7e181", + "reference": "a7790f3dd1b27af81d380e6b2afa77c16ab7e181", + "shasum": "" + }, + "require": { + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5", + "async-aws/simple-s3": "^1.1", + "aws/aws-sdk-php": "^3.198.1", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "microsoft/azure-storage-blob": "^1.1", + "phpseclib/phpseclib": "^3.0.14", + "phpstan/phpstan": "^0.12.26", + "phpunit/phpunit": "^9.5.11", + "sabre/dav": "^4.3.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.10.4" + }, + "funding": [ + { + "url": "https://ecologi.com/frankdejonge", + "type": "custom" + }, + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2022-11-26T19:48:01+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.11.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2022-04-17T13:12:02+00:00" + }, + { + "name": "monolog/monolog", + "version": "2.8.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "720488632c590286b88b80e62aa3d3d551ad4a50" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/720488632c590286b88b80e62aa3d3d551ad4a50", + "reference": "720488632c590286b88b80e62aa3d3d551ad4a50", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2", + "guzzlehttp/guzzle": "^7.4", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "phpspec/prophecy": "^1.15", + "phpstan/phpstan": "^0.12.91", + "phpunit/phpunit": "^8.5.14", + "predis/predis": "^1.1 || ^2.0", + "rollbar/rollbar": "^1.3 || ^2 || ^3", + "ruflin/elastica": "^7", + "swiftmailer/swiftmailer": "^5.3|^6.0", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/2.8.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2022-07-24T11:55:47+00:00" + }, + { + "name": "nesbot/carbon", + "version": "2.63.0", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "ad35dd71a6a212b98e4b87e97389b6fa85f0e347" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/ad35dd71a6a212b98e4b87e97389b6fa85f0e347", + "reference": "ad35dd71a6a212b98e4b87e97389b6fa85f0e347", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.1.8 || ^8.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" + }, + "require-dev": { + "doctrine/dbal": "^2.0 || ^3.0", + "doctrine/orm": "^2.7", + "friendsofphp/php-cs-fixer": "^3.0", + "kylekatarnls/multi-tester": "^2.0", + "ondrejmirtes/better-reflection": "*", + "phpmd/phpmd": "^2.9", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12.99 || ^1.7.14", + "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6", + "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", + "squizlabs/php_codesniffer": "^3.4" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-3.x": "3.x-dev", + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/briannesbitt/Carbon/issues", + "source": "https://github.com/briannesbitt/Carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2022-10-30T18:34:28+00:00" + }, + { + "name": "nette/schema", + "version": "v1.2.3", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "abbdbb70e0245d5f3bf77874cea1dfb0c930d06f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/abbdbb70e0245d5f3bf77874cea1dfb0c930d06f", + "reference": "abbdbb70e0245d5f3bf77874cea1dfb0c930d06f", + "shasum": "" + }, + "require": { + "nette/utils": "^2.5.7 || ^3.1.5 || ^4.0", + "php": ">=7.1 <8.3" + }, + "require-dev": { + "nette/tester": "^2.3 || ^2.4", + "phpstan/phpstan-nette": "^1.0", + "tracy/tracy": "^2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.2.3" + }, + "time": "2022-10-13T01:24:26+00:00" + }, + { + "name": "nette/utils", + "version": "v3.2.8", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/02a54c4c872b99e4ec05c4aec54b5a06eb0f6368", + "reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368", + "shasum": "" + }, + "require": { + "php": ">=7.2 <8.3" + }, + "conflict": { + "nette/di": "<3.0.6" + }, + "require-dev": { + "nette/tester": "~2.0", + "phpstan/phpstan": "^1.0", + "tracy/tracy": "^2.3" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()", + "ext-xml": "to use Strings::length() etc. when mbstring is not available" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v3.2.8" + }, + "time": "2022-09-12T23:36:20+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v1.14.2", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/9a8218511eb1a0965629ff820dda25985440aefc", + "reference": "9a8218511eb1a0965629ff820dda25985440aefc", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.0", + "symfony/console": "^5.3.0|^6.0.0" + }, + "require-dev": { + "ergebnis/phpstan-rules": "^1.0.", + "illuminate/console": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "laravel/pint": "^1.0.0", + "pestphp/pest": "^1.21.0", + "pestphp/pest-plugin-mock": "^1.0", + "phpstan/phpstan": "^1.4.6", + "phpstan/phpstan-strict-rules": "^1.1.0", + "symfony/var-dumper": "^5.2.7|^6.0.0", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v1.14.2" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2022-10-28T22:51:32+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.0", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", + "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8", + "phpunit/phpunit": "^8.5.28 || ^9.5.21" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2022-07-30T15:51:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/log", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.0" + }, + "time": "2021-07-14T16:46:02+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "ramsey/collection", + "version": "1.2.2", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/cccc74ee5e328031b15640b51056ee8d3bb66c0a", + "reference": "cccc74ee5e328031b15640b51056ee8d3bb66c0a", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8", + "symfony/polyfill-php81": "^1.23" + }, + "require-dev": { + "captainhook/captainhook": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "ergebnis/composer-normalize": "^2.6", + "fakerphp/faker": "^1.5", + "hamcrest/hamcrest-php": "^2", + "jangregor/phpstan-prophecy": "^0.8", + "mockery/mockery": "^1.3", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1", + "phpstan/phpstan": "^0.12.32", + "phpstan/phpstan-mockery": "^0.12.5", + "phpstan/phpstan-phpunit": "^0.12.11", + "phpunit/phpunit": "^8.5 || ^9", + "psy/psysh": "^0.10.4", + "slevomat/coding-standard": "^6.3", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/1.2.2" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2021-10-10T03:01:02+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.6.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "ad63bc700e7d021039e30ce464eba384c4a1d40f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/ad63bc700e7d021039e30ce464eba384c4a1d40f", + "reference": "ad63bc700e7d021039e30ce464eba384c4a1d40f", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.6.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2022-11-05T23:03:38+00:00" + }, + { + "name": "symfony/console", + "version": "v6.1.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "a71863ea74f444d93c768deb3e314e1f750cf20d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/a71863ea74f444d93c768deb3e314e1f750cf20d", + "reference": "a71863ea74f444d93c768deb3e314e1f750cf20d", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.4|^6.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/lock": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/var-dumper": "^5.4|^6.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "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": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v6.1.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-25T18:59:16+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v6.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/0dd5e36b80e1de97f8f74ed7023ac2b837a36443", + "reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v6.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-06-27T17:24:16+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "reference": "07f1b9cc2ffee6aaafcf4b710fbc38ff736bd918", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-02-25T11:15:52+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "699a26ce5ec656c198bf6e26398b0f0818c7e504" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/699a26ce5ec656c198bf6e26398b0f0818c7e504", + "reference": "699a26ce5ec656c198bf6e26398b0f0818c7e504", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^5.4|^6.0" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/serializer": "^5.4|^6.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "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": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-28T16:23:08+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v6.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "reference": "a0449a7ad7daa0f7c0acd508259f80544ab5a347", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/event-dispatcher-contracts": "^2|^3" + }, + "conflict": { + "symfony/dependency-injection": "<5.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/error-handler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^5.4|^6.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "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": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v6.1.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-05T16:51:07+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/02ff5eea2f453731cfbc6bc215e456b781480448", + "reference": "02ff5eea2f453731cfbc6bc215e456b781480448", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-02-25T11:15:52+00:00" + }, + { + "name": "symfony/finder", + "version": "v6.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0" + }, + "type": "library", + "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": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v6.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-07-29T07:42:06+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v6.1.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "46b278fb1dae3e65ba30ead50f1c81fbd1c6a79e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/46b278fb1dae3e65ba30ead50f1c81fbd1c6a79e", + "reference": "46b278fb1dae3e65ba30ead50f1c81fbd1c6a79e", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.1" + }, + "require-dev": { + "predis/predis": "~1.0", + "symfony/cache": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4", + "symfony/mime": "^5.4|^6.0", + "symfony/rate-limiter": "^5.2|^6.0" + }, + "suggest": { + "symfony/mime": "To use the file extension guesser" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "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": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v6.1.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-07T08:07:30+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v6.1.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "6073eaed148f4c0b8d4ae33e7332b34327ef728e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/6073eaed148f4c0b8d4ae33e7332b34327ef728e", + "reference": "6073eaed148f4c0b8d4ae33e7332b34327ef728e", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/error-handler": "^6.1", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<5.4", + "symfony/cache": "<5.4", + "symfony/config": "<6.1", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<6.1", + "symfony/doctrine-bridge": "<5.4", + "symfony/form": "<5.4", + "symfony/http-client": "<5.4", + "symfony/mailer": "<5.4", + "symfony/messenger": "<5.4", + "symfony/translation": "<5.4", + "symfony/twig-bridge": "<5.4", + "symfony/validator": "<5.4", + "twig/twig": "<2.13" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^5.4|^6.0", + "symfony/config": "^6.1", + "symfony/console": "^5.4|^6.0", + "symfony/css-selector": "^5.4|^6.0", + "symfony/dependency-injection": "^6.1", + "symfony/dom-crawler": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/process": "^5.4|^6.0", + "symfony/routing": "^5.4|^6.0", + "symfony/stopwatch": "^5.4|^6.0", + "symfony/translation": "^5.4|^6.0", + "symfony/translation-contracts": "^1.1|^2|^3", + "symfony/uid": "^5.4|^6.0", + "twig/twig": "^2.13|^3.0.4" + }, + "suggest": { + "symfony/browser-kit": "", + "symfony/config": "", + "symfony/console": "", + "symfony/dependency-injection": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "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": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v6.1.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-28T18:20:59+00:00" + }, + { + "name": "symfony/mailer", + "version": "v6.1.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "42eb71e4bac099cff22fef1b8eae493eb4fd058f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/42eb71e4bac099cff22fef1b8eae493eb4fd058f", + "reference": "42eb71e4bac099cff22fef1b8eae493eb4fd058f", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3", + "php": ">=8.1", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^5.4|^6.0", + "symfony/mime": "^5.4|^6.0", + "symfony/service-contracts": "^1.1|^2|^3" + }, + "conflict": { + "symfony/http-kernel": "<5.4" + }, + "require-dev": { + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/messenger": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "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": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v6.1.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-04T07:40:42+00:00" + }, + { + "name": "symfony/mime", + "version": "v6.1.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "d02c3938a50fbc95cf8f364be1c011758270f30e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/d02c3938a50fbc95cf8f364be1c011758270f30e", + "reference": "d02c3938a50fbc95cf8f364be1c011758270f30e", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<5.4" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/property-access": "^5.4|^6.0", + "symfony/property-info": "^5.4|^6.0", + "symfony/serializer": "^5.2|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "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": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v6.1.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-28T12:27:40+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "639084e360537a19f9ee352433b84ce831f3d2da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/639084e360537a19f9ee352433b84ce831f3d2da", + "reference": "639084e360537a19f9ee352433b84ce831f3d2da", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "symfony/polyfill-intl-normalizer": "^1.10", + "symfony/polyfill-php72": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php81", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/707403074c8ea6e2edaf8794b0157a0bfa52157a", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "f3cf1a645c2734236ed1e2e671e273eeb3586166" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/f3cf1a645c2734236ed1e2e671e273eeb3586166", + "reference": "f3cf1a645c2734236ed1e2e671e273eeb3586166", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/process", + "version": "v6.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/a6506e99cfad7059b1ab5cab395854a0a0c21292", + "reference": "a6506e99cfad7059b1ab5cab395854a0a0c21292", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "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": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v6.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-06-27T17:24:16+00:00" + }, + { + "name": "symfony/routing", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "95effeb9d6e2cec861cee06bf5bbf82d09aea7f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/95effeb9d6e2cec861cee06bf5bbf82d09aea7f5", + "reference": "95effeb9d6e2cec861cee06bf5bbf82d09aea7f5", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "conflict": { + "doctrine/annotations": "<1.12", + "symfony/config": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/yaml": "<5.4" + }, + "require-dev": { + "doctrine/annotations": "^1.12", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^5.4|^6.0", + "symfony/http-foundation": "^5.4|^6.0", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "symfony/config": "For using the all-in-one router or any loader", + "symfony/expression-language": "For using expression matching", + "symfony/http-foundation": "For using a Symfony Request object", + "symfony/yaml": "For using the YAML loader" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "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": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-18T13:12:43+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-05-30T19:18:58+00:00" + }, + { + "name": "symfony/string", + "version": "v6.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "823f143370880efcbdfa2dbca946b3358c4707e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/823f143370880efcbdfa2dbca946b3358c4707e5", + "reference": "823f143370880efcbdfa2dbca946b3358c4707e5", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.0" + }, + "require-dev": { + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v6.1.7" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-10T09:34:31+00:00" + }, + { + "name": "symfony/translation", + "version": "v6.1.6", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "e6cd330e5a072518f88d65148f3f165541807494" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/e6cd330e5a072518f88d65148f3f165541807494", + "reference": "e6cd330e5a072518f88d65148f3f165541807494", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.3|^3.0" + }, + "conflict": { + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/http-kernel": "<5.4", + "symfony/twig-bundle": "<5.4", + "symfony/yaml": "<5.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2.0|^3.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^5.4|^6.0", + "symfony/service-contracts": "^1.1.2|^2|^3", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "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": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v6.1.6" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-07T08:04:03+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/606be0f48e05116baef052f7f3abdb345c8e02cc", + "reference": "606be0f48e05116baef052f7f3abdb345c8e02cc", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "suggest": { + "symfony/translation-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-06-27T17:24:16+00:00" + }, + { + "name": "symfony/uid", + "version": "v6.1.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "e03519f7b1ce1d3c0b74f751892bb41d549a2d98" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/e03519f7b1ce1d3c0b74f751892bb41d549a2d98", + "reference": "e03519f7b1ce1d3c0b74f751892bb41d549a2d98", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v6.1.5" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-09-09T09:34:27+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v6.1.6", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "0f0adde127f24548e23cbde83bcaeadc491c551f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/0f0adde127f24548e23cbde83bcaeadc491c551f", + "reference": "0f0adde127f24548e23cbde83bcaeadc491c551f", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.3", + "symfony/console": "<5.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^5.4|^6.0", + "symfony/process": "^5.4|^6.0", + "symfony/uid": "^5.4|^6.0", + "twig/twig": "^2.13|^3.0.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", + "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v6.1.6" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-10-07T08:04:03+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "2.2.5", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "4348a3a06651827a27d989ad1d13efec6bb49b19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/4348a3a06651827a27d989ad1d13efec6bb49b19", + "reference": "4348a3a06651827a27d989ad1d13efec6bb49b19", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^5.5 || ^7.0 || ^8.0", + "symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^7.5 || ^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/2.2.5" + }, + "time": "2022-09-12T13:28:28+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.5.0", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", + "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.0.2", + "php": "^7.1.3 || ^8.0", + "phpoption/phpoption": "^1.8", + "symfony/polyfill-ctype": "^1.23", + "symfony/polyfill-mbstring": "^1.23.1", + "symfony/polyfill-php80": "^1.23.1" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-filter": "*", + "phpunit/phpunit": "^7.5.20 || ^8.5.30 || ^9.5.25" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "5.5-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.5.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2022-10-16T01:01:54+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b56450eed252f6801410d810c8e1727224ae0743" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", + "reference": "b56450eed252f6801410d810c8e1727224ae0743", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2022-03-08T17:03:00+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-03-03T08:28:38+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.20.0", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/37f751c67a5372d4e26353bd9384bc03744ec77b", + "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "symfony/phpunit-bridge": "^4.4 || ^5.2" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "v1.20-dev" + } + }, + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.20.0" + }, + "time": "2022-07-20T13:12:54+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.5.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba", + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.9 || ^2.4", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "ext-curl": "*", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "7.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.5.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2022-08-28T15:39:27+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "b94b2807d85443f9719887892882d0329d1e2598" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", + "reference": "b94b2807d85443f9719887892882d0329d1e2598", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2022-08-28T14:55:35+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.4.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "67c26b443f348a51926030c83481b85718457d3d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/67c26b443f348a51926030c83481b85718457d3d", + "reference": "67c26b443f348a51926030c83481b85718457d3d", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.4.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2022-10-26T14:07:24+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "shasum": "" + }, + "require": { + "php": "^5.3|^7.0|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" + }, + "time": "2020-07-09T08:09:16+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "e92dcc83d5a51851baf5f5591d32cb2b16e3684e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/e92dcc83d5a51851baf5f5591d32cb2b16e3684e", + "reference": "e92dcc83d5a51851baf5f5591d32cb2b16e3684e", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": "^7.3 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Mockery": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "http://blog.astrumfutura.com" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "http://davedevelopment.co.uk" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "issues": "https://github.com/mockery/mockery/issues", + "source": "https://github.com/mockery/mockery/tree/1.5.1" + }, + "time": "2022-09-07T15:32:08+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2022-03-03T13:19:32+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.15.2", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.0" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2" + }, + "time": "2022-11-12T15:38:23+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "9.2.19", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c77b56b63e3d2031bd8997fcec43c1925ae46559", + "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.14", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcov": "*", + "ext-xdebug": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.19" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-11-18T07:47:47+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "3.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "9.5.26", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "851867efcbb6a1b992ec515c71cdcf20d895e9d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/851867efcbb6a1b992ec515c71cdcf20d895e9d2", + "reference": "851867efcbb6a1b992ec515c71cdcf20d895e9d2", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.5", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^3.2", + "sebastian/version": "^3.0.2" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.26" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2022-10-28T06:00:21+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, + "time": "2019-04-30T12:38:16+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" + }, + { + "name": "sebastian/comparator", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:41:17+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" + }, + { + "name": "sebastian/diff", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" + }, + { + "name": "sebastian/environment", + "version": "5.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-04-03T09:37:03+00:00" + }, + { + "name": "sebastian/exporter", + "version": "4.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T06:03:37+00:00" + }, + { + "name": "sebastian/global-state", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-14T08:28:10+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:45:17+00:00" + }, + { + "name": "sebastian/type", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-12T14:47:03+00:00" + }, + { + "name": "sebastian/version", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" + } + ], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": [], + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.0.2" + }, + "platform-dev": [], + "plugin-api-version": "2.2.0" +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/app.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/app.php new file mode 100644 index 00000000..f09da611 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/app.php @@ -0,0 +1,194 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + 'asset_url' => env('ASSET_URL'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Faker Locale + |-------------------------------------------------------------------------- + | + | This locale will be used by the Faker PHP library when generating fake + | data for your database seeds. For example, this will be used to get + | localized telephone numbers, street address information and more. + | + */ + + 'faker_locale' => 'fa_IR', + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is used by the Illuminate encrypter service and should be set + | to a random, 32 character string, otherwise these encrypted strings + | will not be safe. Please do this before deploying an application! + | + */ + + 'key' => env('APP_KEY'), + + 'cipher' => 'AES-256-CBC', + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => 'file', + // 'store' => 'redis', + ], + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => [ + + /* + * Laravel Framework Service Providers... + */ + Illuminate\Auth\AuthServiceProvider::class, + Illuminate\Broadcasting\BroadcastServiceProvider::class, + Illuminate\Bus\BusServiceProvider::class, + Illuminate\Cache\CacheServiceProvider::class, + Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, + Illuminate\Cookie\CookieServiceProvider::class, + Illuminate\Database\DatabaseServiceProvider::class, + Illuminate\Encryption\EncryptionServiceProvider::class, + Illuminate\Filesystem\FilesystemServiceProvider::class, + Illuminate\Foundation\Providers\FoundationServiceProvider::class, + Illuminate\Hashing\HashServiceProvider::class, + Illuminate\Mail\MailServiceProvider::class, + Illuminate\Notifications\NotificationServiceProvider::class, + Illuminate\Pagination\PaginationServiceProvider::class, + Illuminate\Pipeline\PipelineServiceProvider::class, + Illuminate\Queue\QueueServiceProvider::class, + Illuminate\Redis\RedisServiceProvider::class, + Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, + Illuminate\Session\SessionServiceProvider::class, + Illuminate\Translation\TranslationServiceProvider::class, + Illuminate\Validation\ValidationServiceProvider::class, + Illuminate\View\ViewServiceProvider::class, + + /* + * Application Service Providers... + */ + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + App\Providers\RouteServiceProvider::class, + + ], + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/auth.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/auth.php new file mode 100644 index 00000000..901cac8d --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/auth.php @@ -0,0 +1,35 @@ + [ + 'guard' => 'web', + 'passwords' => 'users', + ], + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\Models\User::class, + ], + ], + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_resets', + 'expire' => 60, + 'throttle' => 60, + ], + ], + + 'password_timeout' => 10800, + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/broadcasting.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/broadcasting.php new file mode 100644 index 00000000..df2f30cc --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/broadcasting.php @@ -0,0 +1,11 @@ + env('BROADCAST_DRIVER', 'null'), + 'connections' => [ + 'null' => [ + 'driver' => 'null', + ], + + ], +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cache.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cache.php new file mode 100644 index 00000000..9241f79d --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cache.php @@ -0,0 +1,21 @@ + env('CACHE_DRIVER', 'array'), + + 'stores' => [ + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + ], + ], + + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cors.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cors.php new file mode 100644 index 00000000..caa2e97b --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/cors.php @@ -0,0 +1,21 @@ + ['api/*', 'sanctum/csrf-cookie'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => ['*'], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/database.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/database.php new file mode 100644 index 00000000..cb9b6b30 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/database.php @@ -0,0 +1,42 @@ + env('DB_CONNECTION', 'mysql'), + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DATABASE_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + ], + + 'migrations' => 'migrations', +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/filesystems.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/filesystems.php new file mode 100644 index 00000000..f9478a39 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/filesystems.php @@ -0,0 +1,29 @@ + env('FILESYSTEM_DISK', 'local'), + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + 'throw' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + 'throw' => false, + ], + + ], + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/hashing.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/hashing.php new file mode 100644 index 00000000..96d5b5a5 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/hashing.php @@ -0,0 +1,11 @@ + 'bcrypt', + + 'bcrypt' => [ + 'rounds' => env('BCRYPT_ROUNDS', 10), + ], + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/logging.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/logging.php new file mode 100644 index 00000000..78e3b469 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/logging.php @@ -0,0 +1,86 @@ + env('LOG_CHANNEL', 'stack'), + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => false, + ], + + + 'channels' => [ + 'stack' => [ + 'driver' => 'stack', + 'channels' => ['single'], + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => 14, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => 'Laravel Log', + 'emoji' => ':boom:', + 'level' => env('LOG_LEVEL', 'critical'), + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + ], + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/mail.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/mail.php new file mode 100644 index 00000000..fa7afa5c --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/mail.php @@ -0,0 +1,29 @@ + env('MAIL_MAILER', 'log'), + + 'mailers' => [ + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + ], + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/queue.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/queue.php new file mode 100644 index 00000000..8966d25a --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/queue.php @@ -0,0 +1,17 @@ + env('QUEUE_CONNECTION', 'sync'), + 'connections' => [ + 'sync' => [ + 'driver' => 'sync', + ] + ], + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/sanctum.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/sanctum.php new file mode 100644 index 00000000..9f49342d --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/sanctum.php @@ -0,0 +1,14 @@ + explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( + '%s%s', + 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', + Sanctum::currentApplicationUrlWithPort() + ))), + 'guard' => ['web'], + 'expiration' => null, + 'middleware' => [], +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/services.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/services.php new file mode 100644 index 00000000..b6251283 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/services.php @@ -0,0 +1,4 @@ + env('SESSION_DRIVER', 'array'), + 'lifetime' => env('SESSION_LIFETIME', 120), + 'expire_on_close' => false, + 'encrypt' => false, + 'files' => storage_path('framework/sessions'), + 'connection' => env('SESSION_CONNECTION'), + 'table' => 'sessions', + 'store' => env('SESSION_STORE'), + 'lottery' => [2, 100], + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + 'path' => '/', + 'domain' => env('SESSION_DOMAIN'), + 'secure' => env('SESSION_SECURE_COOKIE'), + 'http_only' => true, + 'same_site' => 'lax', +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/view.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/view.php new file mode 100644 index 00000000..440a476a --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/config/view.php @@ -0,0 +1,12 @@ + [ + resource_path('views'), + ], + 'compiled' => env( + 'VIEW_COMPILED_PATH', + realpath(storage_path('framework/views')) + ), + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/.gitignore new file mode 100644 index 00000000..9b19b93c --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/DriverFactory.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/DriverFactory.php new file mode 100644 index 00000000..94874f89 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/DriverFactory.php @@ -0,0 +1,50 @@ + + */ +class DriverFactory extends Factory +{ + + protected $model = Driver::class; + + /** + * @return array + */ + public function definition(): array + { + return [ + 'id' => User::factory(), + 'car_model' => fake()->words(2, true), + 'car_plate' => fake()->randomDigitNot(0) . fake()->randomDigitNot(0) . fake()->randomLetter() . fake()->randomDigitNot(0) . fake()->randomDigitNot(0) . fake()->randomDigitNot(0) . fake()->randomDigitNot(0) . fake()->randomDigitNot(0), + 'latitude' => fake()->randomFloat(5, 32.64517, 32.65077), + 'longitude' => fake()->randomFloat(5, 51.66532, 51.670368), + 'status' => fake()->randomElement([DriverStatus::WORKING, DriverStatus::NOT_WORKING]), + ]; + } + + public function notWorking(): static + { + return $this->state(function () { + return [ + 'status' => DriverStatus::NOT_WORKING, + ]; + }); + } + + public function working(): static + { + return $this->state(function () { + return [ + 'status' => DriverStatus::WORKING, + ]; + }); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelEventFactory.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelEventFactory.php new file mode 100644 index 00000000..6dd6a7fd --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelEventFactory.php @@ -0,0 +1,61 @@ + + */ +class TravelEventFactory extends Factory +{ + + protected $model = TravelEvent::class; + + /** + * @return array + */ + public function definition(): array + { + return [ + 'travel_id' => Travel::factory(), + 'type' => fake()->randomElement([ + TravelEventType::ACCEPT_BY_DRIVER, + TravelEventType::PASSENGER_ONBOARD, + TravelEventType::CANCEL, + TravelEventType::DONE, + ]), + ]; + } + + public function acceptByDriver(): static + { + return $this->state(fn() => [ + 'type' => TravelEventType::ACCEPT_BY_DRIVER, + ]); + } + + public function passengerOnBoard(): static + { + return $this->state(fn() => [ + 'type' => TravelEventType::PASSENGER_ONBOARD, + ]); + } + + public function cancel(): static + { + return $this->state(fn() => [ + 'type' => TravelEventType::CANCEL, + ]); + } + + public function done(): static + { + return $this->state(fn() => [ + 'type' => TravelEventType::DONE, + ]); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelFactory.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelFactory.php new file mode 100644 index 00000000..3dc43033 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelFactory.php @@ -0,0 +1,71 @@ + + */ +class TravelFactory extends Factory +{ + + protected $model = Travel::class; + + /** + * @return array + */ + public function definition(): array + { + return [ + 'passenger_id' => User::factory(), + 'driver_id' => Driver::factory(), + 'status' => fake()->randomElement([TravelStatus::DONE, TravelStatus::RUNNING, TravelStatus::CANCELLED]), + ]; + } + + public function withPassenger(User $user) { + return $this->state(fn () => [ + 'passenger_id' => $user, + ]); + } + + public function withDriver(Driver $driver) { + return $this->state(fn () => [ + 'driver_id' => $driver, + ]); + } + + public function searchingForDriver(): static + { + return $this->state(fn() => [ + 'driver_id' => null, + 'status' => TravelStatus::SEARCHING_FOR_DRIVER, + ]); + } + + public function done(): static + { + return $this->state(fn () => [ + 'status' => TravelStatus::DONE, + ]); + } + + public function running(): static + { + return $this->state(fn () => [ + 'status' => TravelStatus::RUNNING, + ]); + } + + public function cancelled(): static + { + return $this->state(fn () => [ + 'status' => TravelStatus::CANCELLED, + ]); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelSpotFactory.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelSpotFactory.php new file mode 100644 index 00000000..16b5dc72 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/TravelSpotFactory.php @@ -0,0 +1,51 @@ + + */ +class TravelSpotFactory extends Factory +{ + + protected $model = TravelSpot::class; + + /** + * @return array + */ + public function definition(): array + { + return [ + 'travel_id' => Travel::factory(), + 'position' => function (array $attributes) { + $spots = TravelSpot::query()->where("travel_id", $attributes['travel_id'])->count(); + + return $spots + 1; + }, + 'latitude' => fake()->randomFloat(5, 32.64517, 32.65077), + 'longitude' => fake()->randomFloat(5, 51.66532, 51.670368), + 'arrived_at' => null, + ]; + } + + public function arrived(): static + { + return $this->state(fn() => [ + 'arrived_at' => fake()->dateTime(), + ]); + } + + public function withPosition(int $position) { + return $this->state(fn () => [ + 'position' => $position, + ]); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/UserFactory.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/UserFactory.php new file mode 100644 index 00000000..b52e2c4c --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/factories/UserFactory.php @@ -0,0 +1,26 @@ + + */ +class UserFactory extends Factory +{ + /** + * @return array + */ + public function definition(): array + { + return [ + 'name' => fake()->name(), + 'lastname' => fake()->lastName(), + 'cellphone' => fake()->unique()->phoneNumber(), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', + 'remember_token' => Str::random(10), + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_000000_create_users_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_000000_create_users_table.php new file mode 100644 index 00000000..891c430c --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,26 @@ +id(); + $table->string('name'); + $table->string('lastname'); + $table->string('cellphone')->unique(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + }); + } + + public function down() + { + Schema::dropIfExists('users'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_100000_create_password_resets_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_100000_create_password_resets_table.php new file mode 100644 index 00000000..5ee2f63a --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -0,0 +1,32 @@ +string('cellphone')->index(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('password_resets'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_08_19_000000_create_failed_jobs_table.php new file mode 100644 index 00000000..17191986 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php new file mode 100644 index 00000000..6c81fd22 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -0,0 +1,37 @@ +id(); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique(); + $table->text('abilities')->nullable(); + $table->timestamp('last_used_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('personal_access_tokens'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_090148_create_drivers_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_090148_create_drivers_table.php new file mode 100644 index 00000000..df1d807b --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_090148_create_drivers_table.php @@ -0,0 +1,33 @@ +foreignId("id") + ->primary() + ->constrained("users") + ->onDelete("CASCADE"); + $table->string("car_model"); + $table->string("car_plate", 8); + $table->double("latitude")->nullable(); + $table->double("longitude")->nullable(); + $table->enum("status", [ + DriverStatus::WORKING->value, + DriverStatus::NOT_WORKING->value + ]); + $table->timestamps(); + }); + } + + public function down() + { + Schema::dropIfExists('drivers'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_091744_create_travels_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_091744_create_travels_table.php new file mode 100644 index 00000000..10c08ad2 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_091744_create_travels_table.php @@ -0,0 +1,38 @@ +id(); + $table->foreignId("passenger_id") + ->constrained("users"); + $table->foreignId("driver_id") + ->nullable() + ->constrained("drivers"); + $table->timestamps(); + $table->enum("status", [ + TravelStatus::SEARCHING_FOR_DRIVER->value, + TravelStatus::RUNNING->value, + TravelStatus::DONE->value, + TravelStatus::CANCELLED->value, + ]); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('travels'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100550_create_travels_events_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100550_create_travels_events_table.php new file mode 100644 index 00000000..09a028cb --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100550_create_travels_events_table.php @@ -0,0 +1,31 @@ +id(); + $table->foreignId("travel_id") + ->constrained("travels") + ->onDelete("CASCADE"); + $table->enum("type", [ + TravelEventType::ACCEPT_BY_DRIVER->value, + TravelEventType::PASSENGER_ONBOARD->value, + TravelEventType::DONE->value, + TravelEventType::CANCEL->value, + ]); + $table->timestamp('created_at')->nullable(); + }); + } + + public function down() + { + Schema::dropIfExists('travels_events'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100749_create_travels_spots_table.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100749_create_travels_spots_table.php new file mode 100644 index 00000000..a696b5d9 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/migrations/2022_11_27_100749_create_travels_spots_table.php @@ -0,0 +1,28 @@ +id(); + $table->foreignId("travel_id") + ->constrained("travels") + ->onDelete("CASCADE"); + $table->unsignedTinyInteger("position"); + $table->double("latitude"); + $table->double("longitude"); + $table->timestamp("arrived_at")->nullable(); + $table->timestamps(); + }); + } + + public function down() + { + Schema::dropIfExists('travels_spots'); + } +}; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php new file mode 100644 index 00000000..76d96dc7 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php @@ -0,0 +1,24 @@ +create(); + + // \App\Models\User::factory()->create([ + // 'name' => 'Test User', + // 'email' => 'test@example.com', + // ]); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/auth.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/auth.php new file mode 100644 index 00000000..6598e2c0 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/auth.php @@ -0,0 +1,20 @@ + 'These credentials do not match our records.', + 'password' => 'The provided password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/pagination.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/pagination.php new file mode 100644 index 00000000..d4814118 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/pagination.php @@ -0,0 +1,19 @@ + '« Previous', + 'next' => 'Next »', + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/passwords.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/passwords.php new file mode 100644 index 00000000..2345a56b --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/passwords.php @@ -0,0 +1,22 @@ + 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => "We can't find a user with that email address.", + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/validation.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/validation.php new file mode 100644 index 00000000..f3d8cc5f --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/lang/en/validation.php @@ -0,0 +1,176 @@ + 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute must only contain letters.', + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute must only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'current_password' => 'The password is incorrect.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'enum' => 'The selected :attribute is invalid.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', + ], + 'gte' => [ + 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', + ], + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', + ], + 'lte' => [ + 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'The :attribute field must be present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid timezone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'The :attribute must be a valid URL.', + 'uuid' => 'The :attribute must be a valid UUID.', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap our attribute placeholder + | with something more reader friendly such as "E-Mail Address" instead + | of "email". This simply helps us make our message more expressive. + | + */ + + 'attributes' => [], + +]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/phpunit.xml b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/phpunit.xml new file mode 100644 index 00000000..7babd33f --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/phpunit.xml @@ -0,0 +1,35 @@ + + + + + ./tests/Unit + + + ./tests/Feature + + + + + ./app + + + + + + + + + + + + + + + + + + diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/.htaccess b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/.htaccess new file mode 100644 index 00000000..3aec5e27 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/favicon.ico b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/favicon.ico new file mode 100644 index 00000000..e69de29b diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/index.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/index.php new file mode 100644 index 00000000..1d69f3a2 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/robots.txt b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/robots.txt new file mode 100644 index 00000000..eb053628 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/routes/api.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/routes/api.php new file mode 100644 index 00000000..16729f32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/routes/api.php @@ -0,0 +1,31 @@ +group(function(Router $router) { + $router->get("/user", [AuthController::class, "user"]); + + $router->post("/travels", [TravelController::class, "store"]); + $router->get("/travels/{travel}", [TravelController::class, "view"]); + $router->post("/travels/{travel}/take", [TravelController::class, "take"]); + $router->post("/travels/{travel}/cancel", [TravelController::class, "cancel"]); + $router->post("/travels/{travel}/passenger-on-board", [TravelController::class, "passengerOnBoard"]); + $router->post("/travels/{travel}/done", [TravelController::class, "done"]); + + $router->post("/travels/{travel}/spots", [TravelSpotController::class, "store"]); + $router->get("/travels/{travel}/spots/{spot}", [TravelSpotController::class, "view"]); + $router->delete("/travels/{travel}/spots/{spot}", [TravelSpotController::class, "destroy"]); + $router->post("/travels/{travel}/spots/{spot}/arrived", [TravelSpotController::class, "arrived"]); + + $router->get("/driver", [DriverController::class, "view"]); + $router->post("/driver", [DriverController::class, "signup"]); + $router->put("/driver", [DriverController::class, "update"]); +}); diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/.gitignore new file mode 100644 index 00000000..8f4803c0 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/.gitignore @@ -0,0 +1,3 @@ +* +!public/ +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/public/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/public/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/.gitignore new file mode 100644 index 00000000..05c4471f --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/.gitignore new file mode 100644 index 00000000..01e4a6cd --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/data/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/data/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/sessions/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/sessions/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/testing/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/testing/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/views/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/views/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/logs/.gitignore b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/logs/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/CreatesApplication.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/CreatesApplication.php new file mode 100644 index 00000000..547152f6 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/CreatesApplication.php @@ -0,0 +1,22 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/AuthControllerTest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/AuthControllerTest.php new file mode 100644 index 00000000..677133b3 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/AuthControllerTest.php @@ -0,0 +1,57 @@ +postJson('/api/register', array( + 'cellphone' => '09123456789', + 'name' => 'علی', + 'lastname' => 'اکبری', + 'password' => '123456' + )); + + $response + ->assertStatus(200) + ->assertJson(function (AssertableJson $json) { + $json->where("user.cellphone", "09123456789"); + $json->where("user.name", "علی"); + $json->where("user.lastname", "اکبری"); + $json->missing('user.password'); + }); + + $response = $this->postJson('/api/register', array( + 'cellphone' => '009123456789', + 'password' => '12345' + )) + ->assertStatus(422) + ->assertJson(fn (AssertableJson $json) => + $json->hasAll(["errors.cellphone", "errors.name","errors.lastname", "errors.password"])->etc() + ); + } + + public function testUser(): void { + $user = User::factory()->create(); + Sanctum::actingAs($user); + + $this->getJson("/api/user") + ->assertStatus(200) + ->assertJson(function (AssertableJson $json) use ($user) { + $json->where("user.cellphone", $user->cellphone); + $json->where("user.name", $user->name); + $json->where("user.lastname", $user->lastname); + $json->missing('user.password'); + }); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/Concerns/TestingTravel.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/Concerns/TestingTravel.php new file mode 100644 index 00000000..2b9f5428 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/Concerns/TestingTravel.php @@ -0,0 +1,43 @@ +withPosition(0); + if ($arrivedOrigin) { + $origin = $origin->arrived(); + } + + $dest = TravelSpot::factory()->withPosition(1); + if ($arrivedDestination) { + $dest = $dest->arrived(); + } + return Travel::factory() + ->withPassenger($passenger) + ->withDriver($driver) + ->running() + ->has($origin, 'spots') + ->has($dest, 'spots') + ->has(TravelEvent::factory()->acceptByDriver(), 'events'); + } + + /** + * @return [User,Driver] + */ + protected function createPassengerDriver(): array + { + $passenger = User::factory()->create(); + $driver = Driver::factory()->create(); + + return [$passenger, $driver]; + } +} \ No newline at end of file diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/DriverControllerTest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/DriverControllerTest.php new file mode 100644 index 00000000..7e72559a --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/DriverControllerTest.php @@ -0,0 +1,77 @@ +create(); + Sanctum::actingAs($user); + + $plate = '22س55555'; + $model = 'سمند تاکسی'; + $this->postJson('/api/driver', array( + 'car_plate' => $plate, + 'car_model' => $model, + )) + ->assertStatus(200) + ->assertJson(function (AssertableJson $json) use ($plate, $model) { + $json->where("driver.car_plate", $plate); + $json->where("driver.car_model", $model); + $json->where("driver.status", DriverStatus::NOT_WORKING->value); + }); + + $this->postJson('/api/driver', array( + 'car_plate' => $plate, + 'car_model' => $model, + )) + ->assertStatus(400) + ->assertJson(array( + "code" => "AlreadyDriver" + )); + } + + public function testUpdate(): void + { + Travel::factory(3)->create(); + $pendingTravels = Travel::factory(2)->searchingForDriver()->create(); + + $driver = Driver::factory()->create(); + Sanctum::actingAs($driver->user); + + $driverData = array( + 'latitude' => 32.7088770, + 'longitude' => 51.6607175, + 'status' => DriverStatus::WORKING->value, + ); + + $response = $this->putJson('/api/driver', $driverData) + ->assertStatus(200) + ->assertJson(array( + 'driver' => $driverData + )) + ->assertJson(function (AssertableJson $json) { + $json->has("travels", 2); + $json->hasAll(["travels.0.id", "travels.0.spots", "travels.1.id", "travels.1.spots"]); + $json->etc(); + }); + + foreach ($response['travels'] as $travel) { + $this->assertTrue($pendingTravels->pluck("id")->contains($travel['id'])); + } + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php new file mode 100644 index 00000000..b43c248e --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php @@ -0,0 +1,358 @@ + 0, + 'latitude' => 32.70946862, + 'longitude' => 51.66043121, + ), + array( + 'position' => 1, + 'latitude' => 32.67596261, + 'longitude' => 51.65045944, + ), + ]; + + use RefreshDatabase, TestingTravel; + + public function testStore(): void + { + $passenger = User::factory()->create(); + Sanctum::actingAs($passenger); + + + $this->postJson('/api/travels', array( + 'spots' => self::TWO_SPOTS, + )) + ->assertStatus(201) + ->assertJson(array( + 'travel' => array( + 'spots' => self::TWO_SPOTS, + 'passenger_id' => $passenger->id, + 'status' => TravelStatus::SEARCHING_FOR_DRIVER->value, + ) + )); + } + + public function testStoreWithBadPositions(): void + { + $passenger = User::factory()->create(); + Sanctum::actingAs($passenger); + + + $this->postJson('/api/travels', array( + 'spots' => array( + array( + 'position' => 1, + 'latitude' => 32.70946862, + 'longitude' => 51.66043121, + ), + array( + 'position' => 2, + 'latitude' => 32.67596261, + 'longitude' => 51.65045944, + ) + ), + )) + ->assertStatus(422) + ->assertJson(fn (AssertableJson $json) => $json->has("errors.spots")->etc()); + } + + public function testStoreWhenHaveActiveTravel() + { + $user = User::factory()->create(); + Travel::factory() + ->withPassenger($user) + ->running() + ->create(); + + Sanctum::actingAs($user); + $this->postJson('/api/travels', ['spots' => self::TWO_SPOTS]) + ->assertStatus(400) + ->assertJson(array( + "code" => "ActiveTravel" + )); + } + + public function testCancelSearchingForDriverAsPassenger() + { + $passenger = User::factory()->create(); + $travel = Travel::factory() + ->withPassenger($passenger) + ->searchingForDriver() + ->create(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/cancel") + ->assertStatus(200) + ->assertJson(function (AssertableJson $json) { + $json->where("travel.status", TravelStatus::CANCELLED->value); + $json->etc(); + }); + } + + public function testCancelFinishedTravel() + { + $passenger = User::factory()->create(); + Sanctum::actingAs($passenger); + + $travel = Travel::factory() + ->withPassenger($passenger) + ->cancelled() + ->create(); + + $this->postJson("/api/travels/{$travel->id}/cancel") + ->assertStatus(400) + ->assertJson(array( + "code" => "CannotCancelFinishedTravel" + )); + + $travel = Travel::factory() + ->withPassenger($passenger) + ->done() + ->create(); + + $this->postJson("/api/travels/{$travel->id}/cancel") + ->assertStatus(400) + ->assertJson(array( + "code" => "CannotCancelFinishedTravel" + )); + } + + public function testCancelOnboardPassenger() + { + [$passenger, $driver] = $this->createPassengerDriver(); + + $travel = $this->runningTravel($passenger, $driver) + ->has(TravelEvent::factory()->passengerOnBoard(), 'events') + ->create(); + + foreach ([$passenger, $driver->user] as $user) { + Sanctum::actingAs($user); + $this->postJson("/api/travels/{$travel->id}/cancel") + ->assertStatus(400) + ->assertJson(array( + "code" => "CannotCancelRunningTravel" + )); + } + } + + public function testCancelArrivedCar() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver)->create(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/cancel") + ->assertStatus(400) + ->assertJson(array( + "code" => "CannotCancelRunningTravel" + )); + + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/cancel") + ->assertStatus(200) + ->assertJson(array( + "travel" => array( + 'status' => TravelStatus::CANCELLED->value + ) + )); + } + + public function testView() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver)->create(); + + foreach ([$passenger, $driver->user] as $user) { + Sanctum::actingAs($user); + $this->getJson("/api/travels/{$travel->id}") + ->assertStatus(200) + ->assertJson(array( + "travel" => array( + 'id' => $travel->id + ) + )); + } + } + + public function testPassengerOnBoard() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver)->create(); + + Sanctum::actingAs($driver->user); + $response = $this->postJson("/api/travels/{$travel->id}/passenger-on-board")->assertStatus(200); + + $found = false; + foreach ($response['travel']['events'] as $e) { + if ($e['type'] == TravelEventType::PASSENGER_ONBOARD->value) { + $found = true; + break; + } + } + $this->assertTrue($found); + + $this->postJson("/api/travels/{$travel->id}/passenger-on-board") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'InvalidTravelStatusForThisAction' + )); + } + + public function testPassengerOnBoardAsPassenger() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver)->create(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/passenger-on-board")->assertStatus(403); + } + + public function testPassengerOnBoardWhenCarIsNotArrived() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->create(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/passenger-on-board") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'CarDoesNotArrivedAtOrigin' + )); + } + + public function testPassengerOnBoardFinishedTravel() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver)->done()->create(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/passenger-on-board") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'InvalidTravelStatusForThisAction' + )); + } + + public function testDone() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, true, true) + ->has(TravelEvent::factory()->passengerOnBoard(), 'events') + ->create(); + + Sanctum::actingAs($driver->user); + $response = $this->postJson("/api/travels/{$travel->id}/done") + ->assertStatus(200) + ->assertJson(array( + "travel" => array( + "status" => TravelStatus::DONE->value, + ) + )); + + $found = false; + foreach ($response['travel']['events'] as $e) { + if ($e['type'] == TravelEventType::DONE->value) { + $found = true; + break; + } + } + $this->assertTrue($found); + + $this->postJson("/api/travels/{$travel->id}/done") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'InvalidTravelStatusForThisAction' + )); + } + + public function testDoneAsPassenger() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, true, true)->create(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/done")->assertStatus(403); + } + + public function testDoneWhenSpotsSkipped() + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, true, false)->create(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/done") + ->assertStatus(400) + ->assertJson(array( + "code" => 'AllSpotsDidNotPass' + )); + } + + public function testTake() + { + $driver = Driver::factory()->create(); + $travel = Travel::factory()->searchingForDriver()->create(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/take") + ->assertStatus(200) + ->assertJson(array( + "travel" => array( + 'id' => $travel->id, + 'driver_id' => $driver->id, + 'status' => TravelStatus::SEARCHING_FOR_DRIVER->value, + ) + )); + } + + public function testTakeCancelledTravel() + { + $driver = Driver::factory()->create(); + $travel = Travel::factory()->cancelled()->create(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/take") + ->assertStatus(400) + ->assertJson(array( + "code" => 'InvalidTravelStatusForThisAction' + )); + } + + public function testTakeWithActiveTravel() + { + $driver = Driver::factory()->create(); + Travel::factory() + ->withDriver($driver) + ->running() + ->create(); + + $travel = Travel::factory()->searchingForDriver()->create(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/take") + ->assertStatus(400) + ->assertJson(array( + "code" => 'ActiveTravel' + )); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelSpotControllerTest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelSpotControllerTest.php new file mode 100644 index 00000000..b4f81430 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelSpotControllerTest.php @@ -0,0 +1,261 @@ +createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->create(); + + $origin = $travel->getOriginSpot(); + Sanctum::actingAs($driver->user); + $response = $this->postJson("/api/travels/{$travel->id}/spots/{$origin->id}/arrived") + ->assertStatus(200); + + $found = false; + foreach ($response['travel']['spots'] as $spot) { + if ($spot['position'] == 0 and $spot['arrived_at']) { + $found = true; + break; + } + } + $this->assertTrue($found); + + Sanctum::actingAs($passenger); + $response = $this->postJson("/api/travels/{$travel->id}/spots/{$origin->id}/arrived") + ->assertStatus(403); + } + + public function testArrivedAsPassenger(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->create(); + $origin = $travel->getOriginSpot(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/spots/{$origin->id}/arrived") + ->assertStatus(403); + } + + public function testArrivedNotRunningTravel(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->cancelled()->create(); + $origin = $travel->getOriginSpot(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/spots/{$origin->id}/arrived") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'InvalidTravelStatusForThisAction' + )); + } + + public function testArrivedWhenAlreadyArrived(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, true)->create(); + $origin = $travel->getOriginSpot(); + + Sanctum::actingAs($driver->user); + $this->postJson("/api/travels/{$travel->id}/spots/{$origin->id}/arrived") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'SpotAlreadyPassed' + )); + } + + public function testStore(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->create(); + + Sanctum::actingAs($passenger); + $latitude = fake()->randomFloat(5, 32.64517, 32.65077); + $longitude = fake()->randomFloat(5, 51.66532, 51.670368); + $response = $this->postJson("/api/travels/{$travel->id}/spots", array( + 'latitude' => $latitude, + 'longitude' => $longitude, + 'position' => 1, + )) + ->assertStatus(200); + + foreach ($response['travel']['spots'] as $spot) { + if ($spot['position'] == 1) { + $this->assertSame($latitude, $spot['latitude']); + $this->assertSame($longitude, $spot['longitude']); + break; + } + } + + $this->assertPositionsInRange(3, $response['travel']['spots']); + } + + public function testStoreAsDriver(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->create(); + + Sanctum::actingAs($driver->user); + $latitude = fake()->randomFloat(5, 32.64517, 32.65077); + $longitude = fake()->randomFloat(5, 51.66532, 51.670368); + $this->postJson("/api/travels/{$travel->id}/spots", array( + 'latitude' => $latitude, + 'longitude' => $longitude, + 'position' => 1, + )) + ->assertStatus(403); + } + + public function testStoreOutOfRange(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->create(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/spots", array( + 'latitude' => fake()->randomFloat(5, 32.64517, 32.65077), + 'longitude' => fake()->randomFloat(5, 51.66532, 51.670368), + 'position' => 3, + )) + ->assertStatus(422) + ->assertJson(fn(AssertableJson $json) => $json->has("errors.position")->etc()); + } + + public function testStoreArrived(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, true, true)->create(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/spots", array( + 'latitude' => fake()->randomFloat(5, 32.64517, 32.65077), + 'longitude' => fake()->randomFloat(5, 51.66532, 51.670368), + 'position' => 1, + )) + ->assertStatus(400) + ->assertJson(array( + 'code' => 'SpotAlreadyPassed' + )); + } + + public function testStoreNotRunningTravel(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->cancelled()->create(); + + Sanctum::actingAs($passenger); + $this->postJson("/api/travels/{$travel->id}/spots", array( + 'latitude' => fake()->randomFloat(5, 32.64517, 32.65077), + 'longitude' => fake()->randomFloat(5, 51.66532, 51.670368), + 'position' => 1, + )) + ->assertStatus(400) + ->assertJson(array( + 'code' => 'InvalidTravelStatusForThisAction' + )); + } + + public function testDestroy(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver) + ->has(TravelSpot::factory()->withPosition(2), 'spots') + ->create(); + $middleSpot = $travel->spots()->where("position", 1)->firstOrFail(); + + Sanctum::actingAs($passenger); + $response = $this->deleteJson("/api/travels/{$travel->id}/spots/{$middleSpot->id}") + ->assertStatus(200); + $this->assertPositionsInRange(2, $response['travel']['spots']); + } + + public function testDestroyNotRunningTravel(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver) + ->cancelled() + ->create(); + $spot = $travel->spots()->where("position", 1)->firstOrFail(); + + Sanctum::actingAs($passenger); + $this->deleteJson("/api/travels/{$travel->id}/spots/{$spot->id}") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'InvalidTravelStatusForThisAction' + )); + } + + public function testDestroyAsDriver(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver)->create(); + $spot = $travel->spots()->where("position", 1)->firstOrFail(); + + Sanctum::actingAs($driver->user); + $this->deleteJson("/api/travels/{$travel->id}/spots/{$spot->id}") + ->assertStatus(403); + } + + public function testDestroyArrived(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, true, true)->create(); + $spot = $travel->spots()->where("position", 1)->firstOrFail(); + + Sanctum::actingAs($passenger); + $this->deleteJson("/api/travels/{$travel->id}/spots/{$spot->id}") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'SpotAlreadyPassed' + )); + } + + public function testDestroyOrigin(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, false)->create(); + $spot = $travel->getOriginSpot(); + + Sanctum::actingAs($passenger); + $this->deleteJson("/api/travels/{$travel->id}/spots/{$spot->id}") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'ProtectedSpot' + )); + } + + public function testDestroyLastSpot(): void + { + [$passenger, $driver] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger, $driver, true)->create(); + $spot = $travel->spots()->where("position", 1)->firstOrFail(); + + Sanctum::actingAs($passenger); + $response = $this->deleteJson("/api/travels/{$travel->id}/spots/{$spot->id}") + ->assertStatus(400) + ->assertJson(array( + 'code' => 'ProtectedSpot' + )); + } + + protected function assertPositionsInRange(int $expactedSpots, array $spots): void { + $this->assertCount($expactedSpots, $spots); + + $positions = array_column($spots, 'position'); + sort($positions); + $this->assertSame(range(0, $expactedSpots - 1), $positions); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/TestCase.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/TestCase.php new file mode 100644 index 00000000..2932d4a6 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/TestCase.php @@ -0,0 +1,10 @@ +create(); + $this->assertInstanceOf(Travel::class, $event->travel); + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Unit/Models/TravelTest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Unit/Models/TravelTest.php new file mode 100644 index 00000000..3b89f993 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Unit/Models/TravelTest.php @@ -0,0 +1,20 @@ +create(); + $this->assertInstanceOf(User::class, $travel->passenger); + $this->assertInstanceOf(Driver::class, $travel->driver); + } +} From a1b82696ccb1f1f8e4d1609bece6a19a747dbc3d Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Sun, 25 Dec 2022 18:18:25 +0330 Subject: [PATCH 2/8] call factory --- .../database/seeders/DatabaseSeeder.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php index 76d96dc7..fd5d64dc 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php @@ -3,6 +3,9 @@ namespace Database\Seeders; // use Illuminate\Database\Console\Seeds\WithoutModelEvents; +use App\Models\Driver; +use App\Models\Travel; +use App\Models\TravelSpot; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder @@ -14,11 +17,10 @@ class DatabaseSeeder extends Seeder */ public function run() { - // \App\Models\User::factory(10)->create(); - - // \App\Models\User::factory()->create([ - // 'name' => 'Test User', - // 'email' => 'test@example.com', - // ]); + \App\Models\User::factory(10)->create(); + Driver::factory(10)->create(); + Travel::factory(3)->create(); + Travel::factory(2)->searchingForDriver()->create(); + TravelSpot::factory(3)->create(); } } From 1848bf7b8a7f618214f71718e2d589d79e4a4294 Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Sun, 25 Dec 2022 18:29:51 +0330 Subject: [PATCH 3/8] create register user as passenger and show and also The test was done correctly --- .../app/Http/Controllers/AuthController.php | 44 +++++++++++++++++-- .../app/Http/Resources/UserResource.php | 22 ++++++++++ .../hamidrezaNiakan/app/Models/User.php | 5 ++- 3 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/UserResource.php diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/AuthController.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/AuthController.php index 79b3ef11..705972c8 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/AuthController.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/AuthController.php @@ -1,10 +1,48 @@ create([ + 'cellphone' => $request->get('cellphone') , + 'name' => $request->get('name') , + 'lastname' => $request->get('lastname') , + 'password' => Hash::make($request->get('password')) , + ]); + $user[ 'token' ] = $user->createToken('api-token')->plainTextToken; + + return response()->json([ + 'user' => UserResource::make($user) , + ]); } - - public function user() { + + /** + * Display current user that is login + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\JsonResponse + */ + public function user ( Request $request ) { + $user = $request->user(); + $user[ 'token' ] = $request->user() + ->currentAccessToken()->token; + + return response()->json([ + 'user' => UserResource::make($user) , + ]); } } diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/UserResource.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/UserResource.php new file mode 100644 index 00000000..4c38446c --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/UserResource.php @@ -0,0 +1,22 @@ + $this->name , + 'lastname' => $this->lastname , + 'cellphone' => $this->cellphone , + 'token' => $this->token, + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php index 8b331ceb..71b856ee 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/User.php @@ -15,9 +15,10 @@ class User extends Authenticatable * @var string[] */ protected $fillable = [ + 'cellphone', + 'lastname', 'name', - 'email', - 'password', + 'password' ]; /** From 150c8ad67549002cf6cbce8253ba38fb8ecf1048 Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Sun, 25 Dec 2022 19:25:39 +0330 Subject: [PATCH 4/8] compeleted api for signup and update driver --- .../app/Http/Controllers/DriverController.php | 67 +++++++++++++++++-- .../app/Http/Resources/DriverResource.php | 25 +++++++ 2 files changed, 85 insertions(+), 7 deletions(-) create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/DriverResource.php diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/DriverController.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/DriverController.php index ba99ef80..e1d757c5 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/DriverController.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/DriverController.php @@ -2,13 +2,66 @@ namespace App\Http\Controllers; -class DriverController extends Controller -{ - public function signup() - { - } +use App\Enums\DriverStatus; +use App\Enums\TravelStatus; +use App\Exceptions\AlreadyDriverException; +use App\Http\Requests\DriverSignupRequest; +use App\Http\Resources\DriverResource; +use App\Http\Resources\TravelResource; +use App\Models\Driver; +use App\Models\Travel; +use Illuminate\Http\Request; - public function update() - { +class DriverController extends Controller { + /** + * @param \App\Http\Requests\DriverSignupRequest $request + * @return \Illuminate\Http\JsonResponse + * @throws \App\Exceptions\AlreadyDriverException + */ + public function signup ( DriverSignupRequest $request ) { + + $user = $request->user(); + if ( $user->can('signup' , new Driver()) ) { + if ( Driver::isDriver($user) ) { + throw new AlreadyDriverException(); + } + $driver = Driver::query() + ->create([ + 'id' => $user->id , + 'car_plate' => $request->get('car_plate') , + 'car_model' => $request->get('car_model') , + 'status' => DriverStatus::NOT_WORKING->value , + ]); + + return response()->json([ + 'driver' => DriverResource::make($driver->load('user')) , + ]); + } + } + + /** + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\JsonResponse|void + */ + public function update ( Request $request ) { + $user = $request->user(); + $driver = Driver::byUser($user); + if ( $user->can('update' , $driver) ) { + $driver->latitude = $request->get('latitude'); + $driver->longitude = $request->get('longitude'); + $driver->status = $request->get('status'); + $driver->save(); + $travels = Travel::query() + ->where('status' , TravelStatus::SEARCHING_FOR_DRIVER->value) + ->get(); + + return response()->json([ + 'driver' => DriverResource::make($driver->load('user')) , + 'travels' => $travels->load([ + "spots" , + "events" , + ]) , + ]); + } } } \ No newline at end of file diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/DriverResource.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/DriverResource.php new file mode 100644 index 00000000..9aa04830 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/DriverResource.php @@ -0,0 +1,25 @@ + $this->id , + 'car_plate' => $this->car_plate , + 'car_model' => $this->car_model , + 'latitude' => $this->latitude , + 'longitude' => $this->longitude , + 'status' => $this->status , + 'user' => UserResource::make($this->whenLoaded('user')), + ]; + } +} From f9bac6ad7649dbc91fc82fb9e1236011c23735f8 Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Sun, 25 Dec 2022 21:29:44 +0330 Subject: [PATCH 5/8] completed management travel The test was done correctly --- .../app/Http/Controllers/TravelController.php | 164 ++++++++++++++++-- .../app/Http/Resources/Travelclear.php | 19 ++ .../hamidrezaNiakan/app/Models/Travel.php | 6 + .../app/Models/TravelEvent.php | 30 ++-- .../hamidrezaNiakan/app/Models/TravelSpot.php | 22 ++- .../database/seeders/DatabaseSeeder.php | 12 +- 6 files changed, 205 insertions(+), 48 deletions(-) create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/Travelclear.php diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php index c55f67b9..211729b6 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php @@ -2,30 +2,156 @@ namespace App\Http\Controllers; -class TravelController extends Controller -{ +use App\Enums\TravelEventType; +use App\Enums\TravelStatus; +use App\Exceptions\ActiveTravelException; +use App\Exceptions\AllSpotsDidNotPassException; +use App\Exceptions\CannotCancelFinishedTravelException; +use App\Exceptions\CannotCancelRunningTravelException; +use App\Exceptions\CarDoesNotArrivedAtOriginException; +use App\Exceptions\DriverCannotTravelException; +use App\Exceptions\InvalidTravelStatusForThisActionException; +use App\Http\Requests\TravelStoreRequest; +use App\Http\Resources\TravelResource; +use App\Models\Driver; +use App\Models\Travel; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\DB; - public function view() - { +class TravelController extends Controller { + public function view ( Travel $travel , Request $request ) { + $user = $request->user(); + if ( $user->can('view' , $travel) ) { + return [ + 'travel' => [ + 'id' => $travel->id , + ] , + ]; + } } - - public function store() - { + + public function store ( TravelStoreRequest $request ) { + $user = $request->user(); + $spots = $request->get('spots' , []); + if ( Travel::userHasActiveTravel($user) ) { + throw new ActiveTravelException(); + } + DB::beginTransaction(); + $travel = Travel::query() + ->create([ + 'passenger_id' => $user->id , + 'status' => TravelStatus::SEARCHING_FOR_DRIVER->value , + ]); + $travel->spots() + ->createMany($spots); + DB::commit(); + + return response()->json(TravelResource::make($travel) , 201); } - - public function cancel() - { + + public function cancel ( Travel $travel , Request $request ) { + $user = $request->user(); + if ( $user->can('cancel' , $travel) ) { + + foreach ( $travel->events as $event ) { + if ( $event->type->value == TravelEventType::PASSENGER_ONBOARD->value ) { + throw new CannotCancelRunningTravelException(); + } + } + if ( in_array($travel->status->value , [ + TravelStatus::DONE->value , + TravelStatus::CANCELLED->value , + ]) ) { + throw new CannotCancelFinishedTravelException(); + } + if ( $travel->status->value === TravelStatus::SEARCHING_FOR_DRIVER->value ) { + $travel->status = TravelStatus::CANCELLED->value; + $travel->save(); + + return response()->json(TravelResource::make($travel)); + } + if ( Driver::isDriver($user) && $travel->status->value === TravelStatus::RUNNING->value ) { + $travel->status = TravelStatus::CANCELLED->value; + $travel->save(); + + return response()->json(TravelResource::make($travel)); + } + if ( !Driver::isDriver($user) && $travel->status->value === TravelStatus::RUNNING->value ) { + throw new CannotCancelRunningTravelException(); + } + } } - - public function passengerOnBoard() - { + + public function passengerOnBoard ( Travel $travel , Request $request ) { + + $user = $request->user(); + if ( !Driver::isDriver($user) ) { + abort(403); + } + if ( $user->can('markAsPassengerOnBoard' , $travel) ) { + if ( $travel->driverHasArrivedToOrigin() == false ) { + throw new CarDoesNotArrivedAtOriginException(); + } + if ( $travel->status->value == TravelStatus::DONE->value ) { + throw new InvalidTravelStatusForThisActionException(); + } + if ( $travel->passengerIsInCar() ) { + return throw new InvalidTravelStatusForThisActionException(); + } + $travel->events() + ->create([ + 'type' => TravelEventType::PASSENGER_ONBOARD , + ]); + + return response()->json(TravelResource::make($travel)); + } } - - public function done() - { + + public function done ( Travel $travel , Request $request ) { + $user = $request->user(); + if ( !Driver::isDriver($user) ) { + abort(403); + } + if ( $user->can('markAsDone' , $travel) ) { + if ( $travel->allSpotsPassed() == false ) { + return throw new AllSpotsDidNotPassException(); + } + if ( $travel->status->value != TravelStatus::DONE->value ) { + $travel->status = TravelStatus::DONE->value; + $travel->save(); + $travel->events() + ->create([ + 'type' => TravelEventType::DONE->value , + ]); + + return response()->json(TravelResource::make($travel)); + } + else { + throw new InvalidTravelStatusForThisActionException(); + } + } } - - public function take() - { + + public function take ( Travel $travel , Request $request ) { + $user = $request->user(); + if ( $user->can('take' , $travel) ) { + $driver = Driver::byUser($user); + if ( Travel::userHasActiveTravel($user)) { + throw new ActiveTravelException(); + } + if ($travel->status->value != TravelStatus::SEARCHING_FOR_DRIVER->value) { + throw new InvalidTravelStatusForThisActionException(); + } + $travel->driver_id = $driver->id; + $travel->save(); + + return [ + 'travel' => [ + 'id' => $travel->id , + 'driver_id' => $driver->id , + 'status' => $travel->status->value , + ] , + ]; + } } } diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/Travelclear.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/Travelclear.php new file mode 100644 index 00000000..e7ee0182 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/Travelclear.php @@ -0,0 +1,19 @@ + TravelStatus::class, ); diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php index e56e3331..45c5c961 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelEvent.php @@ -6,19 +6,19 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; -class TravelEvent extends Model -{ - const UPDATED_AT = null; - - use HasFactory; - - protected $table = "travels_events"; - protected $casts = array( - 'type' => TravelEventType::class, - ); - - public function travel() - { - return $this->belongsTo(Travel::class); - } +class TravelEvent extends Model { + const UPDATED_AT = null; + use HasFactory; + + protected $table = "travels_events"; + protected $casts = [ + 'type' => TravelEventType::class , + ]; + protected $fillable = [ + 'type', + ]; + + public function travel () { + return $this->belongsTo(Travel::class); + } } diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php index 69ea8cd4..d1106ab7 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php @@ -5,13 +5,17 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; -class TravelSpot extends Model -{ - use HasFactory; - - protected $table = "travels_spots"; - - public function travel() { - return $this->belongsTo(Travel::class); - } +class TravelSpot extends Model { + use HasFactory; + + protected $table = "travels_spots"; + protected $fillable = [ + 'position' , + 'latitude' , + 'longitude' , + ]; + + public function travel () { + return $this->belongsTo(Travel::class); + } } diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php index fd5d64dc..6145da1a 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php @@ -5,6 +5,7 @@ // use Illuminate\Database\Console\Seeds\WithoutModelEvents; use App\Models\Driver; use App\Models\Travel; +use App\Models\TravelEvent; use App\Models\TravelSpot; use Illuminate\Database\Seeder; @@ -17,10 +18,11 @@ class DatabaseSeeder extends Seeder */ public function run() { - \App\Models\User::factory(10)->create(); - Driver::factory(10)->create(); - Travel::factory(3)->create(); - Travel::factory(2)->searchingForDriver()->create(); - TravelSpot::factory(3)->create(); + //\App\Models\User::factory(10)->create(); + //Driver::factory(10)->create(); + //Travel::factory(3)->create(); + //Travel::factory(2)->searchingForDriver()->create(); + //TravelSpot::factory(3)->create(); + TravelEvent::factory(9)->create(); } } From a6e9f1a1adc9f0f8134991a33a53704bd3e4af73 Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Mon, 26 Dec 2022 09:54:34 +0330 Subject: [PATCH 6/8] completed travel spot --- .../Http/Controllers/TravelSpotController.php | 121 ++++++++++++++++-- .../app/Http/Resources/TravelSpotResource.php | 23 ++++ .../hamidrezaNiakan/app/Models/TravelSpot.php | 1 + .../database/seeders/DatabaseSeeder.php | 10 +- 4 files changed, 140 insertions(+), 15 deletions(-) create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php index 69970e0b..d4529b5a 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php @@ -2,17 +2,118 @@ namespace App\Http\Controllers; -class TravelSpotController extends Controller -{ - public function arrived() - { - } +use App\Enums\TravelStatus; +use App\Exceptions\InvalidTravelStatusForThisActionException; +use App\Exceptions\ProtectedSpotException; +use App\Exceptions\SpotAlreadyPassedException; +use App\Http\Resources\TravelResource; +use App\Models\Driver; +use App\Models\Travel; +use App\Models\TravelSpot; +use Carbon\Carbon; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\DB; - public function store() - { +class TravelSpotController extends Controller { + public function arrived ( Travel $travel , TravelSpot $spot , Request $request ) { + DB::beginTransaction(); + $user = $request->user(); + if ( !Driver::isDriver($user) ) { + abort(403); + } + if ( $user->can('markAsArrived' , $spot) ) { + if ( $travel->driverHasArrivedToOrigin() ) { + return throw new SpotAlreadyPassedException(); + } + if ( $travel->status->value == TravelStatus::CANCELLED->value ) { + throw new InvalidTravelStatusForThisActionException(); + } + $spot = $travel->getOriginSpot(); + $spot->arrived_at = Carbon::now(); + $spot->save(); + $travel->status = TravelStatus::RUNNING; + $travel->save(); + + return response()->json(TravelResource::make($travel)); + } + DB::commit(); } - - public function destroy() - { + + public function store ( Travel $travel , Request $request ) { + $this->validate($request , [ + 'position' => [ + 'required' , + 'integer' , + 'min:0' , + 'between:0,1' , + ] , + 'latitude' => [ + 'required' , + 'min:-90' , + 'max:90' , + ] , + 'longitude' => [ + 'required' , + 'min:-180' , + 'max:180' , + ] , + ]); + $user = $request->user(); + if ( Driver::isDriver($user) ) { + abort(403); + } + if ( $user->can('create' , $travel) ) { + if ($travel->allSpotsPassed()) { + throw new SpotAlreadyPassedException(); + } + if ($travel->status->value == TravelStatus::CANCELLED->value) { + throw new InvalidTravelStatusForThisActionException(); + } + $travel_spot = TravelSpot::query() + ->create([ + 'travel_id' => $travel->id , + 'latitude' => $request->get('latitude') , + 'longitude' => $request->get('longitude') , + 'position' => $request->get('position') , + ]); + + return response()->json([ + 'travel' => [ + 'spots' => [ + [ + 'latitude' => $travel_spot->latitude , + 'longitude' => $travel_spot->longitude , + 'position' => $travel_spot->position , + ] , + ] , + ] , + ]); + } + } + + public function destroy ( Travel $travel , TravelSpot $spot , Request $request) { + $user = $request->user(); + if ( Driver::isDriver($user) ) { + abort(403); + } + if ($user->can('destroy',$spot)) { + if ($travel->allSpotsPassed()) { + throw new SpotAlreadyPassedException(); + } + $middleSpot = $travel->spots()->where("position", 1)->firstOrFail(); + if ($travel->status->value === TravelStatus::RUNNING->value && $middleSpot) { + $middleSpot->delete(); + return response()->json(TravelResource::make($travel)); + } + if ($travel->status->value === TravelStatus::RUNNING->value && $travel->getOriginSpot()) { + throw new ProtectedSpotException(); + } + if ($travel->status->value === TravelStatus::CANCELLED->value) { + throw new InvalidTravelStatusForThisActionException(); + } + } + + + } } diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php new file mode 100644 index 00000000..09b0cd15 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php @@ -0,0 +1,23 @@ + $this->latitude , + 'longitude' => $this->longitude , + 'position' => $this->position , + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php index d1106ab7..ada94a7a 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php @@ -13,6 +13,7 @@ class TravelSpot extends Model { 'position' , 'latitude' , 'longitude' , + 'travel_id' ]; public function travel () { diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php index 6145da1a..85eb3d16 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php @@ -18,11 +18,11 @@ class DatabaseSeeder extends Seeder */ public function run() { - //\App\Models\User::factory(10)->create(); - //Driver::factory(10)->create(); - //Travel::factory(3)->create(); - //Travel::factory(2)->searchingForDriver()->create(); - //TravelSpot::factory(3)->create(); + \App\Models\User::factory(10)->create(); + Driver::factory(10)->create(); + Travel::factory(3)->create(); + Travel::factory(2)->searchingForDriver()->create(); + TravelSpot::factory(9)->create(); TravelEvent::factory(9)->create(); } } From cbc6396883fb11f70bad7f19db36575136fd4c19 Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Mon, 26 Dec 2022 09:54:34 +0330 Subject: [PATCH 7/8] completed travel spot --- .../Http/Controllers/TravelSpotController.php | 131 ++++++++++++++++-- .../app/Http/Resources/TravelSpotResource.php | 23 +++ .../hamidrezaNiakan/app/Models/TravelSpot.php | 1 + .../database/seeders/DatabaseSeeder.php | 10 +- 4 files changed, 150 insertions(+), 15 deletions(-) create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php index 69970e0b..dfaa47af 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php @@ -2,17 +2,128 @@ namespace App\Http\Controllers; -class TravelSpotController extends Controller -{ - public function arrived() - { - } +use App\Enums\TravelStatus; +use App\Exceptions\InvalidTravelStatusForThisActionException; +use App\Exceptions\ProtectedSpotException; +use App\Exceptions\SpotAlreadyPassedException; +use App\Http\Resources\TravelResource; +use App\Models\Driver; +use App\Models\Travel; +use App\Models\TravelSpot; +use Carbon\Carbon; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\DB; - public function store() - { +class TravelSpotController extends Controller { + public function arrived ( Travel $travel , TravelSpot $spot , Request $request ) { + DB::beginTransaction(); + $user = $request->user(); + if ( !Driver::isDriver($user) ) { + abort(403); + } + if ( $user->can('markAsArrived' , $spot) ) { + if ( $travel->driverHasArrivedToOrigin() ) { + return throw new SpotAlreadyPassedException(); + } + if ( $travel->status->value == TravelStatus::CANCELLED->value ) { + throw new InvalidTravelStatusForThisActionException(); + } + $origin_Spot = $travel->getOriginSpot(); + $origin_Spot->arrived_at = Carbon::now(); + $origin_Spot->save(); + + return response()->json(TravelResource::make($travel)); + } + DB::commit(); } - - public function destroy() - { + + public function store ( Travel $travel , Request $request ) { + $this->validate($request , [ + 'position' => [ + 'required' , + 'integer' , + 'min:0' , + 'between:0,1' , + ] , + 'latitude' => [ + 'required' , + 'min:-90' , + 'max:90' , + ] , + 'longitude' => [ + 'required' , + 'min:-180' , + 'max:180' , + ] , + ]); + $user = $request->user(); + if ( Driver::isDriver($user) ) { + abort(403); + } + if ( $user->can('create' , $travel) ) { + if ( $travel->allSpotsPassed() ) { + throw new SpotAlreadyPassedException(); + } + if ( $travel->status->value == TravelStatus::CANCELLED->value ) { + throw new InvalidTravelStatusForThisActionException(); + } + foreach ( $travel->spots as $spot ) { + + if ( $spot->position >= $request->position ) { + + $travel->spots() + ->where('position' , $request->position) + ->increment('position'); + break; + } + } + $travel->spots() + ->create($request->toArray()); + $travel = Travel::query() + ->where('id' , $travel->id) + ->with('spots') + ->first(); + + return response()->json([ + 'travel' => [ + 'spots' => $travel->spots , + ] , + ]); + } + } + + public function destroy ( Travel $travel , $spot , Request $request ) { + + $spot_deleted = TravelSpot::query() + ->findOrFail($spot); + $user = $request->user(); + if ( Driver::isDriver($user) ) { + abort(403); + } + if ( $user->can('destroy' , $spot_deleted) ) { + if ( !( $travel->status->value === TravelStatus::RUNNING->value ) ) { + throw new InvalidTravelStatusForThisActionException(); + } + if ( $travel->allSpotsPassed() ) { + throw new SpotAlreadyPassedException(); + } + $origin_Spot = $travel->getOriginSpot(); + if ( $origin_Spot->id == $spot ) { + throw new ProtectedSpotException(); + } + $spot_deleted = TravelSpot::query() + ->findOrFail($spot); + if ( ( count($travel->spots) - 1 ) == $spot_deleted->position ) { + + throw new ProtectedSpotException(); + } + TravelSpot::query() + ->where('position' , $spot) + ->delete(); + + return response()->json([ + 'travel' => $travel->load('spots') , + ]); + } } } diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php new file mode 100644 index 00000000..09b0cd15 --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Resources/TravelSpotResource.php @@ -0,0 +1,23 @@ + $this->latitude , + 'longitude' => $this->longitude , + 'position' => $this->position , + ]; + } +} diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php index d1106ab7..ada94a7a 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Models/TravelSpot.php @@ -13,6 +13,7 @@ class TravelSpot extends Model { 'position' , 'latitude' , 'longitude' , + 'travel_id' ]; public function travel () { diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php index 6145da1a..85eb3d16 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/database/seeders/DatabaseSeeder.php @@ -18,11 +18,11 @@ class DatabaseSeeder extends Seeder */ public function run() { - //\App\Models\User::factory(10)->create(); - //Driver::factory(10)->create(); - //Travel::factory(3)->create(); - //Travel::factory(2)->searchingForDriver()->create(); - //TravelSpot::factory(3)->create(); + \App\Models\User::factory(10)->create(); + Driver::factory(10)->create(); + Travel::factory(3)->create(); + Travel::factory(2)->searchingForDriver()->create(); + TravelSpot::factory(9)->create(); TravelEvent::factory(9)->create(); } } From 244f6363b1c8726ded9488e581fd7815be83d9b5 Mon Sep 17 00:00:00 2001 From: niakan2088 Date: Tue, 27 Dec 2022 19:35:40 +0330 Subject: [PATCH 8/8] resolving merge request --- .../hamidrezaNiakan/app/Helper/Helper.php | 6 +++ .../app/Http/Controllers/TravelController.php | 47 +++++++++++-------- .../Http/Controllers/TravelSpotController.php | 23 +-------- .../Http/Requests/TravelSpotStoreRequest.php | 2 +- .../tests/Feature/TravelControllerTest.php | 10 ++++ 5 files changed, 47 insertions(+), 41 deletions(-) create mode 100644 challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Helper/Helper.php diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Helper/Helper.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Helper/Helper.php new file mode 100644 index 00000000..0814b35d --- /dev/null +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Helper/Helper.php @@ -0,0 +1,6 @@ +user(); + } +} \ No newline at end of file diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php index 211729b6..4995dd5a 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelController.php @@ -20,33 +20,42 @@ class TravelController extends Controller { public function view ( Travel $travel , Request $request ) { + + if ( !auth('sanctum')->check() ) { + abort(401); + } $user = $request->user(); if ( $user->can('view' , $travel) ) { - return [ - 'travel' => [ - 'id' => $travel->id , - ] , - ]; + if ( $travel->status->value == TravelStatus::RUNNING->value ) { + return response()->json(TravelResource::make($travel)); + } } } public function store ( TravelStoreRequest $request ) { + + if ( !auth('sanctum')->check() ) { + abort(401); + } $user = $request->user(); - $spots = $request->get('spots' , []); if ( Travel::userHasActiveTravel($user) ) { throw new ActiveTravelException(); } - DB::beginTransaction(); - $travel = Travel::query() - ->create([ - 'passenger_id' => $user->id , - 'status' => TravelStatus::SEARCHING_FOR_DRIVER->value , - ]); - $travel->spots() - ->createMany($spots); - DB::commit(); - - return response()->json(TravelResource::make($travel) , 201); + $spots = $request->get('spots' , []); + $travel = new Travel(); + if ( $user->can('create' , $travel) ) { + DB::beginTransaction(); + $travel = Travel::query() + ->create([ + 'passenger_id' => $user->id , + 'status' => TravelStatus::SEARCHING_FOR_DRIVER->value , + ]); + $travel->spots() + ->createMany($spots); + DB::commit(); + + return response()->json(TravelResource::make($travel) , 201); + } } public function cancel ( Travel $travel , Request $request ) { @@ -136,10 +145,10 @@ public function take ( Travel $travel , Request $request ) { $user = $request->user(); if ( $user->can('take' , $travel) ) { $driver = Driver::byUser($user); - if ( Travel::userHasActiveTravel($user)) { + if ( Travel::userHasActiveTravel($user) ) { throw new ActiveTravelException(); } - if ($travel->status->value != TravelStatus::SEARCHING_FOR_DRIVER->value) { + if ( $travel->status->value != TravelStatus::SEARCHING_FOR_DRIVER->value ) { throw new InvalidTravelStatusForThisActionException(); } $travel->driver_id = $driver->id; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php index dfaa47af..94deb2e1 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Controllers/TravelSpotController.php @@ -6,6 +6,7 @@ use App\Exceptions\InvalidTravelStatusForThisActionException; use App\Exceptions\ProtectedSpotException; use App\Exceptions\SpotAlreadyPassedException; +use App\Http\Requests\TravelSpotStoreRequest; use App\Http\Resources\TravelResource; use App\Models\Driver; use App\Models\Travel; @@ -16,7 +17,6 @@ class TravelSpotController extends Controller { public function arrived ( Travel $travel , TravelSpot $spot , Request $request ) { - DB::beginTransaction(); $user = $request->user(); if ( !Driver::isDriver($user) ) { abort(403); @@ -34,28 +34,9 @@ public function arrived ( Travel $travel , TravelSpot $spot , Request $request ) return response()->json(TravelResource::make($travel)); } - DB::commit(); } - public function store ( Travel $travel , Request $request ) { - $this->validate($request , [ - 'position' => [ - 'required' , - 'integer' , - 'min:0' , - 'between:0,1' , - ] , - 'latitude' => [ - 'required' , - 'min:-90' , - 'max:90' , - ] , - 'longitude' => [ - 'required' , - 'min:-180' , - 'max:180' , - ] , - ]); + public function store ( Travel $travel , TravelSpotStoreRequest $request ) { $user = $request->user(); if ( Driver::isDriver($user) ) { abort(403); diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php index cbd0cf9c..a50e6ec2 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/app/Http/Requests/TravelSpotStoreRequest.php @@ -20,7 +20,7 @@ public function authorize(): bool public function rules(): array { return [ - 'position' => ['required', 'integer', 'min:1'], + 'position' => ['required', 'integer', 'min:1','max:2'], 'latitude' => ['required','min:-90', 'max:90'], 'longitude' => ['required','min:-180', 'max:180'], ]; diff --git a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php index b43c248e..cc4165a6 100644 --- a/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php +++ b/challenges/3/YOUR-CODE-GOES-HERE/hamidrezaNiakan/tests/Feature/TravelControllerTest.php @@ -194,6 +194,16 @@ public function testView() )); } } + public function testUserUnathorized () { + [ + $passenger , + $driver, + ] = $this->createPassengerDriver(); + $travel = $this->runningTravel($passenger , $driver) + ->create(); + $this->getJson("/api/travels/{$travel->id}") + ->assertStatus(401); + } public function testPassengerOnBoard() {