From df155bb13d0c6e5445615eed813ac45f2993f758 Mon Sep 17 00:00:00 2001 From: Joris Slagter Date: Tue, 2 Dec 2025 17:40:21 +0100 Subject: [PATCH] Initial Laravel API import - Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications --- .editorconfig | 15 + .env.example | 51 + .gitattributes | 5 + .gitignore | 16 + .styleci.yml | 13 + README.md | 72 +- app/Console/Commands/CrudGenerator.php | 127 + .../SendProductEmailNotifications.php | 84 + app/Console/Kernel.php | 41 + app/Data/Validation/NetteValidator.php | 31 + app/Data/Validation/ValidatesArray.php | 12 + app/Data/Validation/ValidationException.php | 8 + app/Data/Validation/ValidationResult.php | 40 + app/Data/Validation/Validator.php | 16 + app/Events/MembersUpdated.php | 44 + app/Events/ProductsCatalogUpdated.php | 44 + app/Events/RealTimeNotification.php | 52 + app/Events/UserInfoUpdated.php | 48 + app/Exceptions/Handler.php | 65 + .../Controllers/AccreditationController.php | 82 + app/Http/Controllers/AddressController.php | 79 + app/Http/Controllers/AuthController.php | 199 + app/Http/Controllers/AuthController.php.bak | 213 + app/Http/Controllers/BranchController.php | 62 + .../ChecklistCategoryController.php | 44 + app/Http/Controllers/ChecklistController.php | 44 + .../ChecklistVersionController.php | 44 + app/Http/Controllers/ContactController.php | 83 + .../Controllers/ContributionController.php | 103 + app/Http/Controllers/Controller.php | 13 + .../CourseNotificationController.php | 80 + app/Http/Controllers/CsvExportController.php | 101 + .../MissingBearerTokenError.php | 24 + app/Http/Controllers/Error/ErrorInterface.php | 10 + app/Http/Controllers/FilterController.php | 77 + app/Http/Controllers/FilterItemController.php | 69 + .../FilterItemsAssociationController.php | 44 + .../Controllers/ForgotPasswordController.php | 35 + .../Controllers/LearningProductController.php | 340 + .../LearningProductController.php.backup | 335 + .../Controllers/ManagementLinkController.php | 64 + app/Http/Controllers/MemberController.php | 154 + .../Controllers/NotificationController.php | 56 + app/Http/Controllers/PingController.php | 11 + .../Controllers/ResetPasswordController.php | 33 + app/Http/Controllers/Response/ApiResponse.php | 55 + app/Http/Controllers/RoleController.php | 18 + app/Http/Controllers/SummaryController.php | 148 + app/Http/Controllers/SynonymController.php | 65 + app/Http/Controllers/TypeController.php | 26 + app/Http/Controllers/UserController.php | 94 + app/Http/Controllers/VersionController.php | 112 + app/Http/Kernel.php | 73 + app/Http/Middleware/Authenticate.php | 21 + .../Middleware/CheckForMaintenanceMode.php | 17 + app/Http/Middleware/EncryptCookies.php | 17 + app/Http/Middleware/HandleCors.php | 28 + .../Middleware/RedirectIfAuthenticated.php | 27 + app/Http/Middleware/TrimStrings.php | 18 + app/Http/Middleware/TrustProxies.php | 23 + app/Http/Middleware/VerifyCsrfToken.php | 17 + app/Http/Requests/Component/ComponentSort.php | 32 + .../Requests/Component/ComponentStore.php | 33 + app/Http/Requests/Component/ComponentSync.php | 32 + app/Http/Requests/Filter/FilterItemStore.php | 32 + app/Http/Requests/Filter/FilterStore.php | 31 + .../Requests/Learning/AccreditationStore.php | 35 + .../Learning/CourseNotificationStore.php | 38 + .../Requests/Learning/LearningProductId.php | 30 + .../Learning/LearningProductStore.php | 74 + app/Http/Requests/Learning/SynonymStore.php | 30 + app/Http/Requests/Learning/VersionStore.php | 39 + app/Http/Requests/Member/AddressStore.php | 47 + app/Http/Requests/Member/BranchStore.php | 31 + app/Http/Requests/Member/ContactStore.php | 44 + .../Requests/Member/ContributionStore.php | 34 + .../Requests/Member/ManagementLinkStore.php | 34 + app/Http/Requests/Member/MemberStore.php | 60 + app/Http/Requests/Member/RevisionStore.php | 33 + app/Http/Requests/Member/SummaryStore.php | 35 + .../Requests/Page/ComponentPageDelete.php | 31 + app/Http/Requests/Page/ComponentPageStore.php | 32 + app/Http/Requests/Page/PageStore.php | 33 + app/Http/Requests/User/Login.php | 31 + app/Http/Requests/User/UserStore.php | 36 + app/Http/Resources/FiltersResource.php | 26 + .../Resources/LearningProductResource.php | 136 + app/Http/Resources/MemberResource.php | 70 + app/Http/Resources/PageResource.php | 28 + app/Http/Resources/UserLoggedResource.php | 37 + app/Http/Resources/UserResource.php | 33 + app/Http/Resources/UsersList.php | 22 + app/Mail/CourseNotificationMail.php | 49 + app/Mail/MemberChanges.php | 51 + app/Notifications/CustomNotification.php | 69 + .../PasswordResetNotification.php | 71 + app/Notifications/UserNotification.php | 64 + app/Providers/AppServiceProvider.php | 28 + app/Providers/AuthServiceProvider.php | 30 + app/Providers/BroadcastServiceProvider.php | 21 + app/Providers/CorsServiceProvider.php | 43 + app/Providers/EventServiceProvider.php | 34 + app/Providers/RouteServiceProvider.php | 80 + app/Repositories/Accreditation.php | 28 + app/Repositories/Address.php | 16 + app/Repositories/Branch.php | 10 + app/Repositories/BranchMember.php | 10 + app/Repositories/Checklist.php | 17 + app/Repositories/ChecklistCategory.php | 17 + app/Repositories/ChecklistVersion.php | 29 + app/Repositories/Contact.php | 10 + app/Repositories/Contribution.php | 15 + app/Repositories/CourseNotification.php | 44 + app/Repositories/Filter.php | 25 + app/Repositories/FilterItem.php | 20 + app/Repositories/FilterItemsAssociation.php | 20 + app/Repositories/LearningProduct.php | 80 + app/Repositories/LearningProductSynonym.php | 16 + app/Repositories/ManagementLink.php | 16 + app/Repositories/Member.php | 91 + app/Repositories/Notification.php | 16 + app/Repositories/QueryBuilder/Config.php | 126 + .../QueryBuilder/ConfigProvider.php | 8 + app/Repositories/Revision.php | 29 + app/Repositories/Role.php | 20 + app/Repositories/Summary.php | 65 + app/Repositories/Synonym.php | 15 + app/Repositories/User.php | 126 + app/Repositories/Version.php | 32 + app/Services/AccreditationService.php | 53 + app/Services/AddressService.php | 53 + app/Services/BranchService.php | 53 + app/Services/ChecklistCategoryService.php | 53 + app/Services/ChecklistService.php | 53 + app/Services/ChecklistVersionService.php | 53 + app/Services/ContactService.php | 53 + app/Services/ContributionService.php | 53 + app/Services/CorsService.php | 77 + app/Services/CourseNotificationService.php | 82 + app/Services/FilterItemService.php | 53 + .../FilterItemsAssociationService.php | 58 + app/Services/FilterService.php | 58 + app/Services/LearningProductService.php | 93 + app/Services/ManagementLinkService.php | 53 + app/Services/MemberService.php | 81 + app/Services/QueryBuilderService.php | 61 + app/Services/RevisionService.php | 53 + app/Services/RoleService.php | 20 + app/Services/SummaryService.php | 53 + app/Services/SynonymService.php | 53 + app/Services/UserService.php | 102 + app/Services/VersionService.php | 53 + artisan | 53 + bootstrap/app.php | 55 + bootstrap/cache/.gitignore | 2 + composer.json | 79 + composer.lock | 9833 +++ config/app.php | 234 + config/auth.php | 117 + config/backup.php | 266 + config/broadcasting.php | 66 + config/cache.php | 107 + config/cors.php | 7 + config/database.php | 147 + config/filesystems.php | 106 + config/hashing.php | 52 + config/logging.php | 104 + config/mail.php | 109 + config/queue.php | 89 + config/sanctum.php | 46 + config/services.php | 33 + config/session.php | 199 + config/sso.php | 16 + config/view.php | 36 + config/websockets.php | 141 + database/.gitignore | 2 + database/factories/LearningProductFactory.php | 12 + database/factories/UserFactory.php | 29 + ...te_websockets_statistics_entries_table.php | 35 + .../2014_10_12_000000_create_users_table.php | 40 + ...12_100000_create_password_resets_table.php | 32 + ..._08_19_000000_create_failed_jobs_table.php | 35 + ...01_create_personal_access_tokens_table.php | 36 + .../2020_03_16_185528_create_roles_table.php | 32 + ...20_03_16_185728_create_role_user_table.php | 42 + ..._105112_create_learning_products_table.php | 59 + .../2020_04_10_102625_create_media_table.php | 31 + ...2020_05_20_105414_create_filters_table.php | 31 + ...020_05_20_105543_create_versions_table.php | 47 + ...05_20_113018_create_filter_items_table.php | 42 + ...create_filter_items_associations_table.php | 47 + ..._23_154407_create_accreditations_table.php | 44 + ...4731_create_course_notifications_table.php | 46 + ...5058_create_checklist_categories_table.php | 31 + ...0_08_03_120512_create_checklists_table.php | 41 + ...120531_create_checklist_versions_table.php | 50 + ...9_15_104601_create_notifications_table.php | 35 + ...020_09_30_185253_create_synonyms_table.php | 31 + ...205042_create_learning_product_synonym.php | 46 + ...020_10_06_070912_create_branches_table.php | 32 + ...2020_10_06_070913_create_members_table.php | 71 + ...20_10_19_093919_create_addresses_table.php | 51 + ...20_10_20_175422_create_summaries_table.php | 44 + ...020_11_03_190145_create_contacts_table.php | 59 + ..._10_120935_create_branch_members_table.php | 46 + ...20_11_11_180207_create_revisions_table.php | 48 + ...quality_standards_to_learning_products.php | 32 + ...add_membership_fields_to_members_table.php | 38 + ...6_134803_add_fields_to_addresses_table.php | 58 + ...16_165823_add_fields_to_contacts_table.php | 56 + ...add_sent_to_course_notifications_table.php | 32 + .../2021_03_05_224107_create_jobs_table.php | 36 + ...d_approvated_field_to_member_childrens.php | 57 + ...2_204435_create_management_links_table.php | 36 + ..._172540_add_link_to_filter_items_table.php | 32 + ...242_rename_functions_in_contacts_table.php | 35 + ...1011_add_info_country_to_members_table.php | 32 + ...8_13_104032_create_contributions_table.php | 43 + ...provated_fields_to_contributions_table.php | 35 + ...esentative_fields_from_addresses_table.php | 44 + ..._26_123159_alter_type_in_members_table.php | 57 + ...p_addresses_fields_from_contacts_table.php | 48 + ...73117_add_address_id_to_contacts_table.php | 33 + ..._and_rename_fields_from_contacts_table.php | 81 + ...7_add_super_admin_entry_to_roles_table.php | 58 + ...for_members_to_learning_products_table.php | 32 + ...er_nullable_on_learning_products_table.php | 32 + ...rdy_part_training_to_learning_products.php | 32 + ..._value_to_enum_type_field_in_addresses.php | 32 + ...10_13_202030_create_member_users_table.php | 35 + ...rate_user_id_column_from_members_table.php | 73 + ...add_unique_index_to_member_users_table.php | 37 + ...ember_users_table_to_cascade_on_delete.php | 46 + ...r_opleiders_to_learning_products_table.php | 32 + database/seeds/BranchSeeder.php | 41 + database/seeds/ChecklistSeeder.php | 159 + database/seeds/DatabaseSeeder.php | 28 + database/seeds/FilterSeeder.php | 163 + database/seeds/GlobalDbImportSeeder.php | 82 + database/seeds/LearningProductSeeder.php | 8169 ++ database/seeds/MemberSeeder.php | 2113 + database/seeds/RolesTableSeeder.php | 21 + database/seeds/SynonymSeeder.php | 31 + database/seeds/UserSeeder.php | 170 + package-lock.json | 10256 +++ package.json | 22 + phpunit.xml | 29 + project.json | 4 + public/.htaccess | 22 + public/css/app.css | 0 public/favicon.ico | 0 public/images/facebook.png | Bin 0 -> 268 bytes public/images/inge.jpeg | Bin 0 -> 59359 bytes public/images/kees.jpg | Bin 0 -> 9444 bytes public/images/kees.png | Bin 0 -> 98924 bytes public/images/linkedin.png | Bin 0 -> 316 bytes public/images/logo.png | Bin 0 -> 10749 bytes public/images/logosmall.png | Bin 0 -> 6059 bytes public/images/twitter.png | Bin 0 -> 397 bytes public/index.php | 60 + public/js/app.js | 2 + public/js/app.js.LICENSE.txt | 8 + public/mix-manifest.json | 4 + public/robots.txt | 2 + public/storage | 1 + resources/data/mijnggz.json | 71201 ++++++++++++++++ resources/js/app.js | 1 + resources/js/bootstrap.js | 28 + resources/lang/en/auth.php | 19 + resources/lang/en/pagination.php | 19 + resources/lang/en/passwords.php | 22 + resources/lang/en/validation.php | 151 + resources/sass/app.scss | 1 + .../emails/courses/notification.blade.php | 6 + .../views/emails/members/hasChanges.blade.php | 6 + resources/views/welcome.blade.php | 100 + routes/api.php | 81 + routes/channels.php | 18 + routes/console.php | 19 + routes/web.php | 4 + server.php | 21 + storage/app/.gitignore | 3 + storage/app/public/.gitignore | 2 + storage/framework/.gitignore | 8 + storage/framework/testing/.gitignore | 2 + .../Cn9zkEPfkgCZFVZuthumb.png | Bin 0 -> 3982 bytes .../PqQiydu8BuWpY4vX.png | Bin 0 -> 88283 bytes .../6B4HmQuhVrKAdLQEthumb.png | Bin 0 -> 3982 bytes .../CbD3be6HxfEjUlDD.png | Bin 0 -> 88283 bytes .../JOdSX1VM1yA2NXZLthumb.png | Bin 0 -> 3982 bytes .../kOVVGTubSZC5t8Od.png | Bin 0 -> 88283 bytes .../JwkIHErolCXfeAt7.png | Bin 0 -> 88283 bytes .../vsmS9dFNLDP8ny5Jthumb.png | Bin 0 -> 3982 bytes .../QjRDupGtiPnfcyTzthumb.png | Bin 0 -> 3982 bytes .../z6jIVncxKIbzpmam.png | Bin 0 -> 88283 bytes .../8YWiNvQ1Z4mT1Gsi.png | Bin 0 -> 88283 bytes .../UZv2AWfXOVFIU0DYthumb.png | Bin 0 -> 3982 bytes .../hntOtMSu4477Ukse.png | Bin 0 -> 88283 bytes .../vlR4pDkIUUApanaFthumb.png | Bin 0 -> 3982 bytes .../CP6j81eqaRoysQdhthumb.png | Bin 0 -> 3982 bytes .../nMDgHG0CZmqpPWLB.png | Bin 0 -> 88283 bytes .../9O9KkrNuQqV4oz2c.png | Bin 0 -> 88283 bytes .../AfvgEa6fZrBWrP7Mthumb.png | Bin 0 -> 3982 bytes .../8dFmztepRgzcu92Fthumb.png | Bin 0 -> 3529 bytes .../lHHQubTqlaC561WR.png | Bin 0 -> 22620 bytes .../U3XEk3kUyz2IBrSD.png | Bin 0 -> 52433 bytes .../hIyCV8yeocCtJsStthumb.png | Bin 0 -> 4213 bytes .../NsDIFoyvoYqFsXywthumb.png | Bin 0 -> 3982 bytes .../jUZ5Dvz9xuMmZlud.png | Bin 0 -> 88283 bytes .../TXtUjXl4mtqfCB03thumb.png | Bin 0 -> 3982 bytes .../jRdw9n0fbCcoSP4H.png | Bin 0 -> 88283 bytes .../qwQyHfXzJSuOaQlnthumb.png | Bin 0 -> 3982 bytes .../wlG1hNclhfZbmKa7.png | Bin 0 -> 88283 bytes stubs/controller.api.stub | 64 + stubs/controller.invokable.stub | 20 + stubs/controller.model.api.stub | 65 + stubs/controller.model.stub | 86 + stubs/controller.nested.api.stub | 71 + stubs/controller.nested.stub | 94 + stubs/controller.plain.stub | 11 + stubs/controller.stub | 85 + stubs/custom/Controller.stub | 44 + stubs/custom/Model.stub | 16 + stubs/custom/Request.stub | 18 + stubs/custom/Service.stub | 53 + stubs/custom/Validator.stub | 15 + stubs/job.queued.stub | 34 + stubs/job.stub | 31 + stubs/migration.create.stub | 31 + stubs/migration.stub | 28 + stubs/migration.update.stub | 32 + stubs/model.pivot.stub | 10 + stubs/model.stub | 10 + stubs/request.stub | 30 + stubs/test.stub | 22 + stubs/test.unit.stub | 18 + tests/CreatesApplication.php | 22 + tests/Feature/ExampleTest.php | 21 + tests/TestCase.php | 10 + tests/Unit/ExampleTest.php | 18 + webpack.mix.js | 15 + 341 files changed, 116385 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .styleci.yml create mode 100644 app/Console/Commands/CrudGenerator.php create mode 100644 app/Console/Commands/SendProductEmailNotifications.php create mode 100644 app/Console/Kernel.php create mode 100644 app/Data/Validation/NetteValidator.php create mode 100644 app/Data/Validation/ValidatesArray.php create mode 100644 app/Data/Validation/ValidationException.php create mode 100644 app/Data/Validation/ValidationResult.php create mode 100644 app/Data/Validation/Validator.php create mode 100644 app/Events/MembersUpdated.php create mode 100644 app/Events/ProductsCatalogUpdated.php create mode 100644 app/Events/RealTimeNotification.php create mode 100644 app/Events/UserInfoUpdated.php create mode 100644 app/Exceptions/Handler.php create mode 100644 app/Http/Controllers/AccreditationController.php create mode 100644 app/Http/Controllers/AddressController.php create mode 100644 app/Http/Controllers/AuthController.php create mode 100644 app/Http/Controllers/AuthController.php.bak create mode 100644 app/Http/Controllers/BranchController.php create mode 100644 app/Http/Controllers/ChecklistCategoryController.php create mode 100644 app/Http/Controllers/ChecklistController.php create mode 100644 app/Http/Controllers/ChecklistVersionController.php create mode 100644 app/Http/Controllers/ContactController.php create mode 100644 app/Http/Controllers/ContributionController.php create mode 100644 app/Http/Controllers/Controller.php create mode 100644 app/Http/Controllers/CourseNotificationController.php create mode 100644 app/Http/Controllers/CsvExportController.php create mode 100644 app/Http/Controllers/Error/AuthController/MissingBearerTokenError.php create mode 100644 app/Http/Controllers/Error/ErrorInterface.php create mode 100644 app/Http/Controllers/FilterController.php create mode 100644 app/Http/Controllers/FilterItemController.php create mode 100644 app/Http/Controllers/FilterItemsAssociationController.php create mode 100644 app/Http/Controllers/ForgotPasswordController.php create mode 100644 app/Http/Controllers/LearningProductController.php create mode 100644 app/Http/Controllers/LearningProductController.php.backup create mode 100644 app/Http/Controllers/ManagementLinkController.php create mode 100644 app/Http/Controllers/MemberController.php create mode 100644 app/Http/Controllers/NotificationController.php create mode 100644 app/Http/Controllers/PingController.php create mode 100644 app/Http/Controllers/ResetPasswordController.php create mode 100644 app/Http/Controllers/Response/ApiResponse.php create mode 100644 app/Http/Controllers/RoleController.php create mode 100644 app/Http/Controllers/SummaryController.php create mode 100644 app/Http/Controllers/SynonymController.php create mode 100644 app/Http/Controllers/TypeController.php create mode 100644 app/Http/Controllers/UserController.php create mode 100644 app/Http/Controllers/VersionController.php create mode 100644 app/Http/Kernel.php create mode 100644 app/Http/Middleware/Authenticate.php create mode 100644 app/Http/Middleware/CheckForMaintenanceMode.php create mode 100644 app/Http/Middleware/EncryptCookies.php create mode 100644 app/Http/Middleware/HandleCors.php create mode 100644 app/Http/Middleware/RedirectIfAuthenticated.php create mode 100644 app/Http/Middleware/TrimStrings.php create mode 100644 app/Http/Middleware/TrustProxies.php create mode 100644 app/Http/Middleware/VerifyCsrfToken.php create mode 100644 app/Http/Requests/Component/ComponentSort.php create mode 100644 app/Http/Requests/Component/ComponentStore.php create mode 100644 app/Http/Requests/Component/ComponentSync.php create mode 100644 app/Http/Requests/Filter/FilterItemStore.php create mode 100644 app/Http/Requests/Filter/FilterStore.php create mode 100644 app/Http/Requests/Learning/AccreditationStore.php create mode 100644 app/Http/Requests/Learning/CourseNotificationStore.php create mode 100644 app/Http/Requests/Learning/LearningProductId.php create mode 100644 app/Http/Requests/Learning/LearningProductStore.php create mode 100644 app/Http/Requests/Learning/SynonymStore.php create mode 100644 app/Http/Requests/Learning/VersionStore.php create mode 100644 app/Http/Requests/Member/AddressStore.php create mode 100644 app/Http/Requests/Member/BranchStore.php create mode 100644 app/Http/Requests/Member/ContactStore.php create mode 100644 app/Http/Requests/Member/ContributionStore.php create mode 100644 app/Http/Requests/Member/ManagementLinkStore.php create mode 100644 app/Http/Requests/Member/MemberStore.php create mode 100644 app/Http/Requests/Member/RevisionStore.php create mode 100644 app/Http/Requests/Member/SummaryStore.php create mode 100644 app/Http/Requests/Page/ComponentPageDelete.php create mode 100644 app/Http/Requests/Page/ComponentPageStore.php create mode 100644 app/Http/Requests/Page/PageStore.php create mode 100644 app/Http/Requests/User/Login.php create mode 100644 app/Http/Requests/User/UserStore.php create mode 100644 app/Http/Resources/FiltersResource.php create mode 100644 app/Http/Resources/LearningProductResource.php create mode 100644 app/Http/Resources/MemberResource.php create mode 100644 app/Http/Resources/PageResource.php create mode 100644 app/Http/Resources/UserLoggedResource.php create mode 100644 app/Http/Resources/UserResource.php create mode 100644 app/Http/Resources/UsersList.php create mode 100644 app/Mail/CourseNotificationMail.php create mode 100644 app/Mail/MemberChanges.php create mode 100644 app/Notifications/CustomNotification.php create mode 100644 app/Notifications/PasswordResetNotification.php create mode 100644 app/Notifications/UserNotification.php create mode 100644 app/Providers/AppServiceProvider.php create mode 100644 app/Providers/AuthServiceProvider.php create mode 100644 app/Providers/BroadcastServiceProvider.php create mode 100644 app/Providers/CorsServiceProvider.php create mode 100644 app/Providers/EventServiceProvider.php create mode 100644 app/Providers/RouteServiceProvider.php create mode 100644 app/Repositories/Accreditation.php create mode 100644 app/Repositories/Address.php create mode 100644 app/Repositories/Branch.php create mode 100644 app/Repositories/BranchMember.php create mode 100644 app/Repositories/Checklist.php create mode 100644 app/Repositories/ChecklistCategory.php create mode 100644 app/Repositories/ChecklistVersion.php create mode 100644 app/Repositories/Contact.php create mode 100644 app/Repositories/Contribution.php create mode 100644 app/Repositories/CourseNotification.php create mode 100644 app/Repositories/Filter.php create mode 100644 app/Repositories/FilterItem.php create mode 100644 app/Repositories/FilterItemsAssociation.php create mode 100644 app/Repositories/LearningProduct.php create mode 100644 app/Repositories/LearningProductSynonym.php create mode 100644 app/Repositories/ManagementLink.php create mode 100644 app/Repositories/Member.php create mode 100644 app/Repositories/Notification.php create mode 100644 app/Repositories/QueryBuilder/Config.php create mode 100644 app/Repositories/QueryBuilder/ConfigProvider.php create mode 100644 app/Repositories/Revision.php create mode 100644 app/Repositories/Role.php create mode 100644 app/Repositories/Summary.php create mode 100644 app/Repositories/Synonym.php create mode 100644 app/Repositories/User.php create mode 100644 app/Repositories/Version.php create mode 100644 app/Services/AccreditationService.php create mode 100644 app/Services/AddressService.php create mode 100644 app/Services/BranchService.php create mode 100644 app/Services/ChecklistCategoryService.php create mode 100644 app/Services/ChecklistService.php create mode 100644 app/Services/ChecklistVersionService.php create mode 100644 app/Services/ContactService.php create mode 100644 app/Services/ContributionService.php create mode 100644 app/Services/CorsService.php create mode 100644 app/Services/CourseNotificationService.php create mode 100644 app/Services/FilterItemService.php create mode 100644 app/Services/FilterItemsAssociationService.php create mode 100644 app/Services/FilterService.php create mode 100644 app/Services/LearningProductService.php create mode 100644 app/Services/ManagementLinkService.php create mode 100644 app/Services/MemberService.php create mode 100644 app/Services/QueryBuilderService.php create mode 100644 app/Services/RevisionService.php create mode 100644 app/Services/RoleService.php create mode 100644 app/Services/SummaryService.php create mode 100644 app/Services/SynonymService.php create mode 100644 app/Services/UserService.php create mode 100644 app/Services/VersionService.php create mode 100644 artisan create mode 100644 bootstrap/app.php create mode 100644 bootstrap/cache/.gitignore create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 config/app.php create mode 100644 config/auth.php create mode 100644 config/backup.php create mode 100644 config/broadcasting.php create mode 100644 config/cache.php create mode 100644 config/cors.php create mode 100644 config/database.php create mode 100644 config/filesystems.php create mode 100644 config/hashing.php create mode 100644 config/logging.php create mode 100644 config/mail.php create mode 100644 config/queue.php create mode 100644 config/sanctum.php create mode 100644 config/services.php create mode 100644 config/session.php create mode 100644 config/sso.php create mode 100644 config/view.php create mode 100644 config/websockets.php create mode 100644 database/.gitignore create mode 100644 database/factories/LearningProductFactory.php create mode 100644 database/factories/UserFactory.php create mode 100644 database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php create mode 100644 database/migrations/2014_10_12_000000_create_users_table.php create mode 100644 database/migrations/2014_10_12_100000_create_password_resets_table.php create mode 100644 database/migrations/2019_08_19_000000_create_failed_jobs_table.php create mode 100644 database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php create mode 100644 database/migrations/2020_03_16_185528_create_roles_table.php create mode 100644 database/migrations/2020_03_16_185728_create_role_user_table.php create mode 100644 database/migrations/2020_03_31_105112_create_learning_products_table.php create mode 100644 database/migrations/2020_04_10_102625_create_media_table.php create mode 100644 database/migrations/2020_05_20_105414_create_filters_table.php create mode 100644 database/migrations/2020_05_20_105543_create_versions_table.php create mode 100644 database/migrations/2020_05_20_113018_create_filter_items_table.php create mode 100644 database/migrations/2020_06_25_093338_create_filter_items_associations_table.php create mode 100644 database/migrations/2020_07_23_154407_create_accreditations_table.php create mode 100644 database/migrations/2020_07_27_104731_create_course_notifications_table.php create mode 100644 database/migrations/2020_08_03_115058_create_checklist_categories_table.php create mode 100644 database/migrations/2020_08_03_120512_create_checklists_table.php create mode 100644 database/migrations/2020_08_03_120531_create_checklist_versions_table.php create mode 100644 database/migrations/2020_09_15_104601_create_notifications_table.php create mode 100644 database/migrations/2020_09_30_185253_create_synonyms_table.php create mode 100644 database/migrations/2020_10_01_205042_create_learning_product_synonym.php create mode 100644 database/migrations/2020_10_06_070912_create_branches_table.php create mode 100644 database/migrations/2020_10_06_070913_create_members_table.php create mode 100644 database/migrations/2020_10_19_093919_create_addresses_table.php create mode 100644 database/migrations/2020_10_20_175422_create_summaries_table.php create mode 100644 database/migrations/2020_11_03_190145_create_contacts_table.php create mode 100644 database/migrations/2020_11_10_120935_create_branch_members_table.php create mode 100644 database/migrations/2020_11_11_180207_create_revisions_table.php create mode 100644 database/migrations/2021_02_05_175646_add_quality_standards_to_learning_products.php create mode 100644 database/migrations/2021_02_15_220616_add_membership_fields_to_members_table.php create mode 100644 database/migrations/2021_02_16_134803_add_fields_to_addresses_table.php create mode 100644 database/migrations/2021_02_16_165823_add_fields_to_contacts_table.php create mode 100644 database/migrations/2021_03_01_224204_add_sent_to_course_notifications_table.php create mode 100644 database/migrations/2021_03_05_224107_create_jobs_table.php create mode 100644 database/migrations/2021_03_23_143422_add_approvated_field_to_member_childrens.php create mode 100644 database/migrations/2021_05_22_204435_create_management_links_table.php create mode 100644 database/migrations/2021_07_29_172540_add_link_to_filter_items_table.php create mode 100644 database/migrations/2021_08_12_091242_rename_functions_in_contacts_table.php create mode 100644 database/migrations/2021_08_13_091011_add_info_country_to_members_table.php create mode 100644 database/migrations/2021_08_13_104032_create_contributions_table.php create mode 100644 database/migrations/2021_08_17_160939_add_approvated_fields_to_contributions_table.php create mode 100644 database/migrations/2021_08_26_095858_delete_representative_fields_from_addresses_table.php create mode 100644 database/migrations/2021_08_26_123159_alter_type_in_members_table.php create mode 100644 database/migrations/2021_08_26_124838_delete_some_cc_and_cp_addresses_fields_from_contacts_table.php create mode 100644 database/migrations/2021_08_26_173117_add_address_id_to_contacts_table.php create mode 100644 database/migrations/2021_08_27_115256_delete_and_rename_fields_from_contacts_table.php create mode 100644 database/migrations/2021_08_31_152727_add_super_admin_entry_to_roles_table.php create mode 100644 database/migrations/2022_01_07_145123_add_for_members_to_learning_products_table.php create mode 100644 database/migrations/2022_03_01_121923_make_for_member_nullable_on_learning_products_table.php create mode 100644 database/migrations/2022_05_23_133500_add_thirdy_part_training_to_learning_products.php create mode 100644 database/migrations/2022_07_05_192100_add_value_to_enum_type_field_in_addresses.php create mode 100644 database/migrations/2022_10_13_202030_create_member_users_table.php create mode 100644 database/migrations/2022_10_13_204614_migrate_user_id_column_from_members_table.php create mode 100644 database/migrations/2022_10_14_115355_add_unique_index_to_member_users_table.php create mode 100644 database/migrations/2022_10_14_171043_alter_columns_in_member_users_table_to_cascade_on_delete.php create mode 100644 database/migrations/2025_05_26_215523_add_voor_opleiders_to_learning_products_table.php create mode 100644 database/seeds/BranchSeeder.php create mode 100644 database/seeds/ChecklistSeeder.php create mode 100644 database/seeds/DatabaseSeeder.php create mode 100644 database/seeds/FilterSeeder.php create mode 100644 database/seeds/GlobalDbImportSeeder.php create mode 100644 database/seeds/LearningProductSeeder.php create mode 100644 database/seeds/MemberSeeder.php create mode 100644 database/seeds/RolesTableSeeder.php create mode 100644 database/seeds/SynonymSeeder.php create mode 100644 database/seeds/UserSeeder.php create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 phpunit.xml create mode 100644 project.json create mode 100644 public/.htaccess create mode 100644 public/css/app.css create mode 100644 public/favicon.ico create mode 100644 public/images/facebook.png create mode 100644 public/images/inge.jpeg create mode 100644 public/images/kees.jpg create mode 100644 public/images/kees.png create mode 100644 public/images/linkedin.png create mode 100644 public/images/logo.png create mode 100644 public/images/logosmall.png create mode 100644 public/images/twitter.png create mode 100644 public/index.php create mode 100644 public/js/app.js create mode 100644 public/js/app.js.LICENSE.txt create mode 100644 public/mix-manifest.json create mode 100644 public/robots.txt create mode 120000 public/storage create mode 100644 resources/data/mijnggz.json create mode 100644 resources/js/app.js create mode 100644 resources/js/bootstrap.js create mode 100644 resources/lang/en/auth.php create mode 100644 resources/lang/en/pagination.php create mode 100644 resources/lang/en/passwords.php create mode 100644 resources/lang/en/validation.php create mode 100644 resources/sass/app.scss create mode 100644 resources/views/emails/courses/notification.blade.php create mode 100644 resources/views/emails/members/hasChanges.blade.php create mode 100644 resources/views/welcome.blade.php create mode 100644 routes/api.php create mode 100644 routes/channels.php create mode 100644 routes/console.php create mode 100644 routes/web.php create mode 100644 server.php create mode 100644 storage/app/.gitignore create mode 100644 storage/app/public/.gitignore create mode 100644 storage/framework/.gitignore create mode 100644 storage/framework/testing/.gitignore create mode 100644 storage/media-library/temp/FHVsBDPBUX8Xj4mPIYayGvTbZ90kpIAy/Cn9zkEPfkgCZFVZuthumb.png create mode 100644 storage/media-library/temp/FHVsBDPBUX8Xj4mPIYayGvTbZ90kpIAy/PqQiydu8BuWpY4vX.png create mode 100644 storage/media-library/temp/MvtdToxLFbDErwc9qKFklXfxoonJ6AVo/6B4HmQuhVrKAdLQEthumb.png create mode 100644 storage/media-library/temp/MvtdToxLFbDErwc9qKFklXfxoonJ6AVo/CbD3be6HxfEjUlDD.png create mode 100644 storage/media-library/temp/TTCkZRsrIB4wufAkODpAbIbVfjnjfJj8/JOdSX1VM1yA2NXZLthumb.png create mode 100644 storage/media-library/temp/TTCkZRsrIB4wufAkODpAbIbVfjnjfJj8/kOVVGTubSZC5t8Od.png create mode 100644 storage/media-library/temp/Vrb8U3rnzl63qo5NlW09son4f4q1F9cc/JwkIHErolCXfeAt7.png create mode 100644 storage/media-library/temp/Vrb8U3rnzl63qo5NlW09son4f4q1F9cc/vsmS9dFNLDP8ny5Jthumb.png create mode 100644 storage/media-library/temp/c2HRIVmxN31sUQH1LIDmHdujTjF0YvCz/QjRDupGtiPnfcyTzthumb.png create mode 100644 storage/media-library/temp/c2HRIVmxN31sUQH1LIDmHdujTjF0YvCz/z6jIVncxKIbzpmam.png create mode 100644 storage/media-library/temp/cVoZbyWgyI7f2L8vtOzChAdXaH0UCUpd/8YWiNvQ1Z4mT1Gsi.png create mode 100644 storage/media-library/temp/cVoZbyWgyI7f2L8vtOzChAdXaH0UCUpd/UZv2AWfXOVFIU0DYthumb.png create mode 100644 storage/media-library/temp/cjXQZ7k82rtq5PImTKc43ff8PejisgsF/hntOtMSu4477Ukse.png create mode 100644 storage/media-library/temp/cjXQZ7k82rtq5PImTKc43ff8PejisgsF/vlR4pDkIUUApanaFthumb.png create mode 100644 storage/media-library/temp/dsYeEoj3LlTooYsjUR14J7e643D0mCUZ/CP6j81eqaRoysQdhthumb.png create mode 100644 storage/media-library/temp/dsYeEoj3LlTooYsjUR14J7e643D0mCUZ/nMDgHG0CZmqpPWLB.png create mode 100644 storage/media-library/temp/f4Oh0a9JNc6yyu79Luap5WkaGpSdfEq3/9O9KkrNuQqV4oz2c.png create mode 100644 storage/media-library/temp/f4Oh0a9JNc6yyu79Luap5WkaGpSdfEq3/AfvgEa6fZrBWrP7Mthumb.png create mode 100644 storage/media-library/temp/gxUv44PM67N1maIzagCkGLJMU9K9H8iX/8dFmztepRgzcu92Fthumb.png create mode 100644 storage/media-library/temp/gxUv44PM67N1maIzagCkGLJMU9K9H8iX/lHHQubTqlaC561WR.png create mode 100644 storage/media-library/temp/lVWSRvjyEpJPsuuXGrDIVx6Uhl4z6lI1/U3XEk3kUyz2IBrSD.png create mode 100644 storage/media-library/temp/lVWSRvjyEpJPsuuXGrDIVx6Uhl4z6lI1/hIyCV8yeocCtJsStthumb.png create mode 100644 storage/media-library/temp/oIsCr3rPfR0ZzkKP73YYb3HAc0nOow39/NsDIFoyvoYqFsXywthumb.png create mode 100644 storage/media-library/temp/oIsCr3rPfR0ZzkKP73YYb3HAc0nOow39/jUZ5Dvz9xuMmZlud.png create mode 100644 storage/media-library/temp/sILY79XKRX3JmlCsWIzZSbRtlasQIt2H/TXtUjXl4mtqfCB03thumb.png create mode 100644 storage/media-library/temp/sILY79XKRX3JmlCsWIzZSbRtlasQIt2H/jRdw9n0fbCcoSP4H.png create mode 100644 storage/media-library/temp/vuHmCnCZagkigXl7gq7pQ6jUzoATax4C/qwQyHfXzJSuOaQlnthumb.png create mode 100644 storage/media-library/temp/vuHmCnCZagkigXl7gq7pQ6jUzoATax4C/wlG1hNclhfZbmKa7.png create mode 100644 stubs/controller.api.stub create mode 100644 stubs/controller.invokable.stub create mode 100644 stubs/controller.model.api.stub create mode 100644 stubs/controller.model.stub create mode 100644 stubs/controller.nested.api.stub create mode 100644 stubs/controller.nested.stub create mode 100644 stubs/controller.plain.stub create mode 100644 stubs/controller.stub create mode 100644 stubs/custom/Controller.stub create mode 100644 stubs/custom/Model.stub create mode 100644 stubs/custom/Request.stub create mode 100644 stubs/custom/Service.stub create mode 100644 stubs/custom/Validator.stub create mode 100644 stubs/job.queued.stub create mode 100644 stubs/job.stub create mode 100644 stubs/migration.create.stub create mode 100644 stubs/migration.stub create mode 100644 stubs/migration.update.stub create mode 100644 stubs/model.pivot.stub create mode 100644 stubs/model.stub create mode 100644 stubs/request.stub create mode 100644 stubs/test.stub create mode 100644 stubs/test.unit.stub create mode 100644 tests/CreatesApplication.php create mode 100644 tests/Feature/ExampleTest.php create mode 100644 tests/TestCase.php create mode 100644 tests/Unit/ExampleTest.php create mode 100644 webpack.mix.js diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6537ca4 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e8fd25d --- /dev/null +++ b/.env.example @@ -0,0 +1,51 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://127.0.0.1:8001 +APP_URL_FRONTEND=http://localhost:3000 + +LOG_CHANNEL=stack + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=3110_cms +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=pusher +CACHE_DRIVER=file +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=smtp.mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS=null +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= + +PUSHER_APP_ID=local +PUSHER_APP_KEY=local +PUSHER_APP_SECRET=local +PUSHER_APP_CLUSTER=mt1 + +PUSHER_APP_ENCRYPTED=true +PUSHER_APP_PORT=6001 +PUSHER_APP_SCHEME=http + +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..967315d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto +*.css linguist-vendored +*.scss linguist-vendored +*.js linguist-vendored +CHANGELOG.md export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3462ea1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +/.local/ +/node_modules/ +/public/hot/ +/public/storage/ +/storage/debugbar/ +/storage/*.key +/vendor +/.vscode +.DS_Store +.env +.env.backup +.phpunit.result.cache +Homestead.json +Homestead.yaml +npm-debug.log +yarn-error.log diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 0000000..1db61d9 --- /dev/null +++ b/.styleci.yml @@ -0,0 +1,13 @@ +php: + preset: laravel + disabled: + - unused_use + finder: + not-name: + - index.php + - server.php +js: + finder: + not-name: + - webpack.mix.js +css: true diff --git a/README.md b/README.md index 4efb815..9d29c81 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,71 @@ -# laravel-backend +# Mijn-GGZ back-end -GGZ Ecademy Laravel API Backend \ No newline at end of file +This is a Laravel project that requires [PHP 7](https://stackoverflow.com/questions/34909101/how-can-i-easily-switch-between-php-versions-on-mac-osx). + +## Installation + +To install this project, first clone the repository to your local machine. + +Next, navigate into the project directory and run the following command to install the required dependencies: + +``` +composer install +``` + +## Running the Project + +To run the project, you can use the built-in Laravel development server. Navigate to the project directory in your terminal and run the following command: + +``` +php artisan serve --port=8000 +``` + +This will start the server and make the project available at `http://localhost:8000`. + +You can stop the server at any time by pressing `Ctrl+C` in your terminal. + +You can visit http://127.0.0.1:8000/api/roles to see if the project is running succesfully. + + +## Configuration +This Laravel project comes with a `.env.example` file that you can use to configure the application. You can create a `.env` file by copying the `.env.example` file: + +``` +cp .env.example .env +``` + +In the `.env` file, you can set your database credentials, configure your email settings, and more. Since this project runs in conjunction with [mijn-ggz-frontend](https://github.com/3110-dev/mijnggz-frontend) you will need to specify the location of this environment in the .env file. This is being defined with the property name `APP_URL_FRONTEND` + + +## Database set-up + +This project comes with database migrations that you can use to create the necessary database tables. To run the migrations, use the following command: + +``` +php artisan migrate +``` + +This will create the required database tables based on the migration files found in the `database/migrations` directory. + +## Copying existing database +If you have a DB export, that you'd like to use. You can do that with the following command: +``` +mysql -u root -p < database_filename.sql +``` + +## Testing + +This project comes with PHPUnit tests that you can run to ensure everything is working as expected. To run the tests, use the following command: + +``` +php artisan test +``` + +This will run all the tests found in the `tests/` directory. + +## Conclusion + +That's it! You now know how to install, run, and configure this Laravel project. Happy coding! + +## Note +Note that the server configuration should refer to `public/index.php`, not `server.php` diff --git a/app/Console/Commands/CrudGenerator.php b/app/Console/Commands/CrudGenerator.php new file mode 100644 index 0000000..8c83846 --- /dev/null +++ b/app/Console/Commands/CrudGenerator.php @@ -0,0 +1,127 @@ +argument('name'); + + $this->controller($name); + $this->model($name); + $this->service($name); + $this->migration($name); + // $this->validator($name); + //$this->request($name); + + File::append(base_path('routes/api.php'), 'Route::resource(\'' . Str::plural(strtolower($name)) . "', '{$name}Controller');"); + } + + protected function controller($name) + { + $controllerTemplate = str_replace( + [ + '{{modelName}}', + '{{modelNamePluralLowerCase}}', + '{{modelNameSingularLowerCase}}' + ], + [ + $name, + strtolower(Str::plural($name)), + strtolower($name) + ], + $this->getStub('Controller') + ); + + file_put_contents(app_path("/Http/Controllers/{$name}Controller.php"), $controllerTemplate); + } + + protected function model($name) + { + $modelTemplate = str_replace( + ['{{modelName}}'], + [$name], + $this->getStub('Model') + ); + + if (!file_exists($path = app_path('/Repositories'))) + mkdir($path, 0777, true); + + file_put_contents(app_path("/Repositories/{$name}.php"), $modelTemplate); + } + + protected function request($name) + { + $requestTemplate = str_replace( + ['{{modelName}}'], + [$name], + $this->getStub('Request') + ); + + if (!file_exists($path = app_path('/Http/Requests'))) + mkdir($path, 0777, true); + + file_put_contents(app_path("/Http/Requests/{$name}Request.php"), $requestTemplate); + } + + protected function service($name) + { + $modelTemplate = str_replace( + [ + '{{modelName}}', + '{{modelNameSingularLowerCase}}' + ], + [ + $name, + strtolower($name) + ], + $this->getStub('Service') + ); + + if (!file_exists($path = app_path('/Services'))) + mkdir($path, 0777, true); + + file_put_contents(app_path("/Services/{$name}Service.php"), $modelTemplate); + } + + protected function migration($name) + { + $tableName = strtolower(Str::plural($name)); + Artisan::call('make:migration', ['name' => "create_{$tableName}_table"]); + } + + protected function validator($name) + { + $modelTemplate = str_replace( + ['{{modelName}}'], + [$name], + $this->getStub('Validator') + ); + + if (!file_exists($path = app_path('/Validators'))) + mkdir($path, 0777, true); + + file_put_contents(app_path("/Validators/{$name}Validator.php"), $modelTemplate); + } + + protected function getStub($type) + { + return file_get_contents(base_path("stubs/custom/$type.stub")); + } +} diff --git a/app/Console/Commands/SendProductEmailNotifications.php b/app/Console/Commands/SendProductEmailNotifications.php new file mode 100644 index 0000000..4a257f8 --- /dev/null +++ b/app/Console/Commands/SendProductEmailNotifications.php @@ -0,0 +1,84 @@ +userService = $userService; + $this->courseNotificationService = $courseNotificationService; + } + + /** + * Execute the console command. + * + * @return int + */ + public function handle() + { + $course_notifications = $this->courseNotificationService->getExpiredToSendWithProducts(); + + // No notifications? Exit + if ($course_notifications->count() <= 0) return 0; + + foreach ($course_notifications as $notification) { + + $users = json_decode($notification->users); + $emails = json_decode($notification->emails); + + // Send emails to not registered users + if (count($emails) > 0) { + + foreach ($emails as $email) { + Mail::to($email)->queue(new CourseNotificationMail($notification)); + } + } + + // Send emails to specified registered users + foreach ($users as $userId) { + + $user = $this->userService->get($userId); + Mail::to($user)->queue(new CourseNotificationMail($notification)); + } + + // Mark as sent + $notification->sent = true; + $notification->save(); + } + + return 0; + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php new file mode 100644 index 0000000..69914e9 --- /dev/null +++ b/app/Console/Kernel.php @@ -0,0 +1,41 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + * + * @return void + */ + protected function commands() + { + $this->load(__DIR__.'/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/app/Data/Validation/NetteValidator.php b/app/Data/Validation/NetteValidator.php new file mode 100644 index 0000000..cefb1f6 --- /dev/null +++ b/app/Data/Validation/NetteValidator.php @@ -0,0 +1,31 @@ +schemaProcessor = $schemaProcessor; + $this->schema = $schema; + } + + public function validateArray(array $items): ValidationResult + { + try { + $this->schemaProcessor->process($this->schema, $items); + + return $this->success(); + } catch (ValidationException $e) { + return $this->error($e->getMessage()); + } + } +} diff --git a/app/Data/Validation/ValidatesArray.php b/app/Data/Validation/ValidatesArray.php new file mode 100644 index 0000000..fb81e8b --- /dev/null +++ b/app/Data/Validation/ValidatesArray.php @@ -0,0 +1,12 @@ +error = $error; + $this->errorMessage = $errorMessage; + } + + /** + * @return void|never + */ + final public function assertIsSuccess(): void + { + if ($this->isError()) { + throw new ValidationException($this->getErrorMessage()); + } + } + + public function isError(): bool + { + return $this->error; + } + + public function isSuccess(): bool + { + return !$this->isError(); + } + + public function getErrorMessage(): ?string + { + return $this->errorMessage; + } +} diff --git a/app/Data/Validation/Validator.php b/app/Data/Validation/Validator.php new file mode 100644 index 0000000..8483a58 --- /dev/null +++ b/app/Data/Validation/Validator.php @@ -0,0 +1,16 @@ + 'mio test' + ]; + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + // return new PrivateChannel('channel-name'); + return new channel('communications'); + } + + /** + * The event's broadcast name. + * + * @return string + */ + public function broadcastAs() + { + return 'global.message'; + } +} diff --git a/app/Events/UserInfoUpdated.php b/app/Events/UserInfoUpdated.php new file mode 100644 index 0000000..f50976e --- /dev/null +++ b/app/Events/UserInfoUpdated.php @@ -0,0 +1,48 @@ +userId = $user->id; + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + return new channel('updates'); + } + + /** + * The event's broadcast name. + * + * @return string + */ + public function broadcastAs() + { + return 'updated-user-' . $this->userId; + } +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 0000000..b46690a --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,65 @@ +expectsJson()) { + return response()->json(['message' => 'De inloggegevens zijn onjuist'], 401); + } + + return redirect()->guest('login'); + } +} diff --git a/app/Http/Controllers/AccreditationController.php b/app/Http/Controllers/AccreditationController.php new file mode 100644 index 0000000..df79220 --- /dev/null +++ b/app/Http/Controllers/AccreditationController.php @@ -0,0 +1,82 @@ +accreditationService = $accreditationService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $accreditations = $this->accreditationService->getAll(); + + return response()->json($accreditations, 201); + } + + public function store(AccreditationStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + if ($request['filter_items']) { + $filter_items = Arr::collapse($request['filter_items']); + $filter_items = Arr::flatten($filter_items); + } + + $data = Arr::except($request->validated(), ['filter_items']); + + $accreditation = $this->accreditationService->save($data); + + if (isset($filter_items) && $filter_items) { + + $accreditation->filters()->delete(); + + foreach ($filter_items as $filter_item_id) { + $filter_association = new FilterItemsAssociation(); + $filter_association->filter_item_id = $filter_item_id; + $accreditation->filters()->save($filter_association); + } + } + + // return $request; + return response()->json($accreditation->load('filters'), 201); + } + + public function show($id) + { + $accreditation = $this->accreditationService->get($id); + + return response()->json($accreditation); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->accreditationService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/AddressController.php b/app/Http/Controllers/AddressController.php new file mode 100644 index 0000000..70a5479 --- /dev/null +++ b/app/Http/Controllers/AddressController.php @@ -0,0 +1,79 @@ +memberService = $memberService; + $this->addressService = $addressService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $addresses = $this->addressService->getAll(); + + return response()->json($addresses, 201); + } + + public function store(AddressStore $request) + { + $member = $this->memberService->get($request->member_id); + + if (!$member) { + return response()->json(['message' => 'Member not found.'], 404); + } + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + // $isUserDelegated = $member->user_id === auth()->user()->id; + + if (!$isSuperAdmin && !$isAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $request_data = $request->validated(); + + // if is an user delegated to work with that member, remove approved_by and approved_at + $request_data['revisor_id'] = $isSuperAdminOrAdmin ? auth()->user()->id : null; + $request_data['approved_at'] = $isSuperAdminOrAdmin ? now() : null; + + $address = $this->addressService->save($request_data); + + return response()->json($address, 201); + } + + public function show($id) + { + $address = $this->addressService->get($id); + + return response()->json($address); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + + if (!$isSuperAdminOrAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->addressService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php new file mode 100644 index 0000000..67abadc --- /dev/null +++ b/app/Http/Controllers/AuthController.php @@ -0,0 +1,199 @@ +userService = $userService; + $this->memberService = $memberService; + + $this->middleware('auth:sanctum', [ + 'except' => [ + 'get_sso_data', + 'login', + 'signup', + 'sso', + 'status', + ], + ]); + } + + public function login(Login $request) + { + if (empty($request->token)) { + $user = $this->userService->getByEmailWith($request->email, ['roles']); + + if (!$user || !Hash::check($request->password, $user->password)) { + return response(['error' => ['The provided credentials are incorrect.']]); + } + + } else { + $client = new \GuzzleHttp\Client(['base_uri' => static::determineIdpUri()]); + + try { + $response = $client->request('POST', 'protocol/openid-connect/token', [ + 'form_params' => [ + 'code' => $request->token, + 'client_id' => config('sso.client_id'), + 'client_secret' => config('sso.secret'), + 'redirect_uri' => config('sso.redirect_uri'), + 'scope' => 'openid profile', + 'grant_type' => 'authorization_code' + ] + ]); + + $token = json_decode($response->getBody(), true)['id_token']; + + $decodedToken = \Firebase\JWT\JWT::decode($token, $this->getJwks(), false); + + } catch (ClientException $e) { + $html = 'Login faild with token:' . $request->token; + Mail::send([], [], function ($message) use ($html) { + $message + ->to('joris@ggzecademy.nl') + ->subject('Login failed via SSO') + ->setBody($html, 'text/html'); + }); + } + + + if (empty($decodedToken->kg) || !stristr($decodedToken->kg, 'KG')) { + return response(['error' => ['The provided credentials are incorrect.']]); + } + + $organization_id = str_replace('KG_', '', $decodedToken->kg); + + $member = $this->memberService->get($organization_id); + + $user = $this->userService->getByEmailWith($decodedToken->email, ['roles']); + + if (!$user) { + $new_user = [ + 'first_name' => $decodedToken->given_name, + 'last_name' => $decodedToken->family_name, + 'email' => $decodedToken->email, + 'password' => 'aT@5*Wb*W7gseVhC', + ]; + + $user = $this->userService->save($new_user, false); + $user->roles()->attach(Role::whereName('user')->firstOrFail()); + } + + $member->users()->syncWithoutDetaching([$user->id]); + $member->save(); + } + + $user->last_login_at = $user->logged_at; + $user->last_login_ip = $request->getClientIp(); + $user->logged_at = Carbon::now(); + $user->save(); + + $token = $user->createToken('cms-token')->plainTextToken; + + $response = ['token' => $token]; + + return response($response, 201); + } + + private function getJwks(): array + { + $jwkData = json_decode( + file_get_contents(static::determineIdpUri() . 'protocol/openid-connect/certs'), + true + ); + + return \Firebase\JWT\JWK::parseKeySet($jwkData); + } + + public function logout(Request $request) + { + $request->user()->tokens()->delete(); + + return response()->json('Logged-out', 201); + } + + public function status(Request $request) + { + $bearerToken = $request->bearerToken(); + + if (is_null($bearerToken)) { + return ApiResponse::error( + new Error\AuthController\MissingBearerTokenError(), + ); + } else { + $accessToken = PersonalAccessToken::findToken($bearerToken); + + return ApiResponse::success([ + 'authenticated' => $accessToken instanceof PersonalAccessToken, + 'user' => $accessToken ? $accessToken->tokenable->email : null, + ]); + } + } + + public function me(Request $request) + { + return response()->json(new UserLoggedResource($request->user())); + } + + public function sso() + { + return Redirect::to(static::buildSsoEndpointUri()); + } + + private static function buildSsoEndpointUri(): string + { + $endpointQuery = http_build_query([ + 'client_id' => config('sso.client_id'), + 'redirect_uri' => config('sso.redirect_uri'), + 'scope' => 'openid profile', + 'response_type' => 'code', + 'nonce' => md5(rand()), // TODO: proper nonce handling + ], '', '&', PHP_QUERY_RFC3986); + $endpointQuery = str_replace('%2B', '+', $endpointQuery); + + return sprintf('%s?%s', static::determineIdpUri('protocol/openid-connect/auth'), $endpointQuery); + } + + private static function determineIdpUri(string $path = ''): string + { + $baseUri = rtrim(config('sso.idp_base_uri'), '/'); + + return sprintf('%s/%s', $baseUri, $path); + } + + public function get_sso_data() { + $client = new \GuzzleHttp\Client([ + 'base_uri' => static::determineIdpUri(), + 'headers' => [ + 'Authorization' => sprintf('Bearer %s', $_GET['token']), + 'Accept' => 'application/json', + ], + ]); + + $response = $client->request('GET', 'oidc/userinfo.php'); + + return response($response->getBody()->getContents(), 201); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/AuthController.php.bak b/app/Http/Controllers/AuthController.php.bak new file mode 100644 index 0000000..4d79722 --- /dev/null +++ b/app/Http/Controllers/AuthController.php.bak @@ -0,0 +1,213 @@ +userService = $userService; + $this->memberService = $memberService; + + $this->middleware('auth:sanctum', [ + 'except' => [ + 'get_sso_data', + 'login', + 'signup', + 'sso', + 'status', + ], + ]); + } + + public function login(Login $request) + { + if (empty($request->token)) { + $user = $this->userService->getByEmailWith($request->email, ['roles']); + + if (!$user || !Hash::check($request->password, $user->password)) { + return response(['error' => ['The provided credentials are incorrect.']]); + } + + } else { + $client = new \GuzzleHttp\Client(['base_uri' => static::determineIdpUri()]); + + $headers = [ + 'Authorization' => 'Bearer ' . $request->token, + 'Accept' => 'application/json', + ]; + + try { + $response = $client->request('GET', 'oidc/userinfo.php', [ + 'headers' => $headers + ]); + } catch (ClientException $e) { + $html = 'Login faild with token:' . $request->token; + Mail::send([], [], function ($message) use ($html) { + $message + ->to('jasper@3110.nl') + ->subject('Login failed via SSO') + ->setBody($html, 'text/html'); + }); + } + + $data = $response->getBody()->getContents(); + $data = json_decode($data); + + if (empty($data->profile) || !stristr($data->profile, 'KG')) { + return response(['error' => ['The provided credentials are incorrect.']]); + } + + $profile_arr = explode(',', $data->profile); + $organization_id = str_replace('KG_', '', $profile_arr[0]); + + $member = $this->memberService->get($organization_id); + + $user = $this->userService->getByEmailWith($data->sub, ['roles']); + + if (!$user) { + $new_user = [ + 'first_name' => $data->given_name, + 'last_name' => $data->family_name, + 'email' => $data->sub, + 'password' => 'aT@5*Wb*W7gseVhC', + ]; + + $user = $this->userService->save($new_user, false); + $user->roles()->attach(Role::whereName('user')->firstOrFail()); + } + + $member->users()->syncWithoutDetaching([$user->id]); + $member->save(); + } + + $user->last_login_at = $user->logged_at; + $user->last_login_ip = $request->getClientIp(); + $user->logged_at = Carbon::now(); + $user->save(); + + $token = $user->createToken('cms-token')->plainTextToken; + + $response = ['token' => $token]; + + return response($response, 201); + } + + public function logout(Request $request) + { + $request->user()->tokens()->delete(); + + return response()->json('Logged-out', 201); + } + + public function status(Request $request) + { + $bearerToken = $request->bearerToken(); + + if (is_null($bearerToken)) { + return ApiResponse::error( + new Error\AuthController\MissingBearerTokenError(), + ); + } else { + $accessToken = PersonalAccessToken::findToken($bearerToken); + + return ApiResponse::success([ + 'authenticated' => $accessToken instanceof PersonalAccessToken, + 'user' => $accessToken ? $accessToken->tokenable->email : null, + ]); + } + } + + public function me(Request $request) + { + return response()->json(new UserLoggedResource($request->user())); + } + + private static function dumpLocal(...$values): void + { + if (static::isLocal()) { + dd(...$values); + } + } + + private static function isLocal(): bool + { + return $_SERVER['REMOTE_ADDR'] === '89.98.81.170'; + } + + public function sso() + { + $cookieFileHandle = tmpfile(); + $cookieFilePath = stream_get_meta_data($cookieFileHandle)['uri']; + + $ch = curl_init(static::buildSsoEndpointUri()); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_COOKIESESSION, true); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFilePath); + curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFilePath); + $result = curl_exec($ch); + curl_close($ch); + + fclose($cookieFileHandle); + + if (static::isLocal()) { + echo $result; exit; + } + echo '
' . $result . '
'; + } + + private static function buildSsoEndpointUri(): string + { + $endpointQuery = http_build_query([ + 'client_id' => config('sso.client_id'), + 'redirect_uri' => config('sso.redirect_uri'), + 'scope' => implode('+', config('sso.scopes')), + 'response_type' => 'id_token+token', + 'response_mode' => 'form_post', + 'nonce' => md5(rand()), // TODO: proper nonce handling + ], '', '&', PHP_QUERY_RFC3986); + $endpointQuery = str_replace('%2B', '+', $endpointQuery); + + return sprintf('%s?%s', static::determineIdpUri('oidc/authorize.php'), $endpointQuery); + } + + private static function determineIdpUri(string $path = ''): string + { + $baseUri = rtrim(config('sso.idp_base_uri'), '/'); + + return sprintf('%s/%s', $baseUri, $path); + } + + public function get_sso_data() { + $client = new \GuzzleHttp\Client([ + 'base_uri' => static::determineIdpUri(), + 'headers' => [ + 'Authorization' => sprintf('Bearer %s', $_GET['token']), + 'Accept' => 'application/json', + ], + ]); + + $response = $client->request('GET', 'oidc/userinfo.php'); + + return response($response->getBody()->getContents(), 201); + } +} diff --git a/app/Http/Controllers/BranchController.php b/app/Http/Controllers/BranchController.php new file mode 100644 index 0000000..91b5a65 --- /dev/null +++ b/app/Http/Controllers/BranchController.php @@ -0,0 +1,62 @@ +branchService = $branchService; + + $this->middleware('auth:sanctum'); + } + + public function index() + { + $branches = $this->branchService->getAll(); + + return response()->json($branches, 201); + } + + public function store(BranchStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $branch = $this->branchService->save($request->all()); + + return response()->json($branch, 201); + } + + public function show($id) + { + $branch = $this->branchService->get($id); + + return response()->json($branch); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->branchService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/ChecklistCategoryController.php b/app/Http/Controllers/ChecklistCategoryController.php new file mode 100644 index 0000000..01ec93f --- /dev/null +++ b/app/Http/Controllers/ChecklistCategoryController.php @@ -0,0 +1,44 @@ +checklistCategoryService = $checklistCategoryService; + } + + public function index() + { + $checklistCategories = $this->checklistCategoryService->with(['items']); + + return response()->json($checklistCategories, 201); + } + + public function store(ChecklistCategoryRequest $request) + { + $checklistcategory = $this->checklistCategoryService->save($request->all()); + + return response()->json($checklistcategory, 201); + } + + public function show($id) + { + $checklistcategory = $this->checklistCategoryService->get($id); + + return response()->json($checklistcategory); + } + + public function destroy($id) + { + $this->checklistCategoryService->delete($id); + return response()->json(null, 204); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/ChecklistController.php b/app/Http/Controllers/ChecklistController.php new file mode 100644 index 0000000..ca44174 --- /dev/null +++ b/app/Http/Controllers/ChecklistController.php @@ -0,0 +1,44 @@ +checklistService = $checklistService; + } + + public function index() + { + $checklists = $this->checklistService->getAll(); + + return response()->json($checklists, 201); + } + + public function store(ChecklistRequest $request) + { + $checklist = $this->checklistService->save($request->all()); + + return response()->json($checklist, 201); + } + + public function show($id) + { + $checklist = $this->checklistService->get($id); + + return response()->json($checklist); + } + + public function destroy($id) + { + $this->checklistService->delete($id); + return response()->json(null, 204); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/ChecklistVersionController.php b/app/Http/Controllers/ChecklistVersionController.php new file mode 100644 index 0000000..e52f02a --- /dev/null +++ b/app/Http/Controllers/ChecklistVersionController.php @@ -0,0 +1,44 @@ +checklistversionService = $checklistversionService; + } + + public function index() + { + $checklistversions = $this->checklistversionService->getAll(); + + return response()->json($checklistversions, 201); + } + + public function store(ChecklistVersionRequest $request) + { + $checklistversion = $this->checklistversionService->save($request->all()); + + return response()->json($checklistversion, 201); + } + + public function show($id) + { + $checklistversion = $this->checklistversionService->get($id); + + return response()->json($checklistversion); + } + + public function destroy($id) + { + $this->checklistversionService->delete($id); + return response()->json(null, 204); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php new file mode 100644 index 0000000..4b2f6c0 --- /dev/null +++ b/app/Http/Controllers/ContactController.php @@ -0,0 +1,83 @@ +contactService = $contactService; + $this->memberService = $memberService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $contacts = $this->contactService->getAll(); + + return response()->json($contacts, 201); + } + + public function store(ContactStore $request) + { + $member = $this->memberService->get($request->member_id); + + if (!$member) { + return response()->json(['message' => 'Member not found.'], 404); + } + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + $isUserDelegated = $member->user_id === auth()->user()->id; + + if ( + !$isSuperAdmin && + !$isAdmin && + !$isUserDelegated + ) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $request_data = $request->validated(); + + // if is an user delegated to work with that member, remove approved_by and approved_at + $request_data['revisor_id'] = $isSuperAdminOrAdmin ? auth()->user()->id : null; + $request_data['approved_at'] = $isSuperAdminOrAdmin ? now() : null; + + $contact = $this->contactService->save($request_data); + + return response()->json($contact, 201); + } + + public function show($id) + { + $contact = $this->contactService->get($id); + + return response()->json($contact); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + + if (!$isSuperAdminOrAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->contactService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/ContributionController.php b/app/Http/Controllers/ContributionController.php new file mode 100644 index 0000000..153090d --- /dev/null +++ b/app/Http/Controllers/ContributionController.php @@ -0,0 +1,103 @@ +memberService = $memberService; + $this->userService = $userService; + $this->contributionService = $contributionService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $contributions = $this->contributionService->getAll(); + + return response()->json($contributions, 201); + } + + public function store(ContributionStore $request) + { + $member = $this->memberService->get($request->member_id); + + if (!$member) { + return response()->json(['message' => 'Member not found.'], 404); + } + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + + $isAppliedToAll = $request->has('toAll') ? true : false; + + if (!$isSuperAdminOrAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $request_data = $request->validated(); + + $request_data['revisor_id'] = auth()->user()->id; + $request_data['approved_at'] = now(); + + $contribution = null; + + if ($isAppliedToAll) { + + $members = $this->memberService->getAll(); + + // Store for all existing members + foreach ($members as $member) { + + $request_data['member_id'] = $member['id']; + + if ($request_data['member_id'] === $member['user_id']) { + $contribution = $this->contributionService->save($request_data); + } else { + $this->contributionService->save($request_data); + } + } + } else { + $contribution = $this->contributionService->save($request_data); + } + + return response()->json($contribution, 201); + } + + public function show($id) + { + $contribution = $this->contributionService->get($id); + + return response()->json($contribution); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + + if (!$isSuperAdminOrAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->contributionService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..a0a2a8a --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,13 @@ +courseNotificationService = $courseNotificationService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + if (!auth()->user()->hasRole('admin')) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $course_notifications = $this->courseNotificationService->getAll(); + + return response()->json($course_notifications, 201); + } + + public function store(CourseNotificationStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $course_notification = $this->courseNotificationService->save($request->validated()); + + return response()->json($course_notification, 201); + } + + public function show($id) + { + $course_notification = $this->courseNotificationService->get($id); + + return response()->json($course_notification); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->courseNotificationService->delete($id); + return response()->json(null, 204); + } + + public function testCommand() + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + Artisan::call('send:lp-notifications'); + return 0; + } +} diff --git a/app/Http/Controllers/CsvExportController.php b/app/Http/Controllers/CsvExportController.php new file mode 100644 index 0000000..6db64d1 --- /dev/null +++ b/app/Http/Controllers/CsvExportController.php @@ -0,0 +1,101 @@ +formatToCsv($results); + + // Send the CSV file to the client + $filename = "export.csv"; + return response($csvOutput, 200) + ->header('Content-Type', 'text/csv') + ->header('Content-Disposition', "attachment; filename=$filename"); + } + + protected function formatToCsv($data) + { + $handle = fopen('php://temp', 'w'); + + // Add headers for CSV (if needed) + fputcsv($handle, [ + 'ID', 'Title', 'Lead Time', 'Short Description', + 'Learning Goals', 'Review', 'Certification', 'Extra Information', + 'Target Audience', 'Quality Standards', 'Contract Agreements', + 'Cover', 'Thumb', 'Titles and Credits' + ]); + + foreach ($data as $row) { + fputcsv($handle, [ + $row->id, + strip_tags($row->title), + strip_tags($row->lead_time), + strip_tags($row->short_description), + strip_tags($row->learning_goals), + strip_tags($row->review), + strip_tags($row->certification), + strip_tags($row->extra_information), + strip_tags($row->target_audience), + strip_tags($row->quality_standards), + strip_tags($row->contract_agreements), + $row->cover, + $row->thumb, + $row->titles_and_credits + ]); + } + + rewind($handle); + $contents = stream_get_contents($handle); + fclose($handle); + + return $contents; + } +} diff --git a/app/Http/Controllers/Error/AuthController/MissingBearerTokenError.php b/app/Http/Controllers/Error/AuthController/MissingBearerTokenError.php new file mode 100644 index 0000000..7540f65 --- /dev/null +++ b/app/Http/Controllers/Error/AuthController/MissingBearerTokenError.php @@ -0,0 +1,24 @@ +filterService = $filterService; + $this->filterItemService = $filterItemService; + $this->middleware('auth:sanctum', [ + 'except' => [ + 'index', 'show' + ] + ]); + } + + public function index() + { + $filters = $this->filterService->with(['items']); + + return response()->json(FiltersResource::collection($filters), 201); + } + + public function indexWithCount() + { + $filters = $this->filterService->withCount(['items']); + + return response()->json(FiltersResource::collection($filters), 201); + } + + public function store(FilterStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $filter = $this->filterService->save($request->all()); + + return response()->json($filter, 201); + } + + public function show($id) + { + $filter = $this->filterService->getOneWith($id, ['items']); + + return response()->json($filter); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->filterService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/FilterItemController.php b/app/Http/Controllers/FilterItemController.php new file mode 100644 index 0000000..ed8e12f --- /dev/null +++ b/app/Http/Controllers/FilterItemController.php @@ -0,0 +1,69 @@ +filterItemService = $filterItemService; + $this->filterItemsAssociationService = $filterItemsAssociationService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $filter_items = $this->filterItemService->getAll(); + + return response()->json($filter_items, 201); + } + + public function store(FilterItemStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $filter_item = $this->filterItemService->save($request->all()); + + return response()->json(new FiltersResource($filter_item), 201); + } + + public function show($id) + { + $filter_item = $this->filterItemService->get($id); + + return response()->json($filter_item); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->filterItemsAssociationService->deleteAllWithFilterItemId($id); + + $this->filterItemService->delete($id); + + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/FilterItemsAssociationController.php b/app/Http/Controllers/FilterItemsAssociationController.php new file mode 100644 index 0000000..68e725f --- /dev/null +++ b/app/Http/Controllers/FilterItemsAssociationController.php @@ -0,0 +1,44 @@ +filterItemsAssociationService = $filterItemsAssociationService; + } + + public function index() + { + $filterItemsAssociations = $this->filterItemsAssociationService->getAll(); + + return response()->json($filterItemsAssociations, 201); + } + + public function store(FilterItemsAssociationRequest $request) + { + $filterItemsAssociations = $this->filterItemsAssociationService->save($request->all()); + + return response()->json($filterItemsAssociations, 201); + } + + public function show($id) + { + $filterItemsAssociations = $this->filterItemsAssociationService->get($id); + + return response()->json($filterItemsAssociations); + } + + public function destroy($id) + { + $this->filterItemsAssociationService->delete($id); + return response()->json(null, 204); + } +} \ No newline at end of file diff --git a/app/Http/Controllers/ForgotPasswordController.php b/app/Http/Controllers/ForgotPasswordController.php new file mode 100644 index 0000000..eee3693 --- /dev/null +++ b/app/Http/Controllers/ForgotPasswordController.php @@ -0,0 +1,35 @@ + $response]); + } + + + protected function sendResetLinkFailedResponse(Request $request, $response) + { + return response(['error' => $response], 422); + } +} diff --git a/app/Http/Controllers/LearningProductController.php b/app/Http/Controllers/LearningProductController.php new file mode 100644 index 0000000..0734845 --- /dev/null +++ b/app/Http/Controllers/LearningProductController.php @@ -0,0 +1,340 @@ +learningProductService = $learningProductService; + $this->middleware('auth:sanctum', [ + 'except' => [ + 'getPublished', + ] + ]); + } + + public function index() + { + $learningProducts = $this->learningProductService->withTrashedAndChildren([ + 'filters', + 'filters.filter_item.filter', + // 'versions', + 'accreditations', + 'notifications', + ])->sortDesc(); + + return response()->json( + LearningProductResource::collection($learningProducts), + 201, + );; + } + + public function getPublished() + { + $withColumnAll = [ + 'filters', + 'filters.filter_item.filter', + 'accreditations', + 'accreditations.filters.filter_item', + 'notifications' + ]; + + $learningProductAll = $this->learningProductService->getPublishedWith($withColumnAll) + ->groupBy('code') + ->map(function (Collection $groupedLearningProductAll) { + return $groupedLearningProductAll->last(); + }) + ->sortDesc() + ->flatten(1); + + return response()->json( + LearningProductResource::collection($learningProductAll), + 201, + ); + } + + public function store(LearningProductStore $request) + { + try { + Log::info('Store method called'); + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + Log::info('User roles checked', ['isSuperAdmin' => $isSuperAdmin, 'isAdmin' => $isAdmin, 'isOperator' => $isOperator]); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + // Is it draft with parent_id marked as published? + $is_draft = isset($request['parent_id']); + $is_draft_published = $is_draft && $request['published']; + + Log::info('Draft status checked', ['is_draft' => $is_draft, 'is_draft_published' => $is_draft_published]); + + $hasCover = isset($request['cover']) && $request->hasFile('cover'); + $hasTile = isset($request['tile']) && $request->hasFile('tile'); + + Log::info('File status checked', ['hasCover' => $hasCover, 'hasTile' => $hasTile]); + + // Validate and prepare request data + $request_data = $request->validated(); + if ($hasCover) { + $request_data = Arr::except($request_data, ['cover']); + } + if ($hasTile) { + $request_data = Arr::except($request_data, ['tile']); + } + + // Publish without parent_id + if ($is_draft_published) { + $request_data['parent_id'] = null; + } + + $request_data = Arr::except($request_data, ['filtersGrouped', 'synonymsSelected']); + + // Ensure voor_opleiders has a default value + if (!isset($request_data['voor_opleiders']) || $request_data['voor_opleiders'] === null) { + $request_data['voor_opleiders'] = false; + } + + Log::info('Request data prepared', ['request_data' => $request_data]); + + // Save finally the product + $learning_product = $this->learningProductService->save($request_data); + + Log::info('Learning product saved', ['learning_product' => $learning_product]); + + // Get Filter Items passed + $filter_items = json_decode(html_entity_decode(stripslashes($request['filtersGrouped']))); + $synonyms_selected = json_decode(html_entity_decode(stripslashes($request['synonymsSelected']))); + + Log::info('Filters and synonyms decoded', ['filter_items' => $filter_items, 'synonyms_selected' => $synonyms_selected]); + + if ($synonyms_selected) { + $learning_product->synonyms()->sync($synonyms_selected); + } + + $arrayTmp = []; + if ($filter_items) { + foreach ($filter_items as $key => $value) { + $arrayTmp[] = $value; + } + + $filter_items = Arr::collapse($arrayTmp); + $filter_items = Arr::flatten($arrayTmp); + + // Saves filter items associations with this learning product + $learning_product->filters()->delete(); + + foreach ($filter_items as $filter_item_id) { + $filter_association = new FilterItemsAssociation(); + $filter_association->filter_item_id = $filter_item_id; + $learning_product->filters()->save($filter_association); + } + } + + // if a file was uploaded as cover or tile, add them + if ($hasCover) { + $learning_product->addMediaFromRequest('cover')->toMediaCollection('learning_products_covers'); + } + if ($hasTile) { + $learning_product->addMediaFromRequest('tile')->toMediaCollection('learning_products_tiles'); + } + + if ($is_draft) { + // 1st draft of the published product + $original_product_published = $this->learningProductService->get($request['parent_id']); + + // If no cover has been attached before + if (!$hasCover && !$learning_product->cover) { + $image = $original_product_published->getMedia('learning_products_covers')->first(); + + if ($image) { + $learning_product->copyMedia($image->getPath())->toMediaCollection('learning_products_covers'); + } + } + + // If no tile has been attached before + if (!$hasTile && !$learning_product->tile) { + $image = $original_product_published->getMedia('learning_products_tiles')->first(); + + if ($image) { + $learning_product->copyMedia($image->getPath())->toMediaCollection('learning_products_tiles'); + } + } + } + + // ForceDelete the parent if draft published + if ($is_draft_published && $learning_product) { + $this->destroy($request['parent_id'], true); + } + + Log::info('Learning product processed successfully', ['learning_product' => $learning_product]); + + // Emit Event to update products + // broadcast(new \App\Events\ProductsCatalogUpdated); + + if ($learning_product) { + return response()->json(new LearningProductResource($learning_product), 201); + } else { + return response()->json(['message' => 'Learning Product not found.'], 404); + } + } catch (\Exception $e) { + Log::error('Error in LearningProductController@store: ' . $e->getMessage(), ['exception' => $e]); + return response()->json(['message' => 'Internal Server Error'], 500); + } + } + + public function show($id) + { + $learning_product = $this->learningProductService->getOneWithChildrenAndTrashed($id, [ + 'filters', + 'filters.filter_item.filter', + 'versions', + 'accreditations', + 'notifications', + 'synonyms', + ]); + + return response()->json(new LearningProductResource($learning_product)); + } + + public function countAll() + { + return response()->json($this->learningProductService->countAll()); + } + + public function destroy(String $id, $forceDelete = false) + { + try { + Log::info('Destroy method called', ['id' => $id, 'forceDelete' => $forceDelete]); + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $learning_product = $this->learningProductService->get($id); + + if (!$learning_product) { + return response()->json(['message' => 'Learning Product not found.'], 404); + } + + // Verwijder gerelateerde records in de versions tabel + \DB::table('versions')->where('learning_product_id', $id)->delete(); + + if ($forceDelete) { + $learning_product->forceDelete(); + } else { + $learning_product->delete(); + } + + Log::info('Learning product deleted successfully', ['id' => $id]); + + return response()->json(null, 204); + } catch (\Exception $e) { + Log::error('Error in LearningProductController@destroy: ' . $e->getMessage(), ['exception' => $e]); + return response()->json(['message' => 'Internal Server Error'], 500); + } + } + + public function clone(LearningProductId $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + if (!isset($request['product_id']) || !$request['product_id']) { + return response()->json(['message' => 'Product id missing.'], 400); + } + + // get original product to clone + $original_product = $this->learningProductService->getOneWith($request['product_id'], [ + 'filters', + 'filters.filter_item.filter', + 'versions', + 'accreditations', + 'notifications', + 'synonyms', + ]); + + // Return if not published + if (!$original_product->published) { + return response()->json([ + 'error' => 'You cannot duplicate a draft' + ], 400); + } + + // Return already has a draft + if ($original_product->draft) { + return response()->json(['message' => 'There is already a draft for this product'], 400); + } + + // set as draft + $draft = $original_product->replicate(); + $draft->parent_id = $original_product->id; + $draft->published = false; + + // clone cover & tiles, finally save + $cover = $original_product->getMedia('learning_products_covers')->first(); + $tile = $original_product->getMedia('learning_products_tiles')->first(); + + if ($cover) { + $draft + ->copyMedia($cover->getPath()) + ->toMediaCollection('learning_products_covers'); + } + + if ($tile) { + $draft + ->copyMedia($tile->getPath()) + ->toMediaCollection('learning_products_covers'); + } + + $draft->save(); + + // TODO: clone accreditations, versions too? + + // Clone Filter Items + if ($original_product->filters()) { + $filter_items_ids = $original_product->filters->pluck('filter_item_id'); + + foreach ($filter_items_ids as $filter_item_id) { + $filter_association = new FilterItemsAssociation(); + $filter_association->filter_item_id = $filter_item_id; + $draft->filters()->save($filter_association); + } + } + + // Clone Synonyms + if ($original_product->synonyms()) { + $synonyms_ids = $original_product->synonyms->pluck('id'); + $draft->synonyms()->sync($synonyms_ids); + } + + return response()->json(null, 201); + } +} diff --git a/app/Http/Controllers/LearningProductController.php.backup b/app/Http/Controllers/LearningProductController.php.backup new file mode 100644 index 0000000..2615d8a --- /dev/null +++ b/app/Http/Controllers/LearningProductController.php.backup @@ -0,0 +1,335 @@ +learningProductService = $learningProductService; + $this->middleware('auth:sanctum', [ + 'except' => [ + 'getPublished', + ] + ]); + } + + public function index() + { + $learningProducts = $this->learningProductService->withTrashedAndChildren([ + 'filters', + 'filters.filter_item.filter', + // 'versions', + 'accreditations', + 'notifications', + ])->sortDesc(); + + return response()->json( + LearningProductResource::collection($learningProducts), + 201, + );; + } + + public function getPublished() + { + $withColumnAll = [ + 'filters', + 'filters.filter_item.filter', + 'accreditations', + 'accreditations.filters.filter_item', + 'notifications' + ]; + + $learningProductAll = $this->learningProductService->getPublishedWith($withColumnAll) + ->groupBy('code') + ->map(function (Collection $groupedLearningProductAll) { + return $groupedLearningProductAll->last(); + }) + ->sortDesc() + ->flatten(1); + + return response()->json( + LearningProductResource::collection($learningProductAll), + 201, + ); + } + + public function store(LearningProductStore $request) + { + try { + Log::info('Store method called'); + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + Log::info('User roles checked', ['isSuperAdmin' => $isSuperAdmin, 'isAdmin' => $isAdmin, 'isOperator' => $isOperator]); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + // Is it draft with parent_id marked as published? + $is_draft = isset($request['parent_id']); + $is_draft_published = $is_draft && $request['published']; + + Log::info('Draft status checked', ['is_draft' => $is_draft, 'is_draft_published' => $is_draft_published]); + + $hasCover = isset($request['cover']) && $request->hasFile('cover'); + $hasTile = isset($request['tile']) && $request->hasFile('tile'); + + Log::info('File status checked', ['hasCover' => $hasCover, 'hasTile' => $hasTile]); + + // Validate and prepare request data + $request_data = $request->validated(); + if ($hasCover) { + $request_data = Arr::except($request_data, ['cover']); + } + if ($hasTile) { + $request_data = Arr::except($request_data, ['tile']); + } + + // Publish without parent_id + if ($is_draft_published) { + $request_data['parent_id'] = null; + } + + $request_data = Arr::except($request_data, ['filtersGrouped', 'synonymsSelected']); + + Log::info('Request data prepared', ['request_data' => $request_data]); + + // Save finally the product + $learning_product = $this->learningProductService->save($request_data); + + Log::info('Learning product saved', ['learning_product' => $learning_product]); + + // Get Filter Items passed + $filter_items = json_decode(html_entity_decode(stripslashes($request['filtersGrouped']))); + $synonyms_selected = json_decode(html_entity_decode(stripslashes($request['synonymsSelected']))); + + Log::info('Filters and synonyms decoded', ['filter_items' => $filter_items, 'synonyms_selected' => $synonyms_selected]); + + if ($synonyms_selected) { + $learning_product->synonyms()->sync($synonyms_selected); + } + + $arrayTmp = []; + if ($filter_items) { + foreach ($filter_items as $key => $value) { + $arrayTmp[] = $value; + } + + $filter_items = Arr::collapse($arrayTmp); + $filter_items = Arr::flatten($arrayTmp); + + // Saves filter items associations with this learning product + $learning_product->filters()->delete(); + + foreach ($filter_items as $filter_item_id) { + $filter_association = new FilterItemsAssociation(); + $filter_association->filter_item_id = $filter_item_id; + $learning_product->filters()->save($filter_association); + } + } + + // if a file was uploaded as cover or tile, add them + if ($hasCover) { + $learning_product->addMediaFromRequest('cover')->toMediaCollection('learning_products_covers'); + } + if ($hasTile) { + $learning_product->addMediaFromRequest('tile')->toMediaCollection('learning_products_tiles'); + } + + if ($is_draft) { + // 1st draft of the published product + $original_product_published = $this->learningProductService->get($request['parent_id']); + + // If no cover has been attached before + if (!$hasCover && !$learning_product->cover) { + $image = $original_product_published->getMedia('learning_products_covers')->first(); + + if ($image) { + $learning_product->copyMedia($image->getPath())->toMediaCollection('learning_products_covers'); + } + } + + // If no tile has been attached before + if (!$hasTile && !$learning_product->tile) { + $image = $original_product_published->getMedia('learning_products_tiles')->first(); + + if ($image) { + $learning_product->copyMedia($image->getPath())->toMediaCollection('learning_products_tiles'); + } + } + } + + // ForceDelete the parent if draft published + if ($is_draft_published && $learning_product) { + $this->destroy($request['parent_id'], true); + } + + Log::info('Learning product processed successfully', ['learning_product' => $learning_product]); + + // Emit Event to update products + // broadcast(new \App\Events\ProductsCatalogUpdated); + + if ($learning_product) { + return response()->json(new LearningProductResource($learning_product), 201); + } else { + return response()->json(['message' => 'Learning Product not found.'], 404); + } + } catch (\Exception $e) { + Log::error('Error in LearningProductController@store: ' . $e->getMessage(), ['exception' => $e]); + return response()->json(['message' => 'Internal Server Error'], 500); + } + } + + public function show($id) + { + $learning_product = $this->learningProductService->getOneWithChildrenAndTrashed($id, [ + 'filters', + 'filters.filter_item.filter', + 'versions', + 'accreditations', + 'notifications', + 'synonyms', + ]); + + return response()->json(new LearningProductResource($learning_product)); + } + + public function countAll() + { + return response()->json($this->learningProductService->countAll()); + } + + public function destroy(String $id, $forceDelete = false) + { + try { + Log::info('Destroy method called', ['id' => $id, 'forceDelete' => $forceDelete]); + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $learning_product = $this->learningProductService->get($id); + + if (!$learning_product) { + return response()->json(['message' => 'Learning Product not found.'], 404); + } + + // Verwijder gerelateerde records in de versions tabel + \DB::table('versions')->where('learning_product_id', $id)->delete(); + + if ($forceDelete) { + $learning_product->forceDelete(); + } else { + $learning_product->delete(); + } + + Log::info('Learning product deleted successfully', ['id' => $id]); + + return response()->json(null, 204); + } catch (\Exception $e) { + Log::error('Error in LearningProductController@destroy: ' . $e->getMessage(), ['exception' => $e]); + return response()->json(['message' => 'Internal Server Error'], 500); + } + } + + public function clone(LearningProductId $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + if (!isset($request['product_id']) || !$request['product_id']) { + return response()->json(['message' => 'Product id missing.'], 400); + } + + // get original product to clone + $original_product = $this->learningProductService->getOneWith($request['product_id'], [ + 'filters', + 'filters.filter_item.filter', + 'versions', + 'accreditations', + 'notifications', + 'synonyms', + ]); + + // Return if not published + if (!$original_product->published) { + return response()->json([ + 'error' => 'You cannot duplicate a draft' + ], 400); + } + + // Return already has a draft + if ($original_product->draft) { + return response()->json(['message' => 'There is already a draft for this product'], 400); + } + + // set as draft + $draft = $original_product->replicate(); + $draft->parent_id = $original_product->id; + $draft->published = false; + + // clone cover & tiles, finally save + $cover = $original_product->getMedia('learning_products_covers')->first(); + $tile = $original_product->getMedia('learning_products_tiles')->first(); + + if ($cover) { + $draft + ->copyMedia($cover->getPath()) + ->toMediaCollection('learning_products_covers'); + } + + if ($tile) { + $draft + ->copyMedia($tile->getPath()) + ->toMediaCollection('learning_products_covers'); + } + + $draft->save(); + + // TODO: clone accreditations, versions too? + + // Clone Filter Items + if ($original_product->filters()) { + $filter_items_ids = $original_product->filters->pluck('filter_item_id'); + + foreach ($filter_items_ids as $filter_item_id) { + $filter_association = new FilterItemsAssociation(); + $filter_association->filter_item_id = $filter_item_id; + $draft->filters()->save($filter_association); + } + } + + // Clone Synonyms + if ($original_product->synonyms()) { + $synonyms_ids = $original_product->synonyms->pluck('id'); + $draft->synonyms()->sync($synonyms_ids); + } + + return response()->json(null, 201); + } +} diff --git a/app/Http/Controllers/ManagementLinkController.php b/app/Http/Controllers/ManagementLinkController.php new file mode 100644 index 0000000..cb16e90 --- /dev/null +++ b/app/Http/Controllers/ManagementLinkController.php @@ -0,0 +1,64 @@ +managementLinkService = $managementLinkService; + } + + public function index() + { + $management_links = $this->managementLinkService->getAll(); + + return response()->json($management_links, 201); + } + + public function store(ManagementLinkService $request) + { + $management_links = $this->managementLinkService->save($request->all()); + + return response()->json($management_links, 201); + } + + public function show($id) + { + $management_links = $this->managementLinkService->get($id); + + return response()->json($management_links); + } + + public function destroy(ManagementLinkStore $request) + { + $this->managementLinkService->delete($request->link_id); + return response()->json(null, 204); + } + + public function storeManagementLink(ManagementLinkStore $request) { + $managementLink = [ + 'member_id' => $request->member_id + ]; + + $link = $this->managementLinkService->save($managementLink); + return response()->json($request, 201); + } + + public function changeManagementLink(ManagementLinkStore $request) { + $managementLink = [ + 'id' => $request->link_id, + $request->field => $request->value + ]; + + $link = $this->managementLinkService->save($managementLink); + return response()->json($request, 201); + } +} diff --git a/app/Http/Controllers/MemberController.php b/app/Http/Controllers/MemberController.php new file mode 100644 index 0000000..72be90f --- /dev/null +++ b/app/Http/Controllers/MemberController.php @@ -0,0 +1,154 @@ +memberService = $memberService; + $this->revisionService = $revisionService; + $this->queryBuilderService = $queryBuilderService; + + $this->middleware('auth:sanctum', ['except' => ['storeMemberRevisions']]); + } + + public function index(Request $request) + { + $members = $this->queryBuilderService + ->createQueryBuilder(Member::class, Member::class, $request) + ->with([ + 'addresses', + 'contacts', + 'main_branch', + 'management_links', + 'revision', + 'sub_branches', + 'summaries', + 'contributions', + 'users', + ]) + ->withTrashed() + ->defaultSort('-id') + ->get(); + + return response()->json(MemberResource::collection($members), 201); + } + + public function store(MemberStore $request) + { + /** @var User */ + $user = auth()->user(); + $isSuperAdmin = $user->hasRole('super_admin'); + $isAdmin = $user->hasRole('admin'); + // $isOperator = $user->hasRole('operator'); + // $isAdminOrOperator = $isAdmin || $isOperator; + // $isUserDelegated = $member->user_id === $user->id; + + + if (!$isSuperAdmin && !$isAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $hasLogo = isset($request['logo']) && $request->hasFile('logo'); + + $request_data = Arr::except($request->validated(), ['sub_branches']); + + if (!isset($request_data['user_id']) || !is_int($request_data['user_id'])) { + $request_data['user_id'] = $user->id; + } + + $member = $this->memberService->save($request_data); + + if ($request->revisor_id && $request->revisor_id == $user->id) { + $member->revision->revisor_id = $user->id; + $member->revision->touch(); + $member->revision->accepted_at = $member->revision->updated_at; + $member->revision->timestamps = false; + $member->revision->save(); + } + + $sub_branches = json_decode(html_entity_decode(stripslashes($request['sub_branches']))); + + $member->sub_branches()->sync($sub_branches); + + if ($hasLogo) $member->addMediaFromRequest('logo')->toMediaCollection('members_logos'); + + // Emit Event to update members + broadcast(new \App\Events\MembersUpdated); + + return response()->json($member, 201); + } + + public function storeMemberRevision(RevisionStore $request) + { + if ($request->user_id != auth()->user()->id) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $member = $this->memberService->get($request->member_id); + + if (!$member) { + return response()->json(['message' => 'Member not found.'], 404); + } + + if ($member->user_id != auth()->user()->id) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $hasLogo = isset($request['logo']) && $request->hasFile('logo'); + $revision = $this->revisionService->save($request->validated()); + + if ($hasLogo) $member->addMediaFromRequest('logo')->toMediaCollection('members_logos'); + + // Emit Event to update members + broadcast(new \App\Events\MembersUpdated); + + return response()->json($revision, 201); + } + + public function show($id) + { + $member = $this->memberService->getOneWith($id, ['summaries', 'addresses', 'contacts', 'contributions', 'sub_branches', 'revision', 'management_links']); + + return response()->json(new MemberResource($member)); + } + + public function destroy(String $id, $forceDelete = false) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + + if (!$isSuperAdminOrAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->memberService->delete($id, $forceDelete); + return response()->json(null, 204); + } + + public function countAll() + { + return response()->json($this->memberService->countAll()); + } +} diff --git a/app/Http/Controllers/NotificationController.php b/app/Http/Controllers/NotificationController.php new file mode 100644 index 0000000..8d60aa9 --- /dev/null +++ b/app/Http/Controllers/NotificationController.php @@ -0,0 +1,56 @@ +middleware('auth:sanctum'); + } + + public function markAsRead(Request $request) + { + $notification = auth()->user()->notifications()->find($request->id); + if ($notification) { + $notification->markAsRead(); + return response()->json(new UserLoggedResource(auth()->user())); + } + } + + public function markAsUnread(Request $request) + { + $notification = auth()->user()->notifications()->find($request->id); + if ($notification) { + $notification->read_at = null; + $notification->save(); + return response()->json(new UserLoggedResource(auth()->user())); + } + } + + public function delete(Request $request) + { + $notification = auth()->user()->notifications()->find($request->id); + if ($notification) { + $notification->delete(); + return response()->json(new UserLoggedResource(auth()->user())); + } + } + + public function test() + { + if (!auth()->user()) return; + + $demo_notification = new CustomNotification( + 'Subject', + 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab dolores libero at dolorem unde, consequuntur sed eveniet totam aperiam aspernatur.' + ); + + auth()->user()->notify($demo_notification); + broadcast(new \App\Events\UserInfoUpdated(auth()->user())); + } +} diff --git a/app/Http/Controllers/PingController.php b/app/Http/Controllers/PingController.php new file mode 100644 index 0000000..a5cc7df --- /dev/null +++ b/app/Http/Controllers/PingController.php @@ -0,0 +1,11 @@ + trans($response)]); + } + + protected function sendResetFailedResponse(Request $request, $response) + { + return response(['error' => trans($response)], 422); + } +} diff --git a/app/Http/Controllers/Response/ApiResponse.php b/app/Http/Controllers/Response/ApiResponse.php new file mode 100644 index 0000000..404e332 --- /dev/null +++ b/app/Http/Controllers/Response/ApiResponse.php @@ -0,0 +1,55 @@ + $error, + 'status' => [ + 'code' => $status, + 'text' => Response::$statusTexts[$status], + ], + 'content' => $content, + ], + $status, + $headers, + ); + } + + public static function error( + ErrorInterface $error, + array $headers = [] + ): Response + { + return static::determineResponse( + [ + 'code' => $error->getErrorCode(), + 'message' => $error->getErrorMessage(), + ], + $error->getStatusCode(), + true, + $headers, + ); + } +} diff --git a/app/Http/Controllers/RoleController.php b/app/Http/Controllers/RoleController.php new file mode 100644 index 0000000..bf04a01 --- /dev/null +++ b/app/Http/Controllers/RoleController.php @@ -0,0 +1,18 @@ +roleService = $roleService; + } + + public function index() + { + return $this->roleService->getAll(); + } +} diff --git a/app/Http/Controllers/SummaryController.php b/app/Http/Controllers/SummaryController.php new file mode 100644 index 0000000..0ae31b2 --- /dev/null +++ b/app/Http/Controllers/SummaryController.php @@ -0,0 +1,148 @@ +memberService = $memberService; + $this->summaryService = $summaryService; + $this->userService = $userService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $summaries = $this->summaryService->getAll(); + + return response()->json($summaries, 201); + } + + public function store(SummaryStore $request) + { + $member = $this->memberService->get($request->member_id); + + if (!$member) { + return response()->json(['message' => 'Member not found.'], 404); + } + + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + $isUserDelegated = $member->user_id === auth()->user()->id; + + $isAppliedToAll = $request->has('toAll') ? true : false; + + if (!$isSuperAdminOrAdmin && !$isUserDelegated) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $request_data = $request->validated(); + + $is_edit_mode = isset($request_data['id']); + $is_create_mode = !$is_edit_mode; + + $summary = null; + + if ($is_edit_mode) { + + if ($isSuperAdminOrAdmin) { + $request_data['revisor_id'] = auth()->user()->id; + $request_data['approved_at'] = now(); + } + + $summary = $this->summaryService->get($request_data['id']); + $is_already_approved = $summary->approved_at; + + if ($isUserDelegated && !$isSuperAdminOrAdmin && $is_already_approved) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + } + + if ($isAppliedToAll && $is_create_mode) { + + if ($isUserDelegated && !$isSuperAdminOrAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $members = $this->memberService->with(['summaries']); + + // Store for all existing members + foreach ($members as $member) { + + // If the member doesn't have that year set, store the record + if (!$member->summaries->contains('year', $request_data['year'])) { + + $request_data['member_id'] = $member['id']; + + // Gives back the summary to update the page + if ($request_data['member_id'] === $member['user_id']) { + $summary = $this->summaryService->save($request_data); + } else { + $this->summaryService->save($request_data); + } + } + } + } else { + $summary = $this->summaryService->save($request_data); + } + + // If is a user delegated to make changes, send a mail + if ($isUserDelegated) { + + // Get super admins & admins, send them an email + $super_admins_and_admins = $this->userService->getAllWithRoles(['super_admin', 'admin']); + + $notification = (object) array(); + $notification->member = $member; + $notification->subject = 'Er zijn wijzigingen doorgevoerd'; + $notification->message = sprintf( + 'De volgende wijzigingen kunnen worden beoordeeld, voor het volgende lid: %s', + $member->informal_name, + ); + + // Add emails to queue | * php artisan queue:listen + foreach ($super_admins_and_admins as $user) { + Mail::to($user)->send(new MemberChanges($notification)); + } + } + + return response()->json($summary, 201); + } + + public function show($id) + { + $summary = $this->summaryService->get($id); + + return response()->json($summary); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isSuperAdminOrAdmin = $isSuperAdmin || $isAdmin; + + if (!$isSuperAdminOrAdmin) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->summaryService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/SynonymController.php b/app/Http/Controllers/SynonymController.php new file mode 100644 index 0000000..ebf734a --- /dev/null +++ b/app/Http/Controllers/SynonymController.php @@ -0,0 +1,65 @@ +synonymService = $synonymService; + $this->middleware('auth:sanctum', [ + 'except' => [ + 'index', + ] + ]); + } + + public function index() + { + $synonyms = $this->synonymService->getAll(); + + return response()->json($synonyms, 201); + } + + public function store(SynonymStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $synonym = $this->synonymService->save($request->all()); + + return response()->json($synonym, 201); + } + + public function show($id) + { + $synonym = $this->synonymService->get($id); + + return response()->json($synonym); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->synonymService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Controllers/TypeController.php b/app/Http/Controllers/TypeController.php new file mode 100644 index 0000000..de98105 --- /dev/null +++ b/app/Http/Controllers/TypeController.php @@ -0,0 +1,26 @@ +memberService = $memberService; + } + + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function index(Request $request) + { + return response()->json($this->memberService->getValidTypes()); + } +} diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php new file mode 100644 index 0000000..f75bf8e --- /dev/null +++ b/app/Http/Controllers/UserController.php @@ -0,0 +1,94 @@ +userService = $userService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $users = $this->userService->getWith(['roles']); + + return response()->json(UserResource::collection($users), 200); + } + + public function show($id) + { + $isAdmin = auth()->user()->hasRole('admin'); + $isTheUserOwner = auth()->user()->id === (int) $id; + + if (!$isAdmin && !$isTheUserOwner) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $user = $this->userService->getOneWith($id, ['roles']); + + if ($user) { + return response()->json(new UserResource($user)); + } else return response()->json(['message' => 'User not found.'], 404); + } + + public function store(UserStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isEditingHimself = auth()->user()->id === (int) $request['id']; + + if (!$isSuperAdmin && !$isEditingHimself) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $hasImage = isset($request['image']) && $request->hasFile('image'); + + $request_data = $hasImage ? Arr::except($request->validated(), ['image']) : $request->validated(); + + // only super admin can manage users and rules + $user = $this->userService->save($request_data, $isSuperAdmin); + + if ($hasImage) { + $user->addMedia($request['image'])->toMediaCollection('profile_pics'); + } + + if ($user) { + return response()->json($isEditingHimself ? new UserLoggedResource($user) : new UserResource($user)); + } else return response()->json(['message' => 'User not found.'], 404); + } + + public function destroy(String $id) + { + if (!auth()->user()->hasRole('admin')) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->userService->delete($id); + return response()->json(null, 204); + } + + public function getList() + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $users = $this->userService->getAll(); + return response()->json(UsersList::collection($users), 200); + } +} diff --git a/app/Http/Controllers/VersionController.php b/app/Http/Controllers/VersionController.php new file mode 100644 index 0000000..88bf61c --- /dev/null +++ b/app/Http/Controllers/VersionController.php @@ -0,0 +1,112 @@ +versionService = $versionService; + $this->middleware('auth:sanctum'); + } + + public function index() + { + $versions = $this->versionService->getAll(); + + return response()->json($versions, 201); + } + + public function store(VersionStore $request) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + if ($request['filter_items']) { + $filter_items = Arr::collapse($request['filter_items']); + $filter_items = Arr::flatten($filter_items); + } + + if ($request['checklists_selected']) { + $checklists_selected = $request['checklists_selected']; + } + + $data = Arr::except($request->validated(), ['filter_items', 'checklists_selected']); + + $version = $this->versionService->save($data); + + if (isset($filter_items) && $filter_items) { + + $version->filters()->delete(); + + foreach ($filter_items as $filter_item_id) { + $filter_association = new FilterItemsAssociation(); + $filter_association->filter_item_id = $filter_item_id; + $version->filters()->save($filter_association); + } + } + + if (isset($checklists_selected) && $checklists_selected) { + + // Fetch all checklists ids already stored + $checklists_ids_stored = $version->checklists()->pluck('checklist_id'); + + // If an id from $checklists_ids_stored is not present in the uploaded checklists_selected, delete it + foreach ($checklists_ids_stored as $checklist_id_stored) { + + if (!in_array($checklist_id_stored, $checklists_selected)) { + $version->checklists()->where('checklist_id', $checklist_id_stored)->delete(); + } + } + + // If a checklist from the uploaded is not present in $version->checklists(), create + foreach ($checklists_selected as $checklist_selected) { + + if (!in_array($checklist_selected, $checklists_ids_stored->toArray())) { + + $version->checklists()->create([ + 'user_id' => auth()->user()->id, + 'version_id' => $version->id, + 'checklist_id' => $checklist_selected, + ]); + } + } + } + + return response()->json($version->load(['filters', 'checklists']), 201); + } + + public function show($id) + { + $version = $this->versionService->get($id); + + return response()->json($version); + } + + public function destroy($id) + { + $isSuperAdmin = auth()->user()->hasRole('super_admin'); + $isAdmin = auth()->user()->hasRole('admin'); + $isOperator = auth()->user()->hasRole('operator'); + + if (!$isSuperAdmin && !$isAdmin && !$isOperator) { + return response()->json(['message' => 'You have no rights to do this'], 401); + } + + $this->versionService->delete($id); + return response()->json(null, 204); + } +} diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php new file mode 100644 index 0000000..1b00e45 --- /dev/null +++ b/app/Http/Kernel.php @@ -0,0 +1,73 @@ + [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + // \Illuminate\Session\Middleware\AuthenticateSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + + 'api' => [ + 'throttle:60,1', + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + ]; + + /** + * The application's route middleware. + * + * These middleware may be assigned to groups or used individually. + * + * @var array + */ + protected $routeMiddleware = [ + 'auth' => \App\Http\Middleware\Authenticate::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, + 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, + 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + ]; + + protected function schedule(Schedule $schedule) + { + $schedule->command('backup:clean')->daily()->at('02:00'); + $schedule->command('backup:run')->daily()->at('02:30'); + } +} diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php new file mode 100644 index 0000000..704089a --- /dev/null +++ b/app/Http/Middleware/Authenticate.php @@ -0,0 +1,21 @@ +expectsJson()) { + return route('login'); + } + } +} diff --git a/app/Http/Middleware/CheckForMaintenanceMode.php b/app/Http/Middleware/CheckForMaintenanceMode.php new file mode 100644 index 0000000..35b9824 --- /dev/null +++ b/app/Http/Middleware/CheckForMaintenanceMode.php @@ -0,0 +1,17 @@ +corsService = $corsService; + } + + public function handle(Request $request, \Closure $next) + { + /** @var \Illuminate\Http\Response */ + $response = $next($request); + + if ($this->corsService->isRequestValid($request)) { + $this->corsService->addHeadersToResponse($response); + } + + return $response; + } +} diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000..2395ddc --- /dev/null +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,27 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php new file mode 100644 index 0000000..5a50e7b --- /dev/null +++ b/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,18 @@ + 'required', + "model" => 'required', + "components_ids" => 'required', + ]; + } +} diff --git a/app/Http/Requests/Component/ComponentStore.php b/app/Http/Requests/Component/ComponentStore.php new file mode 100644 index 0000000..db7c87a --- /dev/null +++ b/app/Http/Requests/Component/ComponentStore.php @@ -0,0 +1,33 @@ + 'required', + 'description' => '', + 'content' => '', + 'component_type_id' => 'required', + ]; + } +} diff --git a/app/Http/Requests/Component/ComponentSync.php b/app/Http/Requests/Component/ComponentSync.php new file mode 100644 index 0000000..521a4a3 --- /dev/null +++ b/app/Http/Requests/Component/ComponentSync.php @@ -0,0 +1,32 @@ + 'required', + "model" => 'required', + "components_ids" => '', + ]; + } +} diff --git a/app/Http/Requests/Filter/FilterItemStore.php b/app/Http/Requests/Filter/FilterItemStore.php new file mode 100644 index 0000000..0c47baf --- /dev/null +++ b/app/Http/Requests/Filter/FilterItemStore.php @@ -0,0 +1,32 @@ + 'required_without:filter_id|numeric', + "filter_id" => 'required_without:id|numeric', + "title" => 'required|max:255', + ]; + } +} diff --git a/app/Http/Requests/Filter/FilterStore.php b/app/Http/Requests/Filter/FilterStore.php new file mode 100644 index 0000000..2a6fd52 --- /dev/null +++ b/app/Http/Requests/Filter/FilterStore.php @@ -0,0 +1,31 @@ + 'sometimes|numeric', + "title" => 'required|max:255', + ]; + } +} diff --git a/app/Http/Requests/Learning/AccreditationStore.php b/app/Http/Requests/Learning/AccreditationStore.php new file mode 100644 index 0000000..b5346c5 --- /dev/null +++ b/app/Http/Requests/Learning/AccreditationStore.php @@ -0,0 +1,35 @@ + 'sometimes|numeric', + "learning_product_id" => 'required|numeric', + 'credits' => 'required', + 'date_start' => '', + 'date_end' => '', + 'filter_items' => '', + ]; + } +} diff --git a/app/Http/Requests/Learning/CourseNotificationStore.php b/app/Http/Requests/Learning/CourseNotificationStore.php new file mode 100644 index 0000000..0fb0596 --- /dev/null +++ b/app/Http/Requests/Learning/CourseNotificationStore.php @@ -0,0 +1,38 @@ + 'sometimes|numeric', + "learning_product_id" => 'required|numeric', + 'date' => 'required', + 'sent' => '', + 'time' => 'required', + 'emails' => 'required', + 'users' => 'required', + 'subject' => 'required', + 'message' => 'required', + ]; + } +} diff --git a/app/Http/Requests/Learning/LearningProductId.php b/app/Http/Requests/Learning/LearningProductId.php new file mode 100644 index 0000000..5a7effe --- /dev/null +++ b/app/Http/Requests/Learning/LearningProductId.php @@ -0,0 +1,30 @@ + 'required|numeric', + ]; + } +} diff --git a/app/Http/Requests/Learning/LearningProductStore.php b/app/Http/Requests/Learning/LearningProductStore.php new file mode 100644 index 0000000..94704e6 --- /dev/null +++ b/app/Http/Requests/Learning/LearningProductStore.php @@ -0,0 +1,74 @@ + 'sometimes|numeric', + "parent_id" => 'sometimes|numeric', + "title" => 'required|max:255', + 'description' => 'max:255', + 'video' => 'max:255', + 'code' => 'required|max:255', + 'seo_title' => 'required|max:255', + 'meta_description' => 'max:255', + 'url' => 'max:255', + 'published' => '', + 'lead_time' => '', + 'short_description' => '', + 'learning_goals' => '', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '', + 'quality_standards' => '', + 'in_the_picture' => '', + 'in_the_picture_start' => 'required_if:in_the_picture,1', + 'in_the_picture_end' => 'required_if:in_the_picture,1', + 'owner' => '', + 'partner' => '', + 'supplier' => '', + 'contract_agreements' => '', + 'tile' => 'sometimes|mimes:jpeg,jpg,png|max:2048', + 'cover' => 'sometimes|mimes:jpeg,jpg,png|max:2048', + 'prognosis_members' => '', + 'prognosis_attendees' => '', + 'sharepoint_link' => 'max:500', + 'support_link' => 'max:500', + 'support_tickets_link' => 'max:500', + 'for_members' => '', + 'third_party_training' => '', + 'voor_opleiders' => '', + 'filtersGrouped' => '', + 'synonymsSelected' => '', + ]; + } + public function messages() + { + return [ + 'title.required' => 'De titel is verplicht.', + 'code.required' => 'De productcode is verplicht', + 'seo_title.required' => 'De SEO title is verplicht', + ]; + } +} diff --git a/app/Http/Requests/Learning/SynonymStore.php b/app/Http/Requests/Learning/SynonymStore.php new file mode 100644 index 0000000..be61562 --- /dev/null +++ b/app/Http/Requests/Learning/SynonymStore.php @@ -0,0 +1,30 @@ + 'required', + ]; + } +} diff --git a/app/Http/Requests/Learning/VersionStore.php b/app/Http/Requests/Learning/VersionStore.php new file mode 100644 index 0000000..89b04d3 --- /dev/null +++ b/app/Http/Requests/Learning/VersionStore.php @@ -0,0 +1,39 @@ + 'sometimes|numeric', + "learning_product_id" => 'required|numeric', + 'filter_items' => '', + 'version_number' => 'required', + 'release_start' => 'required', + 'release_end' => '', + 'release_planning_date' => '', + 'release_planning_description' => '', + 'technical_information' => '', + 'checklists_selected' => '', + ]; + } +} diff --git a/app/Http/Requests/Member/AddressStore.php b/app/Http/Requests/Member/AddressStore.php new file mode 100644 index 0000000..e5f4526 --- /dev/null +++ b/app/Http/Requests/Member/AddressStore.php @@ -0,0 +1,47 @@ + 'sometimes|numeric', + "member_id" => 'required|numeric', + 'indicating' => '', + 'type' => 'required|max:255', + 'first_name_contact_person' => '', + 'last_name_contact_person' => '', + 'infix' => '', + 'email' => 'required_if:type,==,invoice', + 'phone' => '', + 'address' => '', + 'postal' => '', + 'city' => '', + 'title_contact_person' => '', + 'initials_contact_person' => '', + 'middle_name_contact_person' => '', + 'job_title_contact_person' => '', + 'house_number' => '', + 'country' => '', + ]; + } +} diff --git a/app/Http/Requests/Member/BranchStore.php b/app/Http/Requests/Member/BranchStore.php new file mode 100644 index 0000000..fc6d871 --- /dev/null +++ b/app/Http/Requests/Member/BranchStore.php @@ -0,0 +1,31 @@ + 'sometimes|numeric', + "title" => 'required|max:255', + ]; + } +} diff --git a/app/Http/Requests/Member/ContactStore.php b/app/Http/Requests/Member/ContactStore.php new file mode 100644 index 0000000..06633f8 --- /dev/null +++ b/app/Http/Requests/Member/ContactStore.php @@ -0,0 +1,44 @@ + 'sometimes|numeric', + "member_id" => 'required|numeric', + 'function' => '', + 'salutation' => '', + 'initials' => '', + 'firstname' => 'required', + 'middlename' => '', + 'lastname' => 'required', + 'email' => 'required|email', + 'email2' => 'nullable|email', + 'email3' => 'nullable|email', + 'phone' => '', + 'job_title' => '', + 'mobile' => '', + 'address_id' => 'nullable|numeric', + ]; + } +} diff --git a/app/Http/Requests/Member/ContributionStore.php b/app/Http/Requests/Member/ContributionStore.php new file mode 100644 index 0000000..727691c --- /dev/null +++ b/app/Http/Requests/Member/ContributionStore.php @@ -0,0 +1,34 @@ + 'sometimes|numeric', + "member_id" => 'required|numeric', + "year" => 'required|numeric', + "contribution" => 'required|numeric', + "toAll" => '', + ]; + } +} diff --git a/app/Http/Requests/Member/ManagementLinkStore.php b/app/Http/Requests/Member/ManagementLinkStore.php new file mode 100644 index 0000000..c57899b --- /dev/null +++ b/app/Http/Requests/Member/ManagementLinkStore.php @@ -0,0 +1,34 @@ + 'sometimes|numeric', + 'member_id' => 'sometimes|numeric', + 'title' => '', + 'url' => '', + 'target' => '', + ]; + } +} diff --git a/app/Http/Requests/Member/MemberStore.php b/app/Http/Requests/Member/MemberStore.php new file mode 100644 index 0000000..080e0d1 --- /dev/null +++ b/app/Http/Requests/Member/MemberStore.php @@ -0,0 +1,60 @@ + 'sometimes|numeric', + "user_id" => 'sometimes|numeric', + "branch_id" => 'numeric', + "sub_branches" => '', + 'type' => '', + "informal_name" => 'required|max:255', + "formal_name" => 'required|max:255', + "kvk_number" => 'required|numeric', + 'website' => '', + 'logo' => 'sometimes|mimes:jpeg,jpg,png|max:2048', + 'show_on_website' => '', + 'helpdesk_department' => '', + 'helpdesk_contact_person' => '', + 'helpdesk_email' => '', + 'helpdesk_phone' => '', + 'info_department' => '', + 'info_contacteperson' => '', + 'info_email' => '', + 'info_phone' => '', + 'info_address' => '', + 'info_housenumber' => '', + 'info_postal' => '', + 'info_city' => '', + 'info_country' => '', + 'info_link' => '', + 'more_info_link' => '', + + 'start_membership' => '', + 'end_membership' => '', + 'contribution' => '', + 'invoice_number' => '', + ]; + } +} diff --git a/app/Http/Requests/Member/RevisionStore.php b/app/Http/Requests/Member/RevisionStore.php new file mode 100644 index 0000000..0f73c7c --- /dev/null +++ b/app/Http/Requests/Member/RevisionStore.php @@ -0,0 +1,33 @@ + 'sometimes|numeric', + "member_id" => 'sometimes|numeric', + "user_id" => 'numeric', + "data" => 'required' + ]; + } +} diff --git a/app/Http/Requests/Member/SummaryStore.php b/app/Http/Requests/Member/SummaryStore.php new file mode 100644 index 0000000..3d29b21 --- /dev/null +++ b/app/Http/Requests/Member/SummaryStore.php @@ -0,0 +1,35 @@ + 'sometimes|numeric', + "member_id" => 'required|numeric', + "year" => 'required|numeric', + "real_number_last_year" => 'required|numeric', + "estimated_number_next_year" => 'required|numeric', + "toAll" => '', + ]; + } +} diff --git a/app/Http/Requests/Page/ComponentPageDelete.php b/app/Http/Requests/Page/ComponentPageDelete.php new file mode 100644 index 0000000..8f53455 --- /dev/null +++ b/app/Http/Requests/Page/ComponentPageDelete.php @@ -0,0 +1,31 @@ + 'required|numeric', + "component_id" => 'required', + ]; + } +} diff --git a/app/Http/Requests/Page/ComponentPageStore.php b/app/Http/Requests/Page/ComponentPageStore.php new file mode 100644 index 0000000..10009e9 --- /dev/null +++ b/app/Http/Requests/Page/ComponentPageStore.php @@ -0,0 +1,32 @@ + 'required|numeric', + "content" => '', + "component_type_id" => 'required', + ]; + } +} \ No newline at end of file diff --git a/app/Http/Requests/Page/PageStore.php b/app/Http/Requests/Page/PageStore.php new file mode 100644 index 0000000..6404d0d --- /dev/null +++ b/app/Http/Requests/Page/PageStore.php @@ -0,0 +1,33 @@ + 'sometimes|numeric', + "title" => 'required|max:255', + "subtitle" => 'max:255', + "slug" => 'max:255', + ]; + } +} \ No newline at end of file diff --git a/app/Http/Requests/User/Login.php b/app/Http/Requests/User/Login.php new file mode 100644 index 0000000..8b957b4 --- /dev/null +++ b/app/Http/Requests/User/Login.php @@ -0,0 +1,31 @@ + 'required|email', + 'password' => 'required', + ]; + } +} diff --git a/app/Http/Requests/User/UserStore.php b/app/Http/Requests/User/UserStore.php new file mode 100644 index 0000000..ff1dbe6 --- /dev/null +++ b/app/Http/Requests/User/UserStore.php @@ -0,0 +1,36 @@ + 'sometimes|numeric', + "first_name" => 'required|max:255', + "last_name" => 'required|max:255', + 'email' => 'required|email', + 'password' => 'sometimes|confirmed|min:8', + 'roles' => '', + 'image' => 'sometimes|mimes:jpeg,jpg,png|max:2048', + ]; + } +} diff --git a/app/Http/Resources/FiltersResource.php b/app/Http/Resources/FiltersResource.php new file mode 100644 index 0000000..536063b --- /dev/null +++ b/app/Http/Resources/FiltersResource.php @@ -0,0 +1,26 @@ + $this->id, + 'title' => $this->title, + 'multiple' => $this->type, + 'items' => $this->whenLoaded('items'), + 'items_count' => $this->items ? $this->items_count : null, + 'slug' => $this->slug, + ]; + } +} diff --git a/app/Http/Resources/LearningProductResource.php b/app/Http/Resources/LearningProductResource.php new file mode 100644 index 0000000..901ef5c --- /dev/null +++ b/app/Http/Resources/LearningProductResource.php @@ -0,0 +1,136 @@ +accreditations)) { + + foreach ($this->accreditations as $accreditation) { + + foreach ($accreditation->filters as $filter) { + + $filtersGrouped[$filter->filter_item->filter_id][] = $filter->filter_item_id; + // To avoid double values + $filtersGrouped[$filter->filter_item->filter_id] = array_unique($filtersGrouped[$filter->filter_item->filter_id]); + + } + } + } + + + if (isset($this->filters)) { + + foreach ($this->filters as $filter) { + + $filtersGrouped[$filter->filter_item->filter_id][] = $filter->filter_item_id; + // To avoid double values + $filtersGrouped[$filter->filter_item->filter_id] = array_unique($filtersGrouped[$filter->filter_item->filter_id]); + + } + } + + $filtersFlattened = [ + 'status' => null, + 'product_type' => null, + 'theme' => null, + 'course' => null, + ]; + + foreach ($filtersFlattened as $title => $value) { + + if (isset($this->filters)) { + foreach ($this->filters as $filter) { + if ( + $filter->filter_item->filter->title === $title + && $filter->filter_item->title + ) { + $filtersFlattened[$title][] = $filter->filter_item->title; + } + } + if ($filtersFlattened[$title]) { + sort($filtersFlattened[$title]); + $filtersFlattened[$title] = implode(", ", $filtersFlattened[$title]); + } + } + } + + return [ + 'id' => $this->id, + 'parent_id' => $this->parent_id, + 'title' => $this->title, + 'description' => $this->description, + 'video' => $this->video, + 'code' => $this->code, + 'published' => $this->published, + 'lead_time' => $this->lead_time, + 'short_description' => $this->short_description, + 'learning_goals' => $this->learning_goals, + 'review' => $this->review, + 'certification' => $this->certification, + 'extra_information' => $this->extra_information, + 'target_audience' => $this->target_audience, + 'quality_standards' => $this->quality_standards, + 'in_the_picture' => $this->in_the_picture, + 'in_the_picture_start' => $this->in_the_picture_start, + 'in_the_picture_end' => $this->in_the_picture_end, + 'owner' => $this->owner, + 'partner' => $this->partner, + 'supplier' => $this->supplier, + 'contract_agreements' => $this->contract_agreements, + 'draft' => $this->draft ? $this->draft : null, + 'slug' => $this->slug, + 'seo_title' => $this->seo_title, + 'meta_description' => $this->meta_description, + 'url' => $this->url, + 'cover' => [ + 'full' => $this->getFirstMediaUrl('learning_products_covers'), + 'thumb' => $this->getFirstMediaUrl('learning_products_covers', 'thumb') + ], + 'tile' => [ + 'full' => $this->getFirstMediaUrl('learning_products_tiles'), + 'thumb' => $this->getFirstMediaUrl('learning_products_tiles', 'thumb') + ], + 'prognosis_members' => $this->prognosis_members, + 'prognosis_attendees' => $this->prognosis_attendees, + 'sharepoint_link' => $this->sharepoint_link, + 'support_link' => $this->support_link, + 'support_tickets_link' => $this->support_tickets_link, + 'filters' => $this->whenLoaded('filters'), + 'accreditations' => $this->whenLoaded('accreditations'), + 'notifications' => $this->whenLoaded('notifications'), + 'filtersGrouped' => (object) $filtersGrouped, + 'filterItemsSelected' => Arr::flatten(get_object_vars((object) $filtersGrouped)), + 'versions' => $this->whenLoaded('versions'), + 'synonyms' => $this->synonyms, + 'for_members' => $this->for_members, + 'third_party_training' => $this->third_party_training, + 'voor_opleiders' => $this->voor_opleiders, + + // Returns a concatenated string with all the "theme" titles attached + 'theme' => $filtersFlattened['theme'], + 'status' => $filtersFlattened['status'], + 'course' => $filtersFlattened['course'], + 'product_type' => $filtersFlattened['product_type'], + + 'created_at' => $this->created_at->toDateTimeString(), + 'updated_at' => $this->updated_at->toDateTimeString(), + 'deleted_at' => $this->deleted_at ? $this->deleted_at->toDateTimeString() : null, + ]; + } +} diff --git a/app/Http/Resources/MemberResource.php b/app/Http/Resources/MemberResource.php new file mode 100644 index 0000000..a8c5fe5 --- /dev/null +++ b/app/Http/Resources/MemberResource.php @@ -0,0 +1,70 @@ + $this->id, + 'slug' => $this->slug, + 'type' => $this->type, + 'branch_id' => $this->branch_id, + 'main_branch' => $this->main_branch->title ?? null, + 'informal_name' => $this->informal_name, + 'formal_name' => $this->formal_name, + 'kvk_number' => $this->kvk_number, + 'website' => $this->website, + 'logo' => [ + 'full' => $this->getFirstMediaUrl('members_logos'), + 'thumb' => $this->getFirstMediaUrl('members_logos', 'thumb') + ], + 'show_on_website' => $this->show_on_website, + 'helpdesk_department' => $this->helpdesk_department, + 'helpdesk_contact_person' => $this->helpdesk_contact_person, + 'helpdesk_email' => $this->helpdesk_email, + 'helpdesk_phone' => $this->helpdesk_phone, + 'info_department' => $this->info_department, + 'info_contacteperson' => $this->info_contacteperson, + 'info_email' => $this->info_email, + 'info_phone' => $this->info_phone, + 'info_address' => $this->info_address, + 'info_housenumber' => $this->info_housenumber, + 'info_postal' => $this->info_postal, + 'info_city' => $this->info_city, + 'info_country' => $this->info_country, + 'info_link' => $this->info_link, + 'more_info_link' => $this->more_info_link, + + 'summaries' => $this->whenLoaded('summaries'), + 'addresses' => $this->whenLoaded('addresses'), + 'contacts' => $this->whenLoaded('contacts'), + 'contributions' => $this->whenLoaded('contributions'), + 'management_links' => $this->whenLoaded('management_links'), + 'sub_branches' => $this->whenLoaded('sub_branches'), + 'user_ids' => $this->relationLoaded('users') + ? $this->users->pluck('id') + : [], + + 'revision' => $this->whenLoaded('revision'), + + 'start_membership' => $this->start_membership, + 'end_membership' => $this->end_membership, + 'contribution' => $this->contribution, + 'invoice_number' => $this->invoice_number, + + 'created_at' => $this->created_at->toDateTimeString(), + 'updated_at' => $this->updated_at ? $this->updated_at->toDateTimeString() : null, + 'deleted_at' => $this->deleted_at ? $this->deleted_at->toDateTimeString() : null, + ]; + } +} diff --git a/app/Http/Resources/PageResource.php b/app/Http/Resources/PageResource.php new file mode 100644 index 0000000..be3f38b --- /dev/null +++ b/app/Http/Resources/PageResource.php @@ -0,0 +1,28 @@ + $this->id, + 'title' => $this->title, + 'subtitle' => $this->subtitle, + 'published_at' => $this->updated_at->toDateTimeString(), + 'created_at' => $this->updated_at->toDateTimeString(), + 'updated_at' => $this->created_at->toDateTimeString(), + 'slug' => $this->slug, + 'components' => $this->whenLoaded('components'), + ]; + } +} diff --git a/app/Http/Resources/UserLoggedResource.php b/app/Http/Resources/UserLoggedResource.php new file mode 100644 index 0000000..514f0c4 --- /dev/null +++ b/app/Http/Resources/UserLoggedResource.php @@ -0,0 +1,37 @@ + $this->id, + 'first_name' => $this->first_name, + 'last_name' => $this->last_name, + 'fullName' => $this->fullName, + 'email' => $this->email, + 'created_at' => $this->updated_at->toDateTimeString(), + 'updated_at' => $this->created_at->toDateTimeString(), + 'last_login_at' => $this->last_login_at, + 'logged_at' => $this->logged_at, + 'roles' => $this->roles, + 'isMemberEditor' => $this->isMemberEditor, + 'image' => [ + 'full' => $this->getFirstMediaUrl('profile_pics'), + 'thumb' => $this->getFirstMediaUrl('profile_pics', 'thumb') + ], + 'notifications' => $this->when($this->notifications, $this->notifications), + 'membersManagedCount' => $this->when($this->members, $this->members->count()), + ]; + } +} diff --git a/app/Http/Resources/UserResource.php b/app/Http/Resources/UserResource.php new file mode 100644 index 0000000..bbd0b42 --- /dev/null +++ b/app/Http/Resources/UserResource.php @@ -0,0 +1,33 @@ + $this->id, + 'first_name' => $this->first_name, + 'last_name' => $this->last_name, + 'fullName' => $this->fullName, + 'email' => $this->email, + 'created_at' => $this->updated_at->toDateTimeString(), + 'updated_at' => $this->created_at->toDateTimeString(), + 'roles' => $this->roles, + 'isMemberEditor' => $this->isMemberEditor, + 'image' => [ + 'full' => $this->getFirstMediaUrl('profile_pics'), + 'thumb' => $this->getFirstMediaUrl('profile_pics', 'thumb') + ] + ]; + } +} diff --git a/app/Http/Resources/UsersList.php b/app/Http/Resources/UsersList.php new file mode 100644 index 0000000..0f077e9 --- /dev/null +++ b/app/Http/Resources/UsersList.php @@ -0,0 +1,22 @@ + $this->id, + 'fullName' => $this->fullName, + ]; + } +} diff --git a/app/Mail/CourseNotificationMail.php b/app/Mail/CourseNotificationMail.php new file mode 100644 index 0000000..d6a28e9 --- /dev/null +++ b/app/Mail/CourseNotificationMail.php @@ -0,0 +1,49 @@ +notification = $notification; + } + + /** + * Build the message. + * + * @return $this + */ + public function build() + { + + $converter = new HtmlConverter(); + + $this->notification->message = $converter->convert($this->notification->message); + + $link = env('APP_URL_FRONTEND', 'http://localhost:3000') . "/manager/learning/" . $this->notification->learning_product->slug; + + return $this->from(env('MAIL_FROM_ADDRESS')) + ->with([ + 'notification' => $this->notification, + 'link' => $link + ]) + ->markdown('emails.courses.notification'); + } +} diff --git a/app/Mail/MemberChanges.php b/app/Mail/MemberChanges.php new file mode 100644 index 0000000..0feb3e2 --- /dev/null +++ b/app/Mail/MemberChanges.php @@ -0,0 +1,51 @@ +notification = $notification; + } + + /** + * Build the message. + * + * @return $this + */ + public function build() + { + + $converter = new HtmlConverter(); + + $this->notification->message = $converter->convert($this->notification->message); + + $link = env('APP_URL_FRONTEND', 'http://localhost:3000') . "/manager/members/" . $this->notification->member->slug; + + return $this->from(env('MAIL_FROM_ADDRESS')) + ->with([ + 'notification' => $this->notification, + 'link' => $link + ]) + ->markdown('emails.members.hasChanges'); + } +} diff --git a/app/Notifications/CustomNotification.php b/app/Notifications/CustomNotification.php new file mode 100644 index 0000000..625534f --- /dev/null +++ b/app/Notifications/CustomNotification.php @@ -0,0 +1,69 @@ +subject = $subject; + $this->message = $message; + } + + /** + * Get the notification's delivery channels. + * + * @param mixed $notifiable + * @return array + */ + public function via($notifiable) + { + return [ + // 'mail', + 'database', + 'broadcast' + ]; + } + + /** + * Get the mail representation of the notification. + * + * @param mixed $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + */ + public function toMail($notifiable) + { + return (new MailMessage) + ->line('The introduction to the notification.') + ->action('Notification Action', url('/')) + ->line('Thank you for using our application!'); + } + + /** + * Get the array representation of the notification. + * + * @param mixed $notifiable + * @return array + */ + public function toArray($notifiable) + { + return [ + 'subject' => $this->subject, + 'message' => $this->message, + ]; + } +} diff --git a/app/Notifications/PasswordResetNotification.php b/app/Notifications/PasswordResetNotification.php new file mode 100644 index 0000000..c871e61 --- /dev/null +++ b/app/Notifications/PasswordResetNotification.php @@ -0,0 +1,71 @@ +token = $token; + } + + /** + * Get the notification's delivery channels. + * + * @param mixed $notifiable + * @return array + */ + public function via($notifiable) + { + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param mixed $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + */ + public function toMail($notifiable) + { + $urlToResetForm = sprintf( + '%s/auth/password-reset?token=%s', + config('app.frontend_url', '#'), + urlencode($this->token), + ); + + return (new MailMessage) + ->subject('Opnieuw instellen van wachtwoord') + ->line('Je hebt aangegeven dat je je wachtwoord bent vergeten. + Ga naar MijnGGZecademy en stel jouw nieuwe wachtwoord in.') + ->action('Stel je wachtwoord in', $urlToResetForm); + } + + /** + * Get the array representation of the notification. + * + * @param mixed $notifiable + * @return array + */ + public function toArray($notifiable) + { + return [ + // + ]; + } +} diff --git a/app/Notifications/UserNotification.php b/app/Notifications/UserNotification.php new file mode 100644 index 0000000..4e284f7 --- /dev/null +++ b/app/Notifications/UserNotification.php @@ -0,0 +1,64 @@ +line('The introduction to the notification.') + ->action('Notification Action', url('/')) + ->line('Thank you for using our application!'); + } + + /** + * Get the array representation of the notification. + * + * @param mixed $notifiable + * @return array + */ + public function toArray($notifiable) + { + return [ + 'message' => 'User Notification', + ]; + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..ee8ca5b --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,28 @@ + 'App\Policies\ModelPolicy', + ]; + + /** + * Register any authentication / authorization services. + * + * @return void + */ + public function boot() + { + $this->registerPolicies(); + + // + } +} diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php new file mode 100644 index 0000000..f1fd4c0 --- /dev/null +++ b/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,21 @@ + ['auth:sanctum']]); + + require base_path('routes/channels.php'); + } +} diff --git a/app/Providers/CorsServiceProvider.php b/app/Providers/CorsServiceProvider.php new file mode 100644 index 0000000..4ff7b8a --- /dev/null +++ b/app/Providers/CorsServiceProvider.php @@ -0,0 +1,43 @@ +app->when(CorsService::class) + ->needs(ValidatesArray::class) + ->give(fn () => static::determineConfigValidator()); + } + + private static function determineConfigValidator(): ValidatesArray + { + return new NetteValidator( + new \Nette\Schema\Processor(), + static::getConfigValidationSchema(), + ); + } + + private static function getConfigValidationSchema(): Schema + { + return Expect::structure([ + 'path' => Expect::string(), + 'origin' => Expect::string()->nullable(), + 'methods' => Expect::arrayOf(Expect::string()), + 'headers' => Expect::arrayOf(Expect::string()), + ]); + } +} diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php new file mode 100644 index 0000000..723a290 --- /dev/null +++ b/app/Providers/EventServiceProvider.php @@ -0,0 +1,34 @@ + [ + SendEmailVerificationNotification::class, + ], + ]; + + /** + * Register any events for your application. + * + * @return void + */ + public function boot() + { + parent::boot(); + + // + } +} diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..540d17b --- /dev/null +++ b/app/Providers/RouteServiceProvider.php @@ -0,0 +1,80 @@ +mapApiRoutes(); + + $this->mapWebRoutes(); + + // + } + + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + * + * @return void + */ + protected function mapWebRoutes() + { + Route::middleware('web') + ->namespace($this->namespace) + ->group(base_path('routes/web.php')); + } + + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + * + * @return void + */ + protected function mapApiRoutes() + { + Route::prefix('api') + ->middleware('api') + ->namespace($this->namespace) + ->group(base_path('routes/api.php')); + } +} diff --git a/app/Repositories/Accreditation.php b/app/Repositories/Accreditation.php new file mode 100644 index 0000000..0f25ac0 --- /dev/null +++ b/app/Repositories/Accreditation.php @@ -0,0 +1,28 @@ +belongsTo(LearningProduct::class); + } + + public function filters() + { + return $this->morphMany(FilterItemsAssociation::class, 'filter_items_associations'); + } +} \ No newline at end of file diff --git a/app/Repositories/Address.php b/app/Repositories/Address.php new file mode 100644 index 0000000..5bf865d --- /dev/null +++ b/app/Repositories/Address.php @@ -0,0 +1,16 @@ +belongsTo(ChecklistCategory::class); + } +} diff --git a/app/Repositories/ChecklistCategory.php b/app/Repositories/ChecklistCategory.php new file mode 100644 index 0000000..6cd61ca --- /dev/null +++ b/app/Repositories/ChecklistCategory.php @@ -0,0 +1,17 @@ +hasMany(Checklist::class); + } +} diff --git a/app/Repositories/ChecklistVersion.php b/app/Repositories/ChecklistVersion.php new file mode 100644 index 0000000..fa27c50 --- /dev/null +++ b/app/Repositories/ChecklistVersion.php @@ -0,0 +1,29 @@ + 'date:d M Y', + ]; + + protected $with = ['user']; + + public function version() + { + return $this->belongsTo(Version::class); + } + public function user() + { + return $this->belongsTo(User::class); + } +} diff --git a/app/Repositories/Contact.php b/app/Repositories/Contact.php new file mode 100644 index 0000000..5946383 --- /dev/null +++ b/app/Repositories/Contact.php @@ -0,0 +1,10 @@ +belongsTo(LearningProduct::class); + } + + public function scopeNotExpired($query) + { + return $query->where('date', '>', new DateTime()); + } + + public function scopeExpired($query) + { + return $query->where('date', '<', new DateTime()); + } + + public function scopeExpireInFiveMinutes($query) + { + $minutes_to_add = 5; + $time = new DateTime(); + $time->add(new DateInterval('PT' . $minutes_to_add . 'M')); + // $stamp = $time->format('Y-m-d H:i'); + + return $query->where('date', '<', $time); + } + + public function scopeNotSent($query) + { + return $query->where('sent', false); + } +} diff --git a/app/Repositories/Filter.php b/app/Repositories/Filter.php new file mode 100644 index 0000000..0ceb5e9 --- /dev/null +++ b/app/Repositories/Filter.php @@ -0,0 +1,25 @@ +id . '-' . Str::slug($this->title); + } + + public function items() + { + return $this->hasMany(FilterItem::class)->orderBy('title'); + } +} diff --git a/app/Repositories/FilterItem.php b/app/Repositories/FilterItem.php new file mode 100644 index 0000000..f4431de --- /dev/null +++ b/app/Repositories/FilterItem.php @@ -0,0 +1,20 @@ +belongsTo(Filter::class); + } +} diff --git a/app/Repositories/FilterItemsAssociation.php b/app/Repositories/FilterItemsAssociation.php new file mode 100644 index 0000000..de4e8ad --- /dev/null +++ b/app/Repositories/FilterItemsAssociation.php @@ -0,0 +1,20 @@ +morphTo(); + } + + public function filter_item() + { + return $this->belongsTo(FilterItem::class); + } +} \ No newline at end of file diff --git a/app/Repositories/LearningProduct.php b/app/Repositories/LearningProduct.php new file mode 100644 index 0000000..6742ade --- /dev/null +++ b/app/Repositories/LearningProduct.php @@ -0,0 +1,80 @@ + 'boolean', + 'third_party_training' => 'boolean', + 'voor_opleiders' => 'boolean', + ]; + + public function getSlugAttribute() + { + return $this->id . '-' . Str::slug($this->title); + } + + public function registerMediaCollections(): void + { + $this + ->addMediaCollection('learning_products_covers') + ->singleFile(); + + $this + ->addMediaCollection('learning_products_tiles') + ->singleFile(); + } + + public function registerMediaConversions(Media $media = null): void + { + $this->addMediaConversion('thumb') + ->height(50); + } + + public function draft() + { + return $this->hasOne('App\Repositories\LearningProduct', 'parent_id', 'id'); + } + + public function filters() + { + return $this->morphMany(FilterItemsAssociation::class, 'filter_items_associations'); + } + + public function versions() + { + return $this->hasMany(Version::class); + } + + public function accreditations() + { + return $this->hasMany(Accreditation::class); + } + + public function notifications() + { + return $this->hasMany(CourseNotification::class); + } + + public function synonyms() + { + return $this->belongsToMany(Synonym::class); + } +} \ No newline at end of file diff --git a/app/Repositories/LearningProductSynonym.php b/app/Repositories/LearningProductSynonym.php new file mode 100644 index 0000000..822b654 --- /dev/null +++ b/app/Repositories/LearningProductSynonym.php @@ -0,0 +1,16 @@ +id . '-' . Str::slug($this->formal_name); + } + + public function summaries() + { + return $this->hasMany(Summary::class); + } + + public function contributions() + { + return $this->hasMany(Contribution::class); + } + + public function addresses() + { + return $this->hasMany(Address::class); + } + + public function contacts() + { + return $this->hasMany(Contact::class); + } + + public function management_links() + { + return $this->hasMany(ManagementLink::class); + } + + public function main_branch() + { + return $this->hasOne(Branch::class, 'id', 'branch_id'); + } + + public function revision() + { + return $this->hasOne(Revision::class); + } + + public function sub_branches() + { + return $this->belongsToMany(Branch::class, 'branch_members')->using(BranchMember::class); + } + + public function users() + { + return $this->belongsToMany(User::class, 'member_users'); + } + + public function registerMediaCollections(): void + { + $this + ->addMediaCollection('members_logos') + ->singleFile(); + } + + public function registerMediaConversions(Media $media = null): void + { + $this->addMediaConversion('thumb') + ->height(50); + } + + public static function getQueryBuilderConfig(): QueryBuilder\Config + { + return (new QueryBuilder\Config()) + ->setAllowedFilters(['show_on_website']) + ->setAllowedSorts(['id', 'informal_name']); + } +} diff --git a/app/Repositories/Notification.php b/app/Repositories/Notification.php new file mode 100644 index 0000000..d2320f8 --- /dev/null +++ b/app/Repositories/Notification.php @@ -0,0 +1,16 @@ +allowedAppends = $allowedAppends; + + return $this; + } + + /** + * @return string[] + */ + public function getAllowedAppends(): array + { + return $this->allowedAppends; + } + + /** + * @param string[] $allowedFields + * @return self + */ + public function setAllowedFields(array $allowedFields): self + { + $this->allowedFields = $allowedFields; + + return $this; + } + + /** + * @return string[] + */ + public function getAllowedFields(): array + { + return $this->allowedFields; + } + + /** + * @param string[] $allowedFilters + * @return self + */ + public function setAllowedFilters(array $allowedFilters): self + { + $this->allowedFilters = $allowedFilters; + + return $this; + } + + /** + * @return string[] + */ + public function getAllowedFilters(): array + { + return $this->allowedFilters; + } + + /** + * @param string[] $allowedIncludes + * @return self + */ + public function setAllowedIncludes(array $allowedIncludes): self + { + $this->allowedIncludes = $allowedIncludes; + + return $this; + } + + /** + * @return string[] + */ + public function getAllowedIncludes(): array + { + return $this->allowedIncludes; + } + + /** + * @param string[] $allowedSorts + * @return self + */ + public function setAllowedSorts(array $allowedSorts): self + { + $this->allowedSorts = $allowedSorts; + + return $this; + } + + /** + * @return string[] + */ + public function getAllowedSorts(): array + { + return $this->allowedSorts; + } +} diff --git a/app/Repositories/QueryBuilder/ConfigProvider.php b/app/Repositories/QueryBuilder/ConfigProvider.php new file mode 100644 index 0000000..706e391 --- /dev/null +++ b/app/Repositories/QueryBuilder/ConfigProvider.php @@ -0,0 +1,8 @@ +belongsTo(User::class); + } + + public function revisor() + { + return $this->belongsTo(User::class); + } + + public function getHasChangesAttribute() + { + return $this->updated_at != $this->accepted_at; + } +} diff --git a/app/Repositories/Role.php b/app/Repositories/Role.php new file mode 100644 index 0000000..e5de560 --- /dev/null +++ b/app/Repositories/Role.php @@ -0,0 +1,20 @@ +belongsToMany(User::class); + } +} diff --git a/app/Repositories/Summary.php b/app/Repositories/Summary.php new file mode 100644 index 0000000..54b277e --- /dev/null +++ b/app/Repositories/Summary.php @@ -0,0 +1,65 @@ +belongsTo(Member::class); + } + + protected static function booted() + { + static::created(fn (self $summary) => static::cascadeAttributes($summary)); + static::updated(fn (self $summary) => static::cascadeAttributes($summary)); + static::deleting(fn (self $summary) => static::cascadeAttributes($summary)); + } + + /** + * @todo extract to generic subsystem + */ + private static function cascadeAttributes(self $summary): void + { + static::maybeCascadeAttribute($summary, 'updated_at', 'member', 'updated_at'); + } + + /** + * @todo extract to generic subsystem + */ + private static function maybeCascadeAttribute( + self $summary, + string $sourceAttribute, + string $relationship, + string $targetAttribute + ): void + { + $target = $summary->{$relationship} ?? null; + + if (is_null($target)) { + return; + } + + /** @var Model $target */ + Assert::isAOf($target, Model::class); + + $target->withoutEvents(fn () => static::cascadeAttribute($summary, $target, $sourceAttribute, $targetAttribute)); + } + + /** + * @todo extract to generic subsystem + */ + private static function cascadeAttribute(self $summary, Model $target, string $sourceAttribute, string $targetAttribute): void + { + $target->update([ + $targetAttribute => $summary->{$sourceAttribute}, + 'timestamps' => false, + ]); + } +} diff --git a/app/Repositories/Synonym.php b/app/Repositories/Synonym.php new file mode 100644 index 0000000..980dcbb --- /dev/null +++ b/app/Repositories/Synonym.php @@ -0,0 +1,15 @@ + 'datetime', + ]; + + public function roles() + { + return $this->belongsToMany(Role::class); + } + + public function hasAnyRoles($roles) + { + return $this->roles()->whereIn('name', $roles)->first() ? true : false; + } + + public function hasRole($role) + { + return $this->roles()->where('name', $role)->first() ? true : false; + } + + public function members() + { + return $this->belongsToMany(Member::class, 'member_users'); + } + + public function getIsMemberEditorAttribute() + { + return $this->members->count() > 0; + } + + public function registerMediaCollections(): void + { + $this + ->addMediaCollection('profile_pics') + ->singleFile(); + } + + public function registerMediaConversions(Media $media = null): void + { + $this->addMediaConversion('thumb') + ->width(50) + ->height(50); + } + + public function sendPasswordResetNotification($token) + { + $this->notify(new PasswordResetNotification($token)); + } + + public function getFullNameAttribute() + { + return "{$this->first_name} {$this->last_name}"; + } + + public function getIsSuperAdminAttribute() + { + return $this->hasRole('super_admin'); + } + + public function getIsAdminAttribute() + { + return $this->hasRole('admin'); + } + + public function getIsOperatorAttribute() + { + return $this->hasRole('operator'); + } + + public function getIsUserAttribute() + { + return $this->hasRole('user'); + } + + // public function setPasswordAttribute($password) + // { + // $this->attributes['password'] = bcrypt($password); + // } +} diff --git a/app/Repositories/Version.php b/app/Repositories/Version.php new file mode 100644 index 0000000..e96447d --- /dev/null +++ b/app/Repositories/Version.php @@ -0,0 +1,32 @@ +belongsTo(LearningProduct::class); + } + + public function filters() + { + return $this->morphMany(FilterItemsAssociation::class, 'filter_items_associations'); + } + + public function checklists() + { + return $this->hasMany(ChecklistVersion::class); + } +} diff --git a/app/Services/AccreditationService.php b/app/Services/AccreditationService.php new file mode 100644 index 0000000..f8c31c5 --- /dev/null +++ b/app/Services/AccreditationService.php @@ -0,0 +1,53 @@ +accreditationRepository = $accreditationRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $accreditation = $this->accreditationRepository->findOrFail($data['id']); + $accreditation->update($data); + } else { + $accreditation = $this->accreditationRepository->create($data); + } + + return $accreditation; + } + + public function delete($id) + { + $accreditation = $this->accreditationRepository->findOrFail($id); + $accreditation->delete(); + } + + public function get($id) + { + return $this->accreditationRepository->findOrFail($id); + } + + public function getAll() + { + return $this->accreditationRepository->all(); + } + + public function with(array $children) + { + return $this->accreditationRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->accreditationRepository->with($children)->findOrFail($id); + } +} diff --git a/app/Services/AddressService.php b/app/Services/AddressService.php new file mode 100644 index 0000000..fc8317d --- /dev/null +++ b/app/Services/AddressService.php @@ -0,0 +1,53 @@ +addressRepository = $addressRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $address = $this->addressRepository->findOrFail($data['id']); + $address->update($data); + } else { + $address = $this->addressRepository->create($data); + } + + return $address; + } + + public function delete($id) + { + $address = $this->addressRepository->findOrFail($id); + $address->delete(); + } + + public function get($id) + { + return $this->addressRepository->findOrFail($id); + } + + public function getAll() + { + return $this->addressRepository->all(); + } + + public function with(array $children) + { + return $this->addressRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->addressRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/BranchService.php b/app/Services/BranchService.php new file mode 100644 index 0000000..0bb7adc --- /dev/null +++ b/app/Services/BranchService.php @@ -0,0 +1,53 @@ +branchRepository = $branchRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $branch = $this->branchRepository->findOrFail($data['id']); + $branch->update($data); + } else { + $branch = $this->branchRepository->create($data); + } + + return $branch; + } + + public function delete($id) + { + $branch = $this->branchRepository->findOrFail($id); + $branch->delete(); + } + + public function get($id) + { + return $this->branchRepository->findOrFail($id); + } + + public function getAll() + { + return $this->branchRepository->all(); + } + + public function with(array $children) + { + return $this->branchRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->branchRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/ChecklistCategoryService.php b/app/Services/ChecklistCategoryService.php new file mode 100644 index 0000000..3e2380c --- /dev/null +++ b/app/Services/ChecklistCategoryService.php @@ -0,0 +1,53 @@ +checklistCategoryRepository = $checklistCategoryRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $checklistCategory = $this->checklistCategoryRepository->findOrFail($data['id']); + $checklistCategory->update($data); + } else { + $checklistCategory = $this->checklistCategoryRepository->create($data); + } + + return $checklistCategory; + } + + public function delete($id) + { + $checklistCategory = $this->checklistCategoryRepository->findOrFail($id); + $checklistCategory->delete(); + } + + public function get($id) + { + return $this->checklistCategoryRepository->findOrFail($id); + } + + public function getAll() + { + return $this->checklistCategoryRepository->all(); + } + + public function with(array $children) + { + return $this->checklistCategoryRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->checklistCategoryRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/ChecklistService.php b/app/Services/ChecklistService.php new file mode 100644 index 0000000..a455def --- /dev/null +++ b/app/Services/ChecklistService.php @@ -0,0 +1,53 @@ +checklistRepository = $checklistRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $checklist = $this->checklistRepository->findOrFail($data['id']); + $checklist->update($data); + } else { + $checklist = $this->checklistRepository->create($data); + } + + return $checklist; + } + + public function delete($id) + { + $checklist = $this->checklistRepository->findOrFail($id); + $checklist->delete(); + } + + public function get($id) + { + return $this->checklistRepository->findOrFail($id); + } + + public function getAll() + { + return $this->checklistRepository->all(); + } + + public function with(array $children) + { + return $this->checklistRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->checklistRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/ChecklistVersionService.php b/app/Services/ChecklistVersionService.php new file mode 100644 index 0000000..4dc0d85 --- /dev/null +++ b/app/Services/ChecklistVersionService.php @@ -0,0 +1,53 @@ +checklistversionRepository = $checklistversionRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $checklistversion = $this->checklistversionRepository->findOrFail($data['id']); + $checklistversion->update($data); + } else { + $checklistversion = $this->checklistversionRepository->create($data); + } + + return $checklistversion; + } + + public function delete($id) + { + $checklistversion = $this->checklistversionRepository->findOrFail($id); + $checklistversion->delete(); + } + + public function get($id) + { + return $this->checklistversionRepository->findOrFail($id); + } + + public function getAll() + { + return $this->checklistversionRepository->all(); + } + + public function with(array $children) + { + return $this->checklistversionRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->checklistversionRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/ContactService.php b/app/Services/ContactService.php new file mode 100644 index 0000000..9fb6b22 --- /dev/null +++ b/app/Services/ContactService.php @@ -0,0 +1,53 @@ +contactRepository = $contactRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $contact = $this->contactRepository->findOrFail($data['id']); + $contact->update($data); + } else { + $contact = $this->contactRepository->create($data); + } + + return $contact; + } + + public function delete($id) + { + $contact = $this->contactRepository->findOrFail($id); + $contact->delete(); + } + + public function get($id) + { + return $this->contactRepository->findOrFail($id); + } + + public function getAll() + { + return $this->contactRepository->all(); + } + + public function with(array $children) + { + return $this->contactRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->contactRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/ContributionService.php b/app/Services/ContributionService.php new file mode 100644 index 0000000..88441c9 --- /dev/null +++ b/app/Services/ContributionService.php @@ -0,0 +1,53 @@ +contributionRepository = $contributionRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $contribution = $this->contributionRepository->findOrFail($data['id']); + $contribution->update($data); + } else { + $contribution = $this->contributionRepository->create($data); + } + + return $contribution; + } + + public function delete($id) + { + $contribution = $this->contributionRepository->findOrFail($id); + $contribution->delete(); + } + + public function get($id) + { + return $this->contributionRepository->findOrFail($id); + } + + public function getAll() + { + return $this->contributionRepository->all(); + } + + public function with(array $children) + { + return $this->contributionRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->contributionRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/CorsService.php b/app/Services/CorsService.php new file mode 100644 index 0000000..c24df33 --- /dev/null +++ b/app/Services/CorsService.php @@ -0,0 +1,77 @@ +configValidator = $configValidator; + $this->config = $this->determineConfig(); + } + + private function determineConfig(): array + { + $config = config(self::CONFIG_KEY, []); + $this->configValidator->validateArray($config)->assertIsSuccess(); + + if (empty($config['origin'])) { + $config['origin'] = '*'; + } + + $config['path'] = sprintf( + '%2$s%1$s%2$s', + $config['path'], + self::CONFIG_PATH_REGEX_DELIMITER, + ); + + return $config; + } + + public function isRequestValid(Request $request): bool + { + return 1 === preg_match($this->config['path'], $request->getPathInfo()); + } + + public function addHeadersToResponse(Response $response): void + { + $this->addHeaderToResponseByArray( + 'Access-Control-Allow-Methods', + $this->config['methods'], + $response, + ); + + $this->addHeaderToResponseByArray( + 'Access-Control-Allow-Headers', + $this->config['headers'], + $response, + ); + + $response->header( + 'Access-Control-Allow-Origin', + $this->config['origin'], + ); + } + + private function addHeaderToResponseByArray(string $key, array $values, Response $response): void + { + $response->header($key, implode(', ', $values)); + } +} diff --git a/app/Services/CourseNotificationService.php b/app/Services/CourseNotificationService.php new file mode 100644 index 0000000..5e0c06a --- /dev/null +++ b/app/Services/CourseNotificationService.php @@ -0,0 +1,82 @@ +coursenotificationRepository = $coursenotificationRepository; + } + + public function save(array $data) + { + $time = explode(':', $data['time']); + $hours = $time[0]; + $minutes = $time[1]; + + $data['date'] = Carbon::parse($data['date']) + ->copy() + ->addHours($hours) + ->addMinutes($minutes); + + if (isset($data['id'])) { + $coursenotification = $this->coursenotificationRepository->findOrFail($data['id']); + $coursenotification->update($data); + } else { + $coursenotification = $this->coursenotificationRepository->create($data); + } + + return $coursenotification; + } + + public function delete($id) + { + $coursenotification = $this->coursenotificationRepository->findOrFail($id); + $coursenotification->delete(); + } + + public function get($id) + { + return $this->coursenotificationRepository->findOrFail($id); + } + + public function getAll() + { + return $this->coursenotificationRepository->all(); + } + + public function getNotExpired() + { + return $this->coursenotificationRepository->NotExpired()->get(); + } + + public function getExpiredToSendWithProducts() + { + return $this->coursenotificationRepository + ->with(['learning_product']) + ->Expired() + ->NotSent() + ->get(); + } + + public function getExpiringToSend() + { + return $this->coursenotificationRepository->ExpireInFiveMinutes()->NotSent()->get(); + } + + public function with(array $children) + { + return $this->coursenotificationRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->coursenotificationRepository->with($children)->findOrFail($id); + } +} diff --git a/app/Services/FilterItemService.php b/app/Services/FilterItemService.php new file mode 100644 index 0000000..fdc755f --- /dev/null +++ b/app/Services/FilterItemService.php @@ -0,0 +1,53 @@ +filteritemRepository = $filteritemRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $filteritem = $this->filteritemRepository->findOrFail($data['id']); + $filteritem->update($data); + } else { + $filteritem = $this->filteritemRepository->create($data); + } + + return $filteritem; + } + + public function delete($id) + { + $filteritem = $this->filteritemRepository->findOrFail($id); + $filteritem->delete(); + } + + public function get($id) + { + return $this->filteritemRepository->findOrFail($id); + } + + public function getAll() + { + return $this->filteritemRepository->all(); + } + + public function with(array $children) + { + return $this->filteritemRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->filteritemRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/FilterItemsAssociationService.php b/app/Services/FilterItemsAssociationService.php new file mode 100644 index 0000000..0a5ec83 --- /dev/null +++ b/app/Services/FilterItemsAssociationService.php @@ -0,0 +1,58 @@ +filteritemsassociationRepository = $filteritemsassociationRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $filteritemsassociation = $this->filteritemsassociationRepository->findOrFail($data['id']); + $filteritemsassociation->update($data); + } else { + $filteritemsassociation = $this->filteritemsassociationRepository->create($data); + } + + return $filteritemsassociation; + } + + public function delete($id) + { + $filteritemsassociation = $this->filteritemsassociationRepository->findOrFail($id); + $filteritemsassociation->delete(); + } + + public function deleteAllWithFilterItemId($id) + { + return $this->filteritemsassociationRepository->where('filter_item_id', $id)->delete(); + } + + public function get($id) + { + return $this->filteritemsassociationRepository->findOrFail($id); + } + + public function getAll() + { + return $this->filteritemsassociationRepository->all(); + } + + public function with(array $children) + { + return $this->filteritemsassociationRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->filteritemsassociationRepository->with($children)->findOrFail($id); + } +} diff --git a/app/Services/FilterService.php b/app/Services/FilterService.php new file mode 100644 index 0000000..ab55005 --- /dev/null +++ b/app/Services/FilterService.php @@ -0,0 +1,58 @@ +filterRepository = $filterRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $filter = $this->filterRepository->findOrFail($data['id']); + $filter->update($data); + } else { + $filter = $this->filterRepository->create($data); + } + + return $filter; + } + + public function delete($id) + { + $filter = $this->filterRepository->findOrFail($id); + $filter->delete(); + } + + public function get($id) + { + return $this->filterRepository->findOrFail($id); + } + + public function getAll() + { + return $this->filterRepository->all(); + } + + public function with(array $children) + { + return $this->filterRepository->with($children)->get(); + } + + public function withCount(array $children) + { + return $this->filterRepository->withCount($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->filterRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/LearningProductService.php b/app/Services/LearningProductService.php new file mode 100644 index 0000000..e2ad883 --- /dev/null +++ b/app/Services/LearningProductService.php @@ -0,0 +1,93 @@ +learningProductRepository = $learningProductRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $learningProduct = $this->learningProductRepository + ->withTrashed() + ->findOrFail($data['id']); + $learningProduct->update($data); + } else { + $learningProduct = $this->learningProductRepository->create($data); + } + + return $learningProduct; + } + + public function delete($id, $forceDelete = false) + { + $learningProduct = $this->learningProductRepository->withTrashed()->findOrFail($id); + + if ($forceDelete || $learningProduct->deleted_at) { + return $learningProduct->forceDelete($id); + } + + return $learningProduct->delete(); + } + + public function get($id) + { + return $this->learningProductRepository->withTrashed()->findOrFail($id); + } + + public function getAll() + { + return $this->learningProductRepository->withTrashed()->get(); + } + + public function getPublishedWith(array $children) + { + return $this->learningProductRepository->with($children)->where('published', 1)->get(); + } + + public function with(array $children) + { + return $this->learningProductRepository->with($children)->get(); + } + + public function withTrashedAndChildren(array $children) + { + return $this->learningProductRepository->with($children)->withTrashed()->get(); + } + + public function getOneWith($id, array $children) + { + return $this->learningProductRepository->with($children)->findOrFail($id); + } + + public function getOneWithChildrenAndTrashed($id, array $children) + { + return $this->learningProductRepository + ->with($children) + ->withTrashed() + ->findOrFail($id); + } + + public function getDraftId($id) + { + return $this->learningProductRepository->where('parent_id', $id); + } + + public function countAll() + { + return $this->learningProductRepository->where('published', true)->get()->count(); + } + + public function scopeForMembers($query) + { + return $query->where('for_members', true); + } +} diff --git a/app/Services/ManagementLinkService.php b/app/Services/ManagementLinkService.php new file mode 100644 index 0000000..32bca70 --- /dev/null +++ b/app/Services/ManagementLinkService.php @@ -0,0 +1,53 @@ +managementLinkRepository = $managementLinkRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $management_links = $this->managementLinkRepository->findOrFail($data['id']); + $management_links->update($data); + } else { + $management_links = $this->managementLinkRepository->create($data); + } + + return $management_links; + } + + public function delete($id) + { + $management_links = $this->managementLinkRepository->findOrFail($id); + $management_links->delete(); + } + + public function get($id) + { + return $this->managementLinkRepository->findOrFail($id); + } + + public function getAll() + { + return $this->managementLinkRepository->all(); + } + + public function with(array $children) + { + return $this->managementLinkRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->managementLinkRepository->with($children)->findOrFail($id); + } +} diff --git a/app/Services/MemberService.php b/app/Services/MemberService.php new file mode 100644 index 0000000..64f930a --- /dev/null +++ b/app/Services/MemberService.php @@ -0,0 +1,81 @@ +memberRepository = $memberRepository; + $this->validTypes = range(self::VALID_TYPES_FIRST, self::VALID_TYPES_LAST); + } + + public function save(array $data) + { + if (isset($data['id'])) { + $member = $this->memberRepository->findOrFail($data['id']); + $member->update($data); + } else { + $member = $this->memberRepository->create($data); + } + + return $member; + } + + public function seed(array $data) + { + $member = $this->memberRepository->create($data); + + return $member; + } + + public function delete($id, $forceDelete = false) + { + $member = $this->memberRepository->withTrashed()->findOrFail($id); + + if ($forceDelete || $member->deleted_at) { + return $member->forceDelete($id); + } + + $member->delete(); + } + + public function get($id) + { + return $this->memberRepository->findOrFail($id); + } + + public function getAll() + { + return $this->memberRepository->all(); + } + + public function with(array $children) + { + return $this->memberRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->memberRepository->with($children)->withTrashed()->findOrFail($id); + } + + public function countAll() + { + // return $this->memberRepository->where('published', true)->get()->count(); + return $this->memberRepository->get()->count(); + } + + public function getValidTypes(): array + { + return $this->validTypes; + } +} diff --git a/app/Services/QueryBuilderService.php b/app/Services/QueryBuilderService.php new file mode 100644 index 0000000..0803713 --- /dev/null +++ b/app/Services/QueryBuilderService.php @@ -0,0 +1,61 @@ +applyQueryBuilderConfig( + $builder, + $builderConfigProvider::getQueryBuilderConfig(), + ); + } + + return $builder; + } + + private function applyQueryBuilderConfig( + QueryBuilder $builder, + QueryBuilderConfig $config + ): void + { + $allowedFields = $config->getAllowedFields(); + + if (count($allowedFields)) { + $builder->allowedFields($allowedFields); + } + + $builder->allowedAppends($config->getAllowedAppends()); + $builder->allowedFilters($config->getAllowedFilters()); + $builder->allowedIncludes($config->getAllowedIncludes()); + $builder->allowedSorts($config->getAllowedSorts()); + } +} + diff --git a/app/Services/RevisionService.php b/app/Services/RevisionService.php new file mode 100644 index 0000000..27aa303 --- /dev/null +++ b/app/Services/RevisionService.php @@ -0,0 +1,53 @@ +revisionRepository = $revisionRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $revision = $this->revisionRepository->findOrFail($data['id']); + $revision->update($data); + } else { + $revision = $this->revisionRepository->create($data); + } + + return $revision; + } + + // public function delete($id) + // { + // $revision = $this->revisionRepository->findOrFail($id); + // $revision->delete(); + // } + + // public function get($id) + // { + // return $this->revisionRepository->findOrFail($id); + // } + + // public function getAll() + // { + // return $this->revisionRepository->all(); + // } + + // public function with(array $children) + // { + // return $this->revisionRepository->with($children)->get(); + // } + + // public function getOneWith($id, array $children) + // { + // return $this->revisionRepository->with($children)->findOrFail($id); + // } +} \ No newline at end of file diff --git a/app/Services/RoleService.php b/app/Services/RoleService.php new file mode 100644 index 0000000..23ccc1e --- /dev/null +++ b/app/Services/RoleService.php @@ -0,0 +1,20 @@ +roleRepository = $roleRepository; + } + + public function getAll() + { + return $this->roleRepository::all(); + } + +} diff --git a/app/Services/SummaryService.php b/app/Services/SummaryService.php new file mode 100644 index 0000000..fbc13d2 --- /dev/null +++ b/app/Services/SummaryService.php @@ -0,0 +1,53 @@ +summaryRepository = $summaryRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $summary = $this->summaryRepository->findOrFail($data['id']); + $summary->update($data); + } else { + $summary = $this->summaryRepository->create($data); + } + + return $summary; + } + + public function delete($id) + { + $summary = $this->summaryRepository->findOrFail($id); + $summary->delete(); + } + + public function get($id) + { + return $this->summaryRepository->findOrFail($id); + } + + public function getAll() + { + return $this->summaryRepository->all(); + } + + public function with(array $children) + { + return $this->summaryRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->summaryRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/SynonymService.php b/app/Services/SynonymService.php new file mode 100644 index 0000000..04011ce --- /dev/null +++ b/app/Services/SynonymService.php @@ -0,0 +1,53 @@ +synonymRepository = $synonymRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $synonym = $this->synonymRepository->findOrFail($data['id']); + $synonym->update($data); + } else { + $synonym = $this->synonymRepository->create($data); + } + + return $synonym; + } + + public function delete($id) + { + $synonym = $this->synonymRepository->findOrFail($id); + $synonym->delete(); + } + + public function get($id) + { + return $this->synonymRepository->findOrFail($id); + } + + public function getAll() + { + return $this->synonymRepository->all(); + } + + public function with(array $children) + { + return $this->synonymRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->synonymRepository->with($children)->findOrFail($id); + } +} \ No newline at end of file diff --git a/app/Services/UserService.php b/app/Services/UserService.php new file mode 100644 index 0000000..8e528fc --- /dev/null +++ b/app/Services/UserService.php @@ -0,0 +1,102 @@ +userRepository = $userRepository; + $this->roleRepository = $roleRepository; + } + + public function get($id) + { + return $this->userRepository->findOrFail($id); + } + + public function getByEmailWith($email, array $children) + { + return $this->userRepository->where('email', $email)->with($children)->first(); + } + + public function getAll() + { + return $this->userRepository::all(); + } + + public function getWith(array $children, $quantity = null) + { + return $this->userRepository + ->with($children) + ->take($quantity) + ->get(); + } + + public function with(array $children = []) + { + return $this->userRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->userRepository->with($children)->findOrFail($id); + } + + public function getAllWithRoles(array $roles) + { + return $this->userRepository->whereHas('roles', static function ($query) use ($roles) { + return $query->whereIn('name', $roles); + })->get(); + } + + public function save(array $data, $isSuperAdmin = false) + { + + if (isset($data['password'])) { + $data['password'] = bcrypt($data['password']); + } + + if (isset($data['id'])) { + + $user = $this->userRepository->findOrFail($data['id']); + if (!$user) return null; + + $user->update($data); + + // only admin can manage rules + if ($isSuperAdmin) { + if (isset($data['roles'])) $user->roles()->sync($data['roles']); + else $user->roles()->sync([]); + } + } else { + $user = $this->userRepository->create($data); + + // Get user role, the default role to attach to new users + $role = $this->roleRepository::select('id')->where('name', 'user')->first(); + $user->roles()->attach($role); + } + + return $user; + } + + public function delete($id) + { + $user = $this->get($id); + $user->roles()->detach(); + $user->delete(); + } + + public function truncate() + { + return $this->userRepository->truncate(); + } +} diff --git a/app/Services/VersionService.php b/app/Services/VersionService.php new file mode 100644 index 0000000..cbac388 --- /dev/null +++ b/app/Services/VersionService.php @@ -0,0 +1,53 @@ +versionRepository = $versionRepository; + } + + public function save(array $data) + { + if (isset($data['id'])) { + $version = $this->versionRepository->findOrFail($data['id']); + $version->update($data); + } else { + $version = $this->versionRepository->create($data); + } + + return $version; + } + + public function delete($id) + { + $version = $this->versionRepository->findOrFail($id); + $version->delete(); + } + + public function get($id) + { + return $this->versionRepository->findOrFail($id); + } + + public function getAll() + { + return $this->versionRepository->all(); + } + + public function with(array $children) + { + return $this->versionRepository->with($children)->get(); + } + + public function getOneWith($id, array $children) + { + return $this->versionRepository->with($children)->findOrFail($id); + } +} diff --git a/artisan b/artisan new file mode 100644 index 0000000..5c23e2e --- /dev/null +++ b/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/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..037e17d --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\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/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..daf1e50 --- /dev/null +++ b/composer.json @@ -0,0 +1,79 @@ +{ + "name": "laravel/laravel", + "type": "project", + "description": "The Laravel Framework.", + "keywords": [ + "framework", + "laravel" + ], + "license": "MIT", + "require": { + "php": "^7.2.5", + "beyondcode/laravel-websockets": "^1.8", + "doctrine/dbal": "^2.0", + "fideloper/proxy": "^4.2", + "firebase/php-jwt": "^6.5", + "guzzlehttp/guzzle": "^7.3", + "kamermans/guzzle-oauth2-subscriber": "^1.0", + "laravel/framework": "^7.0", + "laravel/sanctum": "^2.0", + "laravel/slack-notification-channel": "^2.3", + "laravel/tinker": "^2.0", + "laravel/ui": "^2.0", + "league/html-to-markdown": "^4.10", + "nette/schema": "^1.2", + "pusher/pusher-php-server": "~3.0", + "spatie/db-dumper": "2.21.1", + "spatie/laravel-backup": "^6.16", + "spatie/laravel-medialibrary": "^8.7", + "spatie/laravel-query-builder": "^3.6", + "spatie/pdf-to-image": "^2.0", + "webmozart/assert": "^1.11" + }, + "require-dev": { + "facade/ignition": "^2.0", + "fzaninotto/faker": "^1.9.1", + "mockery/mockery": "^1.3.1", + "nunomaduro/collision": "^4.1", + "phpunit/phpunit": "^8.5" + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "autoload": { + "psr-4": { + "App\\": "app/" + }, + "classmap": [ + "database/seeds", + "database/factories" + ] + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "minimum-stability": "dev", + "prefer-stable": true, + "scripts": { + "backups:run": "@php artisan backup:run --no-ansi --no-interaction -vvv", + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..590f933 --- /dev/null +++ b/composer.lock @@ -0,0 +1,9833 @@ +{ + "_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": "b8344eeab4699c090fc4743d2e667516", + "packages": [ + { + "name": "beyondcode/laravel-websockets", + "version": "1.14.0", + "source": { + "type": "git", + "url": "https://github.com/beyondcode/laravel-websockets.git", + "reference": "9ab87be1d96340979e67b462ea5fd6a8b06e6a02" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/beyondcode/laravel-websockets/zipball/9ab87be1d96340979e67b462ea5fd6a8b06e6a02", + "reference": "9ab87be1d96340979e67b462ea5fd6a8b06e6a02", + "shasum": "" + }, + "require": { + "cboden/ratchet": "^0.4.1", + "ext-json": "*", + "facade/ignition-contracts": "^1.0", + "guzzlehttp/psr7": "^1.7|^2.0", + "illuminate/broadcasting": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/http": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/routing": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", + "php": "^7.2|^8.0", + "pusher/pusher-php-server": "^3.0|^4.0|^5.0|^6.0|^7.0", + "react/dns": "^1.1", + "react/http": "^1.1", + "symfony/http-kernel": "^4.0|^5.0|^6.0", + "symfony/psr-http-message-bridge": "^1.1|^2.0" + }, + "require-dev": { + "mockery/mockery": "^1.3.3", + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0", + "phpunit/phpunit": "^8.0|^9.0|^10.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "BeyondCode\\LaravelWebSockets\\WebSocketsServiceProvider" + ], + "aliases": { + "WebSocketRouter": "BeyondCode\\LaravelWebSockets\\Facades\\WebSocketRouter" + } + } + }, + "autoload": { + "psr-4": { + "BeyondCode\\LaravelWebSockets\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marcel Pociot", + "email": "marcel@beyondco.de", + "homepage": "https://beyondcode.de", + "role": "Developer" + }, + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "An easy to use WebSocket server", + "homepage": "https://github.com/beyondcode/laravel-websockets", + "keywords": [ + "beyondcode", + "laravel-websockets" + ], + "support": { + "issues": "https://github.com/beyondcode/laravel-websockets/issues", + "source": "https://github.com/beyondcode/laravel-websockets/tree/1.14.0" + }, + "time": "2023-02-15T10:40:49+00:00" + }, + { + "name": "brick/math", + "version": "0.9.3", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/ca57d18f028f84f777b2168cd1911b0dee2343ae", + "reference": "ca57d18f028f84f777b2168cd1911b0dee2343ae", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0", + "vimeo/psalm": "4.9.2" + }, + "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.9.3" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/brick/math", + "type": "tidelift" + } + ], + "time": "2021-08-15T20:50:18+00:00" + }, + { + "name": "cboden/ratchet", + "version": "v0.4.4", + "source": { + "type": "git", + "url": "https://github.com/ratchetphp/Ratchet.git", + "reference": "5012dc954541b40c5599d286fd40653f5716a38f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ratchetphp/Ratchet/zipball/5012dc954541b40c5599d286fd40653f5716a38f", + "reference": "5012dc954541b40c5599d286fd40653f5716a38f", + "shasum": "" + }, + "require": { + "guzzlehttp/psr7": "^1.7|^2.0", + "php": ">=5.4.2", + "ratchet/rfc6455": "^0.3.1", + "react/event-loop": ">=0.4", + "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5", + "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.0", + "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Ratchet\\": "src/Ratchet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "role": "Developer" + }, + { + "name": "Matt Bonneau", + "role": "Developer" + } + ], + "description": "PHP WebSocket library", + "homepage": "http://socketo.me", + "keywords": [ + "Ratchet", + "WebSockets", + "server", + "sockets", + "websocket" + ], + "support": { + "chat": "https://gitter.im/reactphp/reactphp", + "issues": "https://github.com/ratchetphp/Ratchet/issues", + "source": "https://github.com/ratchetphp/Ratchet/tree/v0.4.4" + }, + "time": "2021-12-14T00:20:41+00:00" + }, + { + "name": "doctrine/cache", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/cache.git", + "reference": "1ca8f21980e770095a31456042471a57bc4c68fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/cache/zipball/1ca8f21980e770095a31456042471a57bc4c68fb", + "reference": "1ca8f21980e770095a31456042471a57bc4c68fb", + "shasum": "" + }, + "require": { + "php": "~7.1 || ^8.0" + }, + "conflict": { + "doctrine/common": ">2.2,<2.4" + }, + "require-dev": { + "cache/integration-tests": "dev-master", + "doctrine/coding-standard": "^9", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psr/cache": "^1.0 || ^2.0 || ^3.0", + "symfony/cache": "^4.4 || ^5.4 || ^6", + "symfony/var-exporter": "^4.4 || ^5.4 || ^6" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" + } + }, + "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 Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.", + "homepage": "https://www.doctrine-project.org/projects/cache.html", + "keywords": [ + "abstraction", + "apcu", + "cache", + "caching", + "couchdb", + "memcached", + "php", + "redis", + "xcache" + ], + "support": { + "issues": "https://github.com/doctrine/cache/issues", + "source": "https://github.com/doctrine/cache/tree/2.2.0" + }, + "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%2Fcache", + "type": "tidelift" + } + ], + "time": "2022-05-20T20:07:39+00:00" + }, + { + "name": "doctrine/dbal", + "version": "2.13.9", + "source": { + "type": "git", + "url": "https://github.com/doctrine/dbal.git", + "reference": "c480849ca3ad6706a39c970cdfe6888fa8a058b8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/c480849ca3ad6706a39c970cdfe6888fa8a058b8", + "reference": "c480849ca3ad6706a39c970cdfe6888fa8a058b8", + "shasum": "" + }, + "require": { + "doctrine/cache": "^1.0|^2.0", + "doctrine/deprecations": "^0.5.3|^1", + "doctrine/event-manager": "^1.0", + "ext-pdo": "*", + "php": "^7.1 || ^8" + }, + "require-dev": { + "doctrine/coding-standard": "9.0.0", + "jetbrains/phpstorm-stubs": "2021.1", + "phpstan/phpstan": "1.4.6", + "phpunit/phpunit": "^7.5.20|^8.5|9.5.16", + "psalm/plugin-phpunit": "0.16.1", + "squizlabs/php_codesniffer": "3.6.2", + "symfony/cache": "^4.4", + "symfony/console": "^2.0.5|^3.0|^4.0|^5.0", + "vimeo/psalm": "4.22.0" + }, + "suggest": { + "symfony/console": "For helpful console commands such as SQL execution and import of files." + }, + "bin": [ + "bin/doctrine-dbal" + ], + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\DBAL\\": "lib/Doctrine/DBAL" + } + }, + "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" + } + ], + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", + "homepage": "https://www.doctrine-project.org/projects/dbal.html", + "keywords": [ + "abstraction", + "database", + "db2", + "dbal", + "mariadb", + "mssql", + "mysql", + "oci8", + "oracle", + "pdo", + "pgsql", + "postgresql", + "queryobject", + "sasql", + "sql", + "sqlanywhere", + "sqlite", + "sqlserver", + "sqlsrv" + ], + "support": { + "issues": "https://github.com/doctrine/dbal/issues", + "source": "https://github.com/doctrine/dbal/tree/2.13.9" + }, + "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%2Fdbal", + "type": "tidelift" + } + ], + "time": "2022-05-02T20:28:55+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "shasum": "" + }, + "require": { + "php": "^7.1|^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "phpunit/phpunit": "^7.5|^8.5|^9.5", + "psr/log": "^1|^2|^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" + }, + "time": "2022-05-02T15:47:09+00:00" + }, + { + "name": "doctrine/event-manager", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/event-manager.git", + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/95aa4cb529f1e96576f3fda9f5705ada4056a520", + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^0.5.3 || ^1", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/common": "<2.9" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "~1.4.10 || ^1.8.8", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.24" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "src" + } + }, + "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" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.", + "homepage": "https://www.doctrine-project.org/projects/event-manager.html", + "keywords": [ + "event", + "event dispatcher", + "event manager", + "event system", + "events" + ], + "support": { + "issues": "https://github.com/doctrine/event-manager/issues", + "source": "https://github.com/doctrine/event-manager/tree/1.2.0" + }, + "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%2Fevent-manager", + "type": "tidelift" + } + ], + "time": "2022-10-12T20:51:15+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": "v2.3.1", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "65b2d8ee1f10915efb3b55597da3404f096acba2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/65b2d8ee1f10915efb3b55597da3404f096acba2", + "reference": "65b2d8ee1f10915efb3b55597da3404f096acba2", + "shasum": "" + }, + "require": { + "php": "^7.0|^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.4|^7.0|^8.0|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "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/v2.3.1" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2020-10-13T00:52:37+00:00" + }, + { + "name": "egulias/email-validator", + "version": "2.1.25", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/0dbf5d78455d4d6a41d186da50adc1122ec066f4", + "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^1.0.1", + "php": ">=5.5", + "symfony/polyfill-intl-idn": "^1.10" + }, + "require-dev": { + "dominicsayers/isemail": "^3.0.7", + "phpunit/phpunit": "^4.8.36|^7.5.15", + "satooshi/php-coveralls": "^1.0.1" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1.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/2.1.25" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2020-12-29T14:50:06+00:00" + }, + { + "name": "evenement/evenement", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/igorw/evenement.git", + "reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/igorw/evenement/zipball/531bfb9d15f8aa57454f5f0285b18bec903b8fb7", + "reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "Evenement": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + } + ], + "description": "Événement is a very simple event dispatching library for PHP", + "keywords": [ + "event-dispatcher", + "event-emitter" + ], + "support": { + "issues": "https://github.com/igorw/evenement/issues", + "source": "https://github.com/igorw/evenement/tree/master" + }, + "time": "2017-07-23T21:35:13+00:00" + }, + { + "name": "facade/ignition-contracts", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/facade/ignition-contracts.git", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^v2.15.8", + "phpunit/phpunit": "^9.3.11", + "vimeo/psalm": "^3.17.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Facade\\IgnitionContracts\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://flareapp.io", + "role": "Developer" + } + ], + "description": "Solution contracts for Ignition", + "homepage": "https://github.com/facade/ignition-contracts", + "keywords": [ + "contracts", + "flare", + "ignition" + ], + "support": { + "issues": "https://github.com/facade/ignition-contracts/issues", + "source": "https://github.com/facade/ignition-contracts/tree/1.0.2" + }, + "time": "2020-10-16T08:27:54+00:00" + }, + { + "name": "fideloper/proxy", + "version": "4.4.2", + "source": { + "type": "git", + "url": "https://github.com/fideloper/TrustedProxy.git", + "reference": "a751f2bc86dd8e6cfef12dc0cbdada82f5a18750" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/a751f2bc86dd8e6cfef12dc0cbdada82f5a18750", + "reference": "a751f2bc86dd8e6cfef12dc0cbdada82f5a18750", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^5.0|^6.0|^7.0|^8.0|^9.0", + "php": ">=5.4.0" + }, + "require-dev": { + "illuminate/http": "^5.0|^6.0|^7.0|^8.0|^9.0", + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^8.5.8|^9.3.3" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Fideloper\\Proxy\\TrustedProxyServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Fideloper\\Proxy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Fidao", + "email": "fideloper@gmail.com" + } + ], + "description": "Set trusted proxies for Laravel", + "keywords": [ + "load balancing", + "proxy", + "trusted proxy" + ], + "support": { + "issues": "https://github.com/fideloper/TrustedProxy/issues", + "source": "https://github.com/fideloper/TrustedProxy/tree/4.4.2" + }, + "time": "2022-02-09T13:33:34+00:00" + }, + { + "name": "fig/http-message-util", + "version": "1.1.5", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message-util.git", + "reference": "9d94dc0154230ac39e5bf89398b324a86f63f765" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message-util/zipball/9d94dc0154230ac39e5bf89398b324a86f63f765", + "reference": "9d94dc0154230ac39e5bf89398b324a86f63f765", + "shasum": "" + }, + "require": { + "php": "^5.3 || ^7.0 || ^8.0" + }, + "suggest": { + "psr/http-message": "The package containing the PSR-7 interfaces" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Fig\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Utility classes and constants for use with PSR-7 (psr/http-message)", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "issues": "https://github.com/php-fig/http-message-util/issues", + "source": "https://github.com/php-fig/http-message-util/tree/1.1.5" + }, + "time": "2020-11-24T22:02:12+00:00" + }, + { + "name": "firebase/php-jwt", + "version": "v6.5.0", + "source": { + "type": "git", + "url": "https://github.com/firebase/php-jwt.git", + "reference": "e94e7353302b0c11ec3cfff7180cd0b1743975d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/e94e7353302b0c11ec3cfff7180cd0b1743975d2", + "reference": "e94e7353302b0c11ec3cfff7180cd0b1743975d2", + "shasum": "" + }, + "require": { + "php": "^7.4||^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^6.5||^7.4", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "psr/cache": "^1.0||^2.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0" + }, + "suggest": { + "ext-sodium": "Support EdDSA (Ed25519) signatures", + "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" + }, + "type": "library", + "autoload": { + "psr-4": { + "Firebase\\JWT\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Neuman Vong", + "email": "neuman+pear@twilio.com", + "role": "Developer" + }, + { + "name": "Anant Narayanan", + "email": "anant@php.net", + "role": "Developer" + } + ], + "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", + "homepage": "https://github.com/firebase/php-jwt", + "keywords": [ + "jwt", + "php" + ], + "support": { + "issues": "https://github.com/firebase/php-jwt/issues", + "source": "https://github.com/firebase/php-jwt/tree/v6.5.0" + }, + "time": "2023-05-12T15:47:07+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.7.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", + "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0", + "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", + "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": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "php-http/message-factory": "^1.1", + "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 + } + }, + "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.7.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": "2023-05-21T14:04:53+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6", + "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.1", + "phpunit/phpunit": "^8.5.29 || ^9.5.23" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "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/2.0.0" + }, + "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": "2023-05-21T13:50:22+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.5.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "b635f279edd83fc275f822a1188157ffea568ff6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/b635f279edd83fc275f822a1188157ffea568ff6", + "reference": "b635f279edd83fc275f822a1188157ffea568ff6", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.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 + } + }, + "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.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/psr7", + "type": "tidelift" + } + ], + "time": "2023-04-17T16:11:26+00:00" + }, + { + "name": "intervention/image", + "version": "2.7.2", + "source": { + "type": "git", + "url": "https://github.com/Intervention/image.git", + "reference": "04be355f8d6734c826045d02a1079ad658322dad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Intervention/image/zipball/04be355f8d6734c826045d02a1079ad658322dad", + "reference": "04be355f8d6734c826045d02a1079ad658322dad", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "guzzlehttp/psr7": "~1.1 || ^2.0", + "php": ">=5.4.0" + }, + "require-dev": { + "mockery/mockery": "~0.9.2", + "phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15" + }, + "suggest": { + "ext-gd": "to use GD library based image processing.", + "ext-imagick": "to use Imagick based image processing.", + "intervention/imagecache": "Caching extension for the Intervention Image library" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + }, + "laravel": { + "providers": [ + "Intervention\\Image\\ImageServiceProvider" + ], + "aliases": { + "Image": "Intervention\\Image\\Facades\\Image" + } + } + }, + "autoload": { + "psr-4": { + "Intervention\\Image\\": "src/Intervention/Image" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Oliver Vogel", + "email": "oliver@intervention.io", + "homepage": "https://intervention.io/" + } + ], + "description": "Image handling and manipulation library with support for Laravel integration", + "homepage": "http://image.intervention.io/", + "keywords": [ + "gd", + "image", + "imagick", + "laravel", + "thumbnail", + "watermark" + ], + "support": { + "issues": "https://github.com/Intervention/image/issues", + "source": "https://github.com/Intervention/image/tree/2.7.2" + }, + "funding": [ + { + "url": "https://paypal.me/interventionio", + "type": "custom" + }, + { + "url": "https://github.com/Intervention", + "type": "github" + } + ], + "time": "2022-05-21T17:30:32+00:00" + }, + { + "name": "kamermans/guzzle-oauth2-subscriber", + "version": "v1.0.12", + "source": { + "type": "git", + "url": "https://github.com/kamermans/guzzle-oauth2-subscriber.git", + "reference": "e1f3a78155fb37410f0103ef57b51fbd4fafd806" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kamermans/guzzle-oauth2-subscriber/zipball/e1f3a78155fb37410f0103ef57b51fbd4fafd806", + "reference": "e1f3a78155fb37410f0103ef57b51fbd4fafd806", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "~4.0|~5.0|~6.0|~7.0", + "php": ">=5.4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "kamermans\\OAuth2\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Steve Kamerman", + "email": "stevekamerman@gmail.com" + } + ], + "description": "OAuth 2.0 client for Guzzle 4, 5, 6 and 7+", + "keywords": [ + "Guzzle", + "oauth" + ], + "support": { + "issues": "https://github.com/kamermans/guzzle-oauth2-subscriber/issues", + "source": "https://github.com/kamermans/guzzle-oauth2-subscriber/tree/v1.0.12" + }, + "time": "2022-08-17T13:15:21+00:00" + }, + { + "name": "laravel/framework", + "version": "v7.30.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "ecdafad1dda3c790af186a6d18479ea4757ef9ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/ecdafad1dda3c790af186a6d18479ea4757ef9ee", + "reference": "ecdafad1dda3c790af186a6d18479ea4757ef9ee", + "shasum": "" + }, + "require": { + "doctrine/inflector": "^1.4|^2.0", + "dragonmantank/cron-expression": "^2.3.1", + "egulias/email-validator": "^2.1.10", + "ext-json": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "league/commonmark": "^1.3", + "league/flysystem": "^1.1", + "monolog/monolog": "^2.0", + "nesbot/carbon": "^2.31", + "opis/closure": "^3.6", + "php": "^7.2.5|^8.0", + "psr/container": "^1.0", + "psr/simple-cache": "^1.0", + "ramsey/uuid": "^3.7|^4.0", + "swiftmailer/swiftmailer": "^6.0", + "symfony/console": "^5.0", + "symfony/error-handler": "^5.0", + "symfony/finder": "^5.0", + "symfony/http-foundation": "^5.0", + "symfony/http-kernel": "^5.0", + "symfony/mime": "^5.0", + "symfony/polyfill-php73": "^1.17", + "symfony/process": "^5.0", + "symfony/routing": "^5.0", + "symfony/var-dumper": "^5.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.2", + "vlucas/phpdotenv": "^4.0", + "voku/portable-ascii": "^1.4.8" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "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/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": { + "aws/aws-sdk-php": "^3.155", + "doctrine/dbal": "^2.6", + "filp/whoops": "^2.8", + "guzzlehttp/guzzle": "^6.3.1|^7.0.1", + "league/flysystem-cached-adapter": "^1.0", + "mockery/mockery": "~1.3.3|^1.4.2", + "moontoast/math": "^1.1", + "orchestra/testbench-core": "^5.8", + "pda/pheanstalk": "^4.0", + "phpunit/phpunit": "^8.4|^9.3.3", + "predis/predis": "^1.1.1", + "symfony/cache": "^5.0" + }, + "suggest": { + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6).", + "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.8).", + "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.3.1|^7.0.1).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", + "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", + "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", + "mockery/mockery": "Required to use mocking (~1.3.3|^1.4.2).", + "moontoast/math": "Required to use ordered UUIDs (^1.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 (^8.4|^9.3.3).", + "predis/predis": "Required to use the predis connector (^1.1.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 (^4.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^5.0).", + "symfony/filesystem": "Required to create relative storage directory symbolic links (^5.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).", + "wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/" + } + }, + "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": "2021-12-07T14:56:47+00:00" + }, + { + "name": "laravel/sanctum", + "version": "v2.15.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/sanctum.git", + "reference": "31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473", + "reference": "31fbe6f85aee080c4dc2f9b03dc6dd5d0ee72473", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/console": "^6.9|^7.0|^8.0|^9.0", + "illuminate/contracts": "^6.9|^7.0|^8.0|^9.0", + "illuminate/database": "^6.9|^7.0|^8.0|^9.0", + "illuminate/support": "^6.9|^7.0|^8.0|^9.0", + "php": "^7.2|^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0", + "phpunit/phpunit": "^8.0|^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.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-04-08T13:39:49+00:00" + }, + { + "name": "laravel/slack-notification-channel", + "version": "v2.5.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/slack-notification-channel.git", + "reference": "e0d4be5e01d443a69fa89f0a4cac6bd2eda2be8f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/slack-notification-channel/zipball/e0d4be5e01d443a69fa89f0a4cac6bd2eda2be8f", + "reference": "e0d4be5e01d443a69fa89f0a4cac6bd2eda2be8f", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^6.0|^7.0", + "illuminate/notifications": "~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0", + "php": "^7.1.3|^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Illuminate\\Notifications\\SlackChannelServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Illuminate\\Notifications\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Slack Notification Channel for laravel.", + "keywords": [ + "laravel", + "notifications", + "slack" + ], + "support": { + "issues": "https://github.com/laravel/slack-notification-channel/issues", + "source": "https://github.com/laravel/slack-notification-channel/tree/v2.5.0" + }, + "time": "2023-01-12T16:21:26+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.8.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "04a2d3bd0d650c0764f70bf49d1ee39393e4eb10" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/04a2d3bd0d650c0764f70bf49d1ee39393e4eb10", + "reference": "04a2d3bd0d650c0764f70bf49d1ee39393e4eb10", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.10.4|^0.11.1", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpunit/phpunit": "^8.5.8|^9.3.3" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v2.8.1" + }, + "time": "2023-02-15T16:40:09+00:00" + }, + { + "name": "laravel/ui", + "version": "v2.5.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/ui.git", + "reference": "d01a705763c243b07be795e9d1bb47f89260f73d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/ui/zipball/d01a705763c243b07be795e9d1bb47f89260f73d", + "reference": "d01a705763c243b07be795e9d1bb47f89260f73d", + "shasum": "" + }, + "require": { + "illuminate/console": "^7.0", + "illuminate/filesystem": "^7.0", + "illuminate/support": "^7.0", + "php": "^7.2.5|^8.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Ui\\UiServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Ui\\": "src/", + "Illuminate\\Foundation\\Auth\\": "auth-backend/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel UI utilities and presets.", + "keywords": [ + "laravel", + "ui" + ], + "support": { + "issues": "https://github.com/laravel/ui/issues", + "source": "https://github.com/laravel/ui/tree/v2.5.0" + }, + "time": "2020-11-03T19:45:19+00:00" + }, + { + "name": "league/commonmark", + "version": "1.6.7", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "2b8185c13bc9578367a5bf901881d1c1b5bbd09b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/2b8185c13bc9578367a5bf901881d1c1b5bbd09b", + "reference": "2b8185c13bc9578367a5bf901881d1c1b5bbd09b", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "scrutinizer/ocular": "1.7.*" + }, + "require-dev": { + "cebe/markdown": "~1.0", + "commonmark/commonmark.js": "0.29.2", + "erusev/parsedown": "~1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "~1.4", + "mikehaertl/php-shellcommand": "^1.4", + "phpstan/phpstan": "^0.12.90", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.2", + "scrutinizer/ocular": "^1.5", + "symfony/finder": "^4.2" + }, + "bin": [ + "bin/commonmark" + ], + "type": "library", + "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/", + "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-01-13T17:18:13+00:00" + }, + { + "name": "league/flysystem", + "version": "1.1.10", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "3239285c825c152bcc315fe0e87d6b55f5972ed1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/3239285c825c152bcc315fe0e87d6b55f5972ed1", + "reference": "3239285c825c152bcc315fe0e87d6b55f5972ed1", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/mime-type-detection": "^1.3", + "php": "^7.2.5 || ^8.0" + }, + "conflict": { + "league/flysystem-sftp": "<1.0.6" + }, + "require-dev": { + "phpspec/prophecy": "^1.11.1", + "phpunit/phpunit": "^8.5.8" + }, + "suggest": { + "ext-ftp": "Allows you to use FTP server storage", + "ext-openssl": "Allows you to use FTPS server storage", + "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", + "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", + "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", + "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", + "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", + "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", + "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", + "league/flysystem-webdav": "Allows you to use WebDAV storage", + "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter", + "spatie/flysystem-dropbox": "Allows you to use Dropbox storage", + "srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frenky.net" + } + ], + "description": "Filesystem abstraction: Many filesystems, one API.", + "keywords": [ + "Cloud Files", + "WebDAV", + "abstraction", + "aws", + "cloud", + "copy.com", + "dropbox", + "file systems", + "files", + "filesystem", + "filesystems", + "ftp", + "rackspace", + "remote", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/1.1.10" + }, + "funding": [ + { + "url": "https://offset.earth/frankdejonge", + "type": "other" + } + ], + "time": "2022-10-04T09:16:37+00:00" + }, + { + "name": "league/glide", + "version": "1.7.2", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/glide.git", + "reference": "8dba756ada0b8e525bf6f1f7d1bd83c1e99e124e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/glide/zipball/8dba756ada0b8e525bf6f1f7d1bd83c1e99e124e", + "reference": "8dba756ada0b8e525bf6f1f7d1bd83c1e99e124e", + "shasum": "" + }, + "require": { + "intervention/image": "^2.4", + "league/flysystem": "^1.0", + "php": "^7.2|^8.0", + "psr/http-message": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^1.3.3", + "phpunit/php-token-stream": "^3.1|^4.0", + "phpunit/phpunit": "^8.5|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Glide\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jonathan Reinink", + "email": "jonathan@reinink.ca", + "homepage": "http://reinink.ca" + }, + { + "name": "Titouan Galopin", + "email": "galopintitouan@gmail.com", + "homepage": "https://titouangalopin.com" + } + ], + "description": "Wonderfully easy on-demand image manipulation library with an HTTP based API.", + "homepage": "http://glide.thephpleague.com", + "keywords": [ + "ImageMagick", + "editing", + "gd", + "image", + "imagick", + "league", + "manipulation", + "processing" + ], + "support": { + "issues": "https://github.com/thephpleague/glide/issues", + "source": "https://github.com/thephpleague/glide/tree/1.7.2" + }, + "time": "2023-02-14T06:26:04+00:00" + }, + { + "name": "league/html-to-markdown", + "version": "4.10.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/html-to-markdown.git", + "reference": "0868ae7a552e809e5cd8f93ba022071640408e88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/0868ae7a552e809e5cd8f93ba022071640408e88", + "reference": "0868ae7a552e809e5cd8f93ba022071640408e88", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xml": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "mikehaertl/php-shellcommand": "~1.1.0", + "phpunit/phpunit": "^4.8|^5.7", + "scrutinizer/ocular": "~1.1" + }, + "bin": [ + "bin/html-to-markdown" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.10-dev" + } + }, + "autoload": { + "psr-4": { + "League\\HTMLToMarkdown\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + }, + { + "name": "Nick Cernis", + "email": "nick@cern.is", + "homepage": "http://modernnerd.net", + "role": "Original Author" + } + ], + "description": "An HTML-to-markdown conversion helper for PHP", + "homepage": "https://github.com/thephpleague/html-to-markdown", + "keywords": [ + "html", + "markdown" + ], + "support": { + "issues": "https://github.com/thephpleague/html-to-markdown/issues", + "source": "https://github.com/thephpleague/html-to-markdown/tree/4.10.0" + }, + "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://www.patreon.com/colinodell", + "type": "patreon" + } + ], + "time": "2020-07-01T00:34:03+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": "maennchen/zipstream-php", + "version": "2.2.6", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "30ad6f93cf3efe4192bc7a4c9cad11ff8f4f237f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/30ad6f93cf3efe4192bc7a4c9cad11ff8f4f237f", + "reference": "30ad6f93cf3efe4192bc7a4c9cad11ff8f4f237f", + "shasum": "" + }, + "require": { + "myclabs/php-enum": "^1.5", + "php": "^7.4 || ^8.0", + "psr/http-message": "^1.0", + "symfony/polyfill-mbstring": "^1.0" + }, + "require-dev": { + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.9", + "guzzlehttp/guzzle": "^6.5.3 || ^7.2.0", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.4", + "phpunit/phpunit": "^8.5.8 || ^9.4.2", + "vimeo/psalm": "^4.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/2.2.6" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + }, + { + "url": "https://opencollective.com/zipstream", + "type": "open_collective" + } + ], + "time": "2022-11-25T18:57:19+00:00" + }, + { + "name": "monolog/monolog", + "version": "2.9.1", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "f259e2b15fb95494c83f52d3caad003bbf5ffaa1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f259e2b15fb95494c83f52d3caad003bbf5ffaa1", + "reference": "f259e2b15fb95494c83f52d3caad003bbf5ffaa1", + "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 || ^2@dev", + "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.9.1" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2023-02-06T13:44:46+00:00" + }, + { + "name": "myclabs/php-enum", + "version": "1.8.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/php-enum.git", + "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/a867478eae49c9f59ece437ae7f9506bfaa27483", + "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "1.*", + "vimeo/psalm": "^4.6.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "MyCLabs\\Enum\\": "src/" + }, + "classmap": [ + "stubs/Stringable.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP Enum contributors", + "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" + } + ], + "description": "PHP Enum implementation", + "homepage": "http://github.com/myclabs/php-enum", + "keywords": [ + "enum" + ], + "support": { + "issues": "https://github.com/myclabs/php-enum/issues", + "source": "https://github.com/myclabs/php-enum/tree/1.8.4" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum", + "type": "tidelift" + } + ], + "time": "2022-08-04T09:53:51+00:00" + }, + { + "name": "nesbot/carbon", + "version": "2.66.0", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "496712849902241f04902033b0441b269effe001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/496712849902241f04902033b0441b269effe001", + "reference": "496712849902241f04902033b0441b269effe001", + "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.1.4", + "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": "2023-01-29T18:53:47+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.9", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c", + "reference": "c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c", + "shasum": "" + }, + "require": { + "php": ">=7.2 <8.3" + }, + "conflict": { + "nette/di": "<3.0.6" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "dev-master", + "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.9" + }, + "time": "2023-01-18T03:26:20+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.15.5", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/11e2663a5bc9db5d714eedb4277ee300403b4a9e", + "reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e", + "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.5" + }, + "time": "2023-05-19T20:20:00+00:00" + }, + { + "name": "opis/closure", + "version": "3.6.3", + "source": { + "type": "git", + "url": "https://github.com/opis/closure.git", + "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opis/closure/zipball/3d81e4309d2a927abbe66df935f4bb60082805ad", + "reference": "3d81e4309d2a927abbe66df935f4bb60082805ad", + "shasum": "" + }, + "require": { + "php": "^5.4 || ^7.0 || ^8.0" + }, + "require-dev": { + "jeremeamia/superclosure": "^2.0", + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.6.x-dev" + } + }, + "autoload": { + "files": [ + "functions.php" + ], + "psr-4": { + "Opis\\Closure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marius Sarca", + "email": "marius.sarca@gmail.com" + }, + { + "name": "Sorin Sarca", + "email": "sarca_sorin@hotmail.com" + } + ], + "description": "A library that can be used to serialize closures (anonymous functions) and arbitrary objects.", + "homepage": "https://opis.io/closure", + "keywords": [ + "anonymous functions", + "closure", + "function", + "serializable", + "serialization", + "serialize" + ], + "support": { + "issues": "https://github.com/opis/closure/issues", + "source": "https://github.com/opis/closure/tree/3.6.3" + }, + "time": "2022-01-27T09:35:39+00:00" + }, + { + "name": "org_heigl/ghostscript", + "version": "2.3.2", + "source": { + "type": "git", + "url": "https://github.com/heiglandreas/Org_Heigl_Ghostscript.git", + "reference": "fd73693a3f213427b585b45fa744c9cc60679f25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/heiglandreas/Org_Heigl_Ghostscript/zipball/fd73693a3f213427b585b45fa744c9cc60679f25", + "reference": "fd73693a3f213427b585b45fa744c9cc60679f25", + "shasum": "" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpdocumentor/phpdocumentor": "^2.9", + "phpunit/phpunit": "^5.5||^6.0||^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Org_Heigl\\Ghostscript\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Heigl", + "email": "andreas@heigl.org" + } + ], + "description": "A PHP-Wrapper around the Ghostscript-CLI", + "support": { + "issues": "https://github.com/heiglandreas/Org_Heigl_Ghostscript/issues", + "source": "https://github.com/heiglandreas/Org_Heigl_Ghostscript/tree/2.3.2" + }, + "time": "2020-09-23T05:00:00+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "" + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+00:00" + }, + { + "name": "paragonie/sodium_compat", + "version": "v1.20.0", + "source": { + "type": "git", + "url": "https://github.com/paragonie/sodium_compat.git", + "reference": "e592a3e06d1fa0d43988c7c7d9948ca836f644b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/e592a3e06d1fa0d43988c7c7d9948ca836f644b6", + "reference": "e592a3e06d1fa0d43988c7c7d9948ca836f644b6", + "shasum": "" + }, + "require": { + "paragonie/random_compat": ">=1", + "php": "^5.2.4|^5.3|^5.4|^5.5|^5.6|^7|^8" + }, + "require-dev": { + "phpunit/phpunit": "^3|^4|^5|^6|^7|^8|^9" + }, + "suggest": { + "ext-libsodium": "PHP < 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security.", + "ext-sodium": "PHP >= 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security." + }, + "type": "library", + "autoload": { + "files": [ + "autoload.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "ISC" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com" + }, + { + "name": "Frank Denis", + "email": "jedisct1@pureftpd.org" + } + ], + "description": "Pure PHP implementation of libsodium; uses the PHP extension if it exists", + "keywords": [ + "Authentication", + "BLAKE2b", + "ChaCha20", + "ChaCha20-Poly1305", + "Chapoly", + "Curve25519", + "Ed25519", + "EdDSA", + "Edwards-curve Digital Signature Algorithm", + "Elliptic Curve Diffie-Hellman", + "Poly1305", + "Pure-PHP cryptography", + "RFC 7748", + "RFC 8032", + "Salpoly", + "Salsa20", + "X25519", + "XChaCha20-Poly1305", + "XSalsa20-Poly1305", + "Xchacha20", + "Xsalsa20", + "aead", + "cryptography", + "ecdh", + "elliptic curve", + "elliptic curve cryptography", + "encryption", + "libsodium", + "php", + "public-key cryptography", + "secret-key cryptography", + "side-channel resistant" + ], + "support": { + "issues": "https://github.com/paragonie/sodium_compat/issues", + "source": "https://github.com/paragonie/sodium_compat/tree/v1.20.0" + }, + "time": "2023-04-30T00:54:53+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.1", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dd3a383e599f49777d8b628dadbb90cae435b87e", + "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.32 || ^9.6.3 || ^10.0.12" + }, + "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.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2023-02-25T19:38:58+00:00" + }, + { + "name": "psr/container", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "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/1.1.2" + }, + "time": "2021-11-05T16:50:12+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/http-client", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", + "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.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": "https://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/1.0.2" + }, + "time": "2023-04-10T20:12:12+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "e616d01114759c4c489f93b099585439f795fe35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0 || ^2.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": "https://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/1.0.2" + }, + "time": "2023-04-10T20:10:41+00:00" + }, + { + "name": "psr/http-message", + "version": "1.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.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/1.1" + }, + "time": "2023-04-04T09:50:52+00:00" + }, + { + "name": "psr/log", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "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/1.1.4" + }, + "time": "2021-05-03T11:20:27+00:00" + }, + { + "name": "psr/simple-cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://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/master" + }, + "time": "2017-10-23T01:57:42+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.11.18", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "4f00ee9e236fa6a48f4560d1300b9c961a70a7ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/4f00ee9e236fa6a48f4560d1300b9c961a70a7ec", + "reference": "4f00ee9e236fa6a48f4560d1300b9c961a70a7ec", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^4.0 || ^3.1", + "php": "^8.0 || ^7.0.8", + "symfony/console": "^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2" + }, + "suggest": { + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-pdo-sqlite": "The doc command requires SQLite to work.", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.", + "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.11.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "http://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.11.18" + }, + "time": "2023-05-23T02:31:11+00:00" + }, + { + "name": "pusher/pusher-php-server", + "version": "v3.3.1", + "source": { + "type": "git", + "url": "https://github.com/pusher/pusher-http-php.git", + "reference": "2279bcd21a608a76f9be1fe0675aa2dd1efb2fa0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pusher/pusher-http-php/zipball/2279bcd21a608a76f9be1fe0675aa2dd1efb2fa0", + "reference": "2279bcd21a608a76f9be1fe0675aa2dd1efb2fa0", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "paragonie/sodium_compat": "^1.6", + "php": "^5.4 || ^7.0", + "psr/log": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Pusher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Library for interacting with the Pusher REST API", + "keywords": [ + "events", + "messaging", + "php-pusher-server", + "publish", + "push", + "pusher", + "real time", + "real-time", + "realtime", + "rest", + "trigger" + ], + "support": { + "issues": "https://github.com/pusher/pusher-http-php/issues", + "source": "https://github.com/pusher/pusher-http-php/tree/master" + }, + "time": "2019-01-18T12:10:21+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": "ramsey/collection", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "ad7475d1c9e70b190ecffc58f2d989416af339b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/ad7475d1c9e70b190ecffc58f2d989416af339b4", + "reference": "ad7475d1c9e70b190ecffc58f2d989416af339b4", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "symfony/polyfill-php81": "^1.23" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.28.3", + "fakerphp/faker": "^1.21", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^1.0", + "mockery/mockery": "^1.5", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpcsstandards/phpcsutils": "^1.0.0-rc1", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18.4", + "ramsey/coding-standard": "^2.0.3", + "ramsey/conventional-commits": "^1.3", + "vimeo/psalm": "^5.4" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "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.3.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2022-12-27T19:12:24+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.2.3", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df", + "reference": "fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df", + "shasum": "" + }, + "require": { + "brick/math": "^0.8 || ^0.9", + "ext-json": "*", + "php": "^7.2 || ^8.0", + "ramsey/collection": "^1.0", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-php80": "^1.14" + }, + "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", + "moontoast/math": "^1.1", + "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.0", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-mockery": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^8.5 || ^9", + "slevomat/coding-standard": "^7.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-ctype": "Enables faster processing of character classification using ctype functions.", + "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": { + "branch-alias": { + "dev-main": "4.x-dev" + }, + "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.2.3" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2021-09-25T23:10:38+00:00" + }, + { + "name": "ratchet/rfc6455", + "version": "v0.3.1", + "source": { + "type": "git", + "url": "https://github.com/ratchetphp/RFC6455.git", + "reference": "7c964514e93456a52a99a20fcfa0de242a43ccdb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ratchetphp/RFC6455/zipball/7c964514e93456a52a99a20fcfa0de242a43ccdb", + "reference": "7c964514e93456a52a99a20fcfa0de242a43ccdb", + "shasum": "" + }, + "require": { + "guzzlehttp/psr7": "^2 || ^1.7", + "php": ">=5.4.2" + }, + "require-dev": { + "phpunit/phpunit": "^5.7", + "react/socket": "^1.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Ratchet\\RFC6455\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "role": "Developer" + }, + { + "name": "Matt Bonneau", + "role": "Developer" + } + ], + "description": "RFC6455 WebSocket protocol handler", + "homepage": "http://socketo.me", + "keywords": [ + "WebSockets", + "rfc6455", + "websocket" + ], + "support": { + "chat": "https://gitter.im/reactphp/reactphp", + "issues": "https://github.com/ratchetphp/RFC6455/issues", + "source": "https://github.com/ratchetphp/RFC6455/tree/v0.3.1" + }, + "time": "2021-12-09T23:20:49+00:00" + }, + { + "name": "react/cache", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/cache.git", + "reference": "d47c472b64aa5608225f47965a484b75c7817d5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b", + "reference": "d47c472b64aa5608225f47965a484b75c7817d5b", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "react/promise": "^3.0 || ^2.0 || ^1.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Async, Promise-based cache interface for ReactPHP", + "keywords": [ + "cache", + "caching", + "promise", + "reactphp" + ], + "support": { + "issues": "https://github.com/reactphp/cache/issues", + "source": "https://github.com/reactphp/cache/tree/v1.2.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2022-11-30T15:59:55+00:00" + }, + { + "name": "react/dns", + "version": "v1.10.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/dns.git", + "reference": "a5427e7dfa47713e438016905605819d101f238c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/dns/zipball/a5427e7dfa47713e438016905605819d101f238c", + "reference": "a5427e7dfa47713e438016905605819d101f238c", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "react/cache": "^1.0 || ^0.6 || ^0.5", + "react/event-loop": "^1.2", + "react/promise": "^3.0 || ^2.7 || ^1.2.1", + "react/promise-timer": "^1.9" + }, + "require-dev": { + "phpunit/phpunit": "^9.3 || ^4.8.35", + "react/async": "^4 || ^3 || ^2" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Dns\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Async DNS resolver for ReactPHP", + "keywords": [ + "async", + "dns", + "dns-resolver", + "reactphp" + ], + "support": { + "issues": "https://github.com/reactphp/dns/issues", + "source": "https://github.com/reactphp/dns/tree/v1.10.0" + }, + "funding": [ + { + "url": "https://github.com/WyriHaximus", + "type": "github" + }, + { + "url": "https://github.com/clue", + "type": "github" + } + ], + "time": "2022-09-08T12:22:46+00:00" + }, + { + "name": "react/event-loop", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/event-loop.git", + "reference": "6e7e587714fff7a83dcc7025aee42ab3b265ae05" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/event-loop/zipball/6e7e587714fff7a83dcc7025aee42ab3b265ae05", + "reference": "6e7e587714fff7a83dcc7025aee42ab3b265ae05", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" + }, + "suggest": { + "ext-pcntl": "For signal handling support when using the StreamSelectLoop" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\EventLoop\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", + "keywords": [ + "asynchronous", + "event-loop" + ], + "support": { + "issues": "https://github.com/reactphp/event-loop/issues", + "source": "https://github.com/reactphp/event-loop/tree/v1.4.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2023-05-05T10:11:24+00:00" + }, + { + "name": "react/http", + "version": "v1.9.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/http.git", + "reference": "bb3154dbaf2dfe3f0467f956a05f614a69d5f1d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/http/zipball/bb3154dbaf2dfe3f0467f956a05f614a69d5f1d0", + "reference": "bb3154dbaf2dfe3f0467f956a05f614a69d5f1d0", + "shasum": "" + }, + "require": { + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "fig/http-message-util": "^1.1", + "php": ">=5.3.0", + "psr/http-message": "^1.0", + "react/event-loop": "^1.2", + "react/promise": "^3 || ^2.3 || ^1.2.1", + "react/socket": "^1.12", + "react/stream": "^1.2", + "ringcentral/psr7": "^1.2" + }, + "require-dev": { + "clue/http-proxy-react": "^1.8", + "clue/reactphp-ssh-proxy": "^1.4", + "clue/socks-react": "^1.4", + "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35", + "react/async": "^4 || ^3 || ^2", + "react/promise-stream": "^1.4", + "react/promise-timer": "^1.9" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Http\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Event-driven, streaming HTTP client and server implementation for ReactPHP", + "keywords": [ + "async", + "client", + "event-driven", + "http", + "http client", + "http server", + "https", + "psr-7", + "reactphp", + "server", + "streaming" + ], + "support": { + "issues": "https://github.com/reactphp/http/issues", + "source": "https://github.com/reactphp/http/tree/v1.9.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2023-04-26T10:29:24+00:00" + }, + { + "name": "react/promise", + "version": "v2.10.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise.git", + "reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise/zipball/f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38", + "reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.36" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "React\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "A lightweight implementation of CommonJS Promises/A for PHP", + "keywords": [ + "promise", + "promises" + ], + "support": { + "issues": "https://github.com/reactphp/promise/issues", + "source": "https://github.com/reactphp/promise/tree/v2.10.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2023-05-02T15:15:43+00:00" + }, + { + "name": "react/promise-timer", + "version": "v1.9.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise-timer.git", + "reference": "aa7a73c74b8d8c0f622f5982ff7b0351bc29e495" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/aa7a73c74b8d8c0f622f5982ff7b0351bc29e495", + "reference": "aa7a73c74b8d8c0f622f5982ff7b0351bc29e495", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "react/event-loop": "^1.2", + "react/promise": "^3.0 || ^2.7.0 || ^1.2.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "React\\Promise\\Timer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.", + "homepage": "https://github.com/reactphp/promise-timer", + "keywords": [ + "async", + "event-loop", + "promise", + "reactphp", + "timeout", + "timer" + ], + "support": { + "issues": "https://github.com/reactphp/promise-timer/issues", + "source": "https://github.com/reactphp/promise-timer/tree/v1.9.0" + }, + "funding": [ + { + "url": "https://github.com/WyriHaximus", + "type": "github" + }, + { + "url": "https://github.com/clue", + "type": "github" + } + ], + "time": "2022-06-13T13:41:03+00:00" + }, + { + "name": "react/socket", + "version": "v1.12.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/socket.git", + "reference": "81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/socket/zipball/81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b", + "reference": "81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b", + "shasum": "" + }, + "require": { + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.0", + "react/dns": "^1.8", + "react/event-loop": "^1.2", + "react/promise": "^3 || ^2.6 || ^1.2.1", + "react/promise-timer": "^1.9", + "react/stream": "^1.2" + }, + "require-dev": { + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", + "react/async": "^4 || ^3 || ^2", + "react/promise-stream": "^1.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Socket\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", + "keywords": [ + "Connection", + "Socket", + "async", + "reactphp", + "stream" + ], + "support": { + "issues": "https://github.com/reactphp/socket/issues", + "source": "https://github.com/reactphp/socket/tree/v1.12.0" + }, + "funding": [ + { + "url": "https://github.com/WyriHaximus", + "type": "github" + }, + { + "url": "https://github.com/clue", + "type": "github" + } + ], + "time": "2022-08-25T12:32:25+00:00" + }, + { + "name": "react/stream", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/stream.git", + "reference": "7a423506ee1903e89f1e08ec5f0ed430ff784ae9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/stream/zipball/7a423506ee1903e89f1e08ec5f0ed430ff784ae9", + "reference": "7a423506ee1903e89f1e08ec5f0ed430ff784ae9", + "shasum": "" + }, + "require": { + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.8", + "react/event-loop": "^1.2" + }, + "require-dev": { + "clue/stream-filter": "~1.2", + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Stream\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", + "keywords": [ + "event-driven", + "io", + "non-blocking", + "pipe", + "reactphp", + "readable", + "stream", + "writable" + ], + "support": { + "issues": "https://github.com/reactphp/stream/issues", + "source": "https://github.com/reactphp/stream/tree/v1.2.0" + }, + "funding": [ + { + "url": "https://github.com/WyriHaximus", + "type": "github" + }, + { + "url": "https://github.com/clue", + "type": "github" + } + ], + "time": "2021-07-11T12:37:55+00:00" + }, + { + "name": "ringcentral/psr7", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/ringcentral/psr7.git", + "reference": "360faaec4b563958b673fb52bbe94e37f14bc686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ringcentral/psr7/zipball/360faaec4b563958b673fb52bbe94e37f14bc686", + "reference": "360faaec4b563958b673fb52bbe94e37f14bc686", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "psr/http-message": "~1.0" + }, + "provide": { + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "RingCentral\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "PSR-7 message implementation", + "keywords": [ + "http", + "message", + "stream", + "uri" + ], + "support": { + "source": "https://github.com/ringcentral/psr7/tree/master" + }, + "time": "2018-05-29T20:21:04+00:00" + }, + { + "name": "spatie/db-dumper", + "version": "2.21.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/db-dumper.git", + "reference": "05e5955fb882008a8947c5a45146d86cfafa10d1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/db-dumper/zipball/05e5955fb882008a8947c5a45146d86cfafa10d1", + "reference": "05e5955fb882008a8947c5a45146d86cfafa10d1", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "symfony/process": "^4.2|^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\DbDumper\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Dump databases", + "homepage": "https://github.com/spatie/db-dumper", + "keywords": [ + "database", + "db-dumper", + "dump", + "mysqldump", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/db-dumper/issues", + "source": "https://github.com/spatie/db-dumper/tree/2.21.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-02-24T14:56:42+00:00" + }, + { + "name": "spatie/image", + "version": "1.10.6", + "source": { + "type": "git", + "url": "https://github.com/spatie/image.git", + "reference": "897e819848096ea8eee8ed4a3531c6166f9a99e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/image/zipball/897e819848096ea8eee8ed4a3531c6166f9a99e0", + "reference": "897e819848096ea8eee8ed4a3531c6166f9a99e0", + "shasum": "" + }, + "require": { + "ext-exif": "*", + "ext-json": "*", + "ext-mbstring": "*", + "league/glide": "^1.6", + "php": "^7.2|^8.0", + "spatie/image-optimizer": "^1.1", + "spatie/temporary-directory": "^1.0|^2.0", + "symfony/process": "^3.0|^4.0|^5.0|^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.21|^9.5.4", + "symfony/var-dumper": "^4.0|^5.0|^6.0", + "vimeo/psalm": "^4.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Image\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Manipulate images with an expressive API", + "homepage": "https://github.com/spatie/image", + "keywords": [ + "image", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/image/issues", + "source": "https://github.com/spatie/image/tree/1.10.6" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-12-21T10:01:09+00:00" + }, + { + "name": "spatie/image-optimizer", + "version": "1.6.4", + "source": { + "type": "git", + "url": "https://github.com/spatie/image-optimizer.git", + "reference": "d997e01ba980b2769ddca2f00badd3b80c2a2512" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/image-optimizer/zipball/d997e01ba980b2769ddca2f00badd3b80c2a2512", + "reference": "d997e01ba980b2769ddca2f00badd3b80c2a2512", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.3|^8.0", + "psr/log": "^1.0 | ^2.0 | ^3.0", + "symfony/process": "^4.2|^5.0|^6.0" + }, + "require-dev": { + "pestphp/pest": "^1.21", + "phpunit/phpunit": "^8.5.21|^9.4.4", + "symfony/var-dumper": "^4.2|^5.0|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\ImageOptimizer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily optimize images using PHP", + "homepage": "https://github.com/spatie/image-optimizer", + "keywords": [ + "image-optimizer", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/image-optimizer/issues", + "source": "https://github.com/spatie/image-optimizer/tree/1.6.4" + }, + "time": "2023-03-10T08:43:19+00:00" + }, + { + "name": "spatie/laravel-backup", + "version": "6.16.5", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-backup.git", + "reference": "332fae80b12cacb9e4161824ba195d984b28c8fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-backup/zipball/332fae80b12cacb9e4161824ba195d984b28c8fb", + "reference": "332fae80b12cacb9e4161824ba195d984b28c8fb", + "shasum": "" + }, + "require": { + "ext-zip": "^1.14.0", + "illuminate/console": "^6.0|^7.0|^8.0", + "illuminate/contracts": "^6.0|^7.0|^8.0", + "illuminate/events": "^6.0|^7.0|^8.0", + "illuminate/filesystem": "^6.0|^7.0|^8.0", + "illuminate/notifications": "^6.0|^7.0|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0", + "league/flysystem": "^1.0.49", + "php": "^7.3|^8.0", + "spatie/db-dumper": "^2.12", + "spatie/temporary-directory": "^1.1", + "symfony/finder": "^4.2|^5.0" + }, + "require-dev": { + "laravel/slack-notification-channel": "^2.3", + "league/flysystem-aws-s3-v3": "^1.0", + "mockery/mockery": "^1.4.2", + "orchestra/testbench": "4.*|5.*|6.*", + "phpunit/phpunit": "^8.4|^9.0" + }, + "suggest": { + "laravel/slack-notification-channel": "Required for sending notifications via Slack" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Backup\\BackupServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Helpers/functions.php" + ], + "psr-4": { + "Spatie\\Backup\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A Laravel package to backup your application", + "homepage": "https://github.com/spatie/laravel-backup", + "keywords": [ + "backup", + "database", + "laravel-backup", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-backup/issues", + "source": "https://github.com/spatie/laravel-backup/tree/6.16.5" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2021-09-12T10:04:18+00:00" + }, + { + "name": "spatie/laravel-medialibrary", + "version": "8.10.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-medialibrary.git", + "reference": "448e8389cadc79f42c3c96c7c9491b57015702d4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/448e8389cadc79f42c3c96c7c9491b57015702d4", + "reference": "448e8389cadc79f42c3c96c7c9491b57015702d4", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "ext-json": "*", + "illuminate/bus": "^6.18|^7.0|^8.0", + "illuminate/console": "^6.18|^7.0|^8.0", + "illuminate/database": "^6.18|^7.0|^8.0", + "illuminate/pipeline": "^6.18|^7.0|^8.0", + "illuminate/support": "^6.18|^7.0|^8.0", + "league/flysystem": "^1.0.64", + "maennchen/zipstream-php": "^1.0|^2.0", + "php": "^7.4|^8.0", + "spatie/image": "^1.4.0", + "spatie/temporary-directory": "^1.1", + "symfony/console": "^4.4|^5.0" + }, + "conflict": { + "php-ffmpeg/php-ffmpeg": "<0.6.1" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.133.11", + "doctrine/dbal": "^2.5.2", + "ext-pdo_sqlite": "*", + "ext-zip": "*", + "guzzlehttp/guzzle": "^6.3|^7.0", + "league/flysystem-aws-s3-v3": "^1.0.23", + "mockery/mockery": "^1.3", + "orchestra/testbench": "^4.0|^5.0|^6.0", + "php-ffmpeg/php-ffmpeg": "^0.17.0", + "phpunit/phpunit": "^9.1", + "spatie/pdf-to-image": "^2.0", + "spatie/phpunit-snapshot-assertions": "^4.0" + }, + "suggest": { + "league/flysystem-aws-s3-v3": "Required to use AWS S3 file storage", + "php-ffmpeg/php-ffmpeg": "Required for generating video thumbnails", + "spatie/pdf-to-image": "Required for generating thumbsnails of PDFs and SVGs" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\MediaLibrary\\MediaLibraryServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\MediaLibrary\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Associate files with Eloquent models", + "homepage": "https://github.com/spatie/laravel-medialibrary", + "keywords": [ + "cms", + "conversion", + "downloads", + "images", + "laravel", + "laravel-medialibrary", + "media", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-medialibrary/issues", + "source": "https://github.com/spatie/laravel-medialibrary/tree/8.10.2" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-05-22T09:23:57+00:00" + }, + { + "name": "spatie/laravel-query-builder", + "version": "3.6.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-query-builder.git", + "reference": "4510ac8a450656df45b6d1bcb222fe12e413ad56" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-query-builder/zipball/4510ac8a450656df45b6d1bcb222fe12e413ad56", + "reference": "4510ac8a450656df45b6d1bcb222fe12e413ad56", + "shasum": "" + }, + "require": { + "illuminate/database": "^6.20.13|^7.30.4|^8.22.2", + "illuminate/http": "^6.20.13|^7.30.4|^8.22.2", + "illuminate/support": "^6.20.13|^7.30.4|^8.22.2", + "php": "^7.3|^8.0" + }, + "require-dev": { + "ext-json": "*", + "laravel/legacy-factories": "^1.0.4", + "mockery/mockery": "^1.4", + "orchestra/testbench": "^4.9|^5.8|^6.3", + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\QueryBuilder\\QueryBuilderServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\QueryBuilder\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alex Vanderbist", + "email": "alex@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily build Eloquent queries from API requests", + "homepage": "https://github.com/spatie/laravel-query-builder", + "keywords": [ + "laravel-query-builder", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-query-builder/issues", + "source": "https://github.com/spatie/laravel-query-builder" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + } + ], + "time": "2022-08-30T06:53:23+00:00" + }, + { + "name": "spatie/pdf-to-image", + "version": "v2.x-dev", + "source": { + "type": "git", + "url": "https://github.com/spatie/pdf-to-image.git", + "reference": "6718a89065c34dfadfbb2ca61eb1c3e6a956e503" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/pdf-to-image/zipball/6718a89065c34dfadfbb2ca61eb1c3e6a956e503", + "reference": "6718a89065c34dfadfbb2ca61eb1c3e6a956e503", + "shasum": "" + }, + "require": { + "org_heigl/ghostscript": "^2.2", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2", + "spatie/temporary-directory": "^1.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\PdfToImage\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Convert a pdf to an image", + "homepage": "https://github.com/spatie/pdf-to-image", + "keywords": [ + "convert", + "image", + "pdf", + "pdf-to-image", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/pdf-to-image/issues", + "source": "https://github.com/spatie/pdf-to-image/tree/v2" + }, + "time": "2017-06-20T05:58:45+00:00" + }, + { + "name": "spatie/temporary-directory", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/temporary-directory.git", + "reference": "f517729b3793bca58f847c5fd383ec16f03ffec6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/temporary-directory/zipball/f517729b3793bca58f847c5fd383ec16f03ffec6", + "reference": "f517729b3793bca58f847c5fd383ec16f03ffec6", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\TemporaryDirectory\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alex Vanderbist", + "email": "alex@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily create, use and destroy temporary directories", + "homepage": "https://github.com/spatie/temporary-directory", + "keywords": [ + "php", + "spatie", + "temporary-directory" + ], + "support": { + "issues": "https://github.com/spatie/temporary-directory/issues", + "source": "https://github.com/spatie/temporary-directory/tree/1.3.0" + }, + "time": "2020-11-09T15:54:21+00:00" + }, + { + "name": "swiftmailer/swiftmailer", + "version": "v6.3.0", + "source": { + "type": "git", + "url": "https://github.com/swiftmailer/swiftmailer.git", + "reference": "8a5d5072dca8f48460fce2f4131fcc495eec654c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/8a5d5072dca8f48460fce2f4131fcc495eec654c", + "reference": "8a5d5072dca8f48460fce2f4131fcc495eec654c", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.0|^3.1", + "php": ">=7.0.0", + "symfony/polyfill-iconv": "^1.0", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "symfony/phpunit-bridge": "^4.4|^5.4" + }, + "suggest": { + "ext-intl": "Needed to support internationalized email addresses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.2-dev" + } + }, + "autoload": { + "files": [ + "lib/swift_required.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Corbyn" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Swiftmailer, free feature-rich PHP mailer", + "homepage": "https://swiftmailer.symfony.com", + "keywords": [ + "email", + "mail", + "mailer" + ], + "support": { + "issues": "https://github.com/swiftmailer/swiftmailer/issues", + "source": "https://github.com/swiftmailer/swiftmailer/tree/v6.3.0" + }, + "funding": [ + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/swiftmailer/swiftmailer", + "type": "tidelift" + } + ], + "abandoned": "symfony/mailer", + "time": "2021-10-18T15:26:12+00:00" + }, + { + "name": "symfony/console", + "version": "v5.4.23", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "90f21e27d0d88ce38720556dd164d4a1e4c3934c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/90f21e27d0d88ce38720556dd164d4a1e4c3934c", + "reference": "90f21e27d0d88ce38720556dd164d4a1e4c3934c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.1|^6.0" + }, + "conflict": { + "psr/log": ">=3", + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0" + }, + "require-dev": { + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^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/v5.4.23" + }, + "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": "2023-04-24T18:47:29+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v5.4.21", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "95f3c7468db1da8cc360b24fa2a26e7cefcb355d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/95f3c7468db1da8cc360b24fa2a26e7cefcb355d", + "reference": "95f3c7468db1da8cc360b24fa2a26e7cefcb355d", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.16" + }, + "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/v5.4.21" + }, + "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": "2023-02-14T08:03:56+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-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/v2.5.2" + }, + "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-01-02T09:53:40+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v5.4.23", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "218206b4772d9f412d7d277980c020d06e9d8a4e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/218206b4772d9f412d7d277980c020d06e9d8a4e", + "reference": "218206b4772d9f412d7d277980c020d06e9d8a4e", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^4.4|^5.0|^6.0" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/http-kernel": "^4.4|^5.0|^6.0", + "symfony/serializer": "^4.4|^5.0|^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/v5.4.23" + }, + "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": "2023-04-17T10:03:27+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v5.4.22", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1df20e45d56da29a4b1d8259dd6e950acbf1b13f", + "reference": "1df20e45d56da29a4b1d8259dd6e950acbf1b13f", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/event-dispatcher-contracts": "^2|^3", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "symfony/dependency-injection": "<4.4" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/stopwatch": "^4.4|^5.0|^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/v5.4.22" + }, + "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": "2023-03-17T11:31:58+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/event-dispatcher": "^1" + }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-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/v2.5.2" + }, + "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-01-02T09:53:40+00:00" + }, + { + "name": "symfony/finder", + "version": "v5.4.21", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19", + "reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" + }, + "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/v5.4.21" + }, + "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": "2023-02-16T09:33:00+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v5.4.23", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "af9fbb378f5f956c8f29d4886644c84c193780ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/af9fbb378f5f956c8f29d4886644c84c193780ac", + "reference": "af9fbb378f5f956c8f29d4886644c84c193780ac", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.1", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "predis/predis": "~1.0", + "symfony/cache": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4", + "symfony/mime": "^4.4|^5.0|^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/v5.4.23" + }, + "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": "2023-04-18T06:30:11+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v5.4.23", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "48ea17a7c65ef1ede0c3b2dbc35adace99071810" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/48ea17a7c65ef1ede0c3b2dbc35adace99071810", + "reference": "48ea17a7c65ef1ede0c3b2dbc35adace99071810", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/log": "^1|^2", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^5.0|^6.0", + "symfony/http-foundation": "^5.4.21|^6.2.7", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "symfony/browser-kit": "<5.4", + "symfony/cache": "<5.0", + "symfony/config": "<5.0", + "symfony/console": "<4.4", + "symfony/dependency-injection": "<5.3", + "symfony/doctrine-bridge": "<5.0", + "symfony/form": "<5.0", + "symfony/http-client": "<5.0", + "symfony/mailer": "<5.0", + "symfony/messenger": "<5.0", + "symfony/translation": "<5.0", + "symfony/twig-bridge": "<5.0", + "symfony/validator": "<5.0", + "twig/twig": "<2.13" + }, + "provide": { + "psr/log-implementation": "1.0|2.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^5.4|^6.0", + "symfony/config": "^5.0|^6.0", + "symfony/console": "^4.4|^5.0|^6.0", + "symfony/css-selector": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^5.3|^6.0", + "symfony/dom-crawler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/finder": "^4.4|^5.0|^6.0", + "symfony/http-client-contracts": "^1.1|^2|^3", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/routing": "^4.4|^5.0|^6.0", + "symfony/stopwatch": "^4.4|^5.0|^6.0", + "symfony/translation": "^4.4|^5.0|^6.0", + "symfony/translation-contracts": "^1.1|^2|^3", + "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/v5.4.23" + }, + "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": "2023-04-28T13:29:52+00:00" + }, + { + "name": "symfony/mime", + "version": "v5.4.23", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "ae0a1032a450a3abf305ee44fc55ed423fbf16e3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/ae0a1032a450a3abf305ee44fc55ed423fbf16e3", + "reference": "ae0a1032a450a3abf305ee44fc55ed423fbf16e3", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<4.4", + "symfony/serializer": "<5.4.14|>=6.0,<6.0.14|>=6.1,<6.1.6" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/property-access": "^4.4|^5.1|^6.0", + "symfony/property-info": "^4.4|^5.1|^6.0", + "symfony/serializer": "^5.4.14|~6.0.14|^6.1.6" + }, + "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/v5.4.23" + }, + "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": "2023-04-19T09:49:13+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-iconv", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-iconv.git", + "reference": "927013f3aac555983a5059aada98e1907d842695" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/927013f3aac555983a5059aada98e1907d842695", + "reference": "927013f3aac555983a5059aada98e1907d842695", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-iconv": "*" + }, + "suggest": { + "ext-iconv": "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\\Iconv\\": "" + } + }, + "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 Iconv extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "iconv", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-iconv/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-php73", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "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\\Php73\\": "" + }, + "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 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/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/process", + "version": "v5.4.23", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "4b842fc4b61609e0a155a114082bd94e31e98287" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/4b842fc4b61609e0a155a114082bd94e31e98287", + "reference": "4b842fc4b61609e0a155a114082bd94e31e98287", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.16" + }, + "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/v5.4.23" + }, + "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": "2023-04-18T13:50:24+00:00" + }, + { + "name": "symfony/psr-http-message-bridge", + "version": "v2.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/psr-http-message-bridge.git", + "reference": "28a732c05bbad801304ad5a5c674cf2970508993" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/psr-http-message-bridge/zipball/28a732c05bbad801304ad5a5c674cf2970508993", + "reference": "28a732c05bbad801304ad5a5c674cf2970508993", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/http-message": "^1.0 || ^2.0", + "symfony/http-foundation": "^5.4 || ^6.0" + }, + "require-dev": { + "nyholm/psr7": "^1.1", + "psr/log": "^1.1 || ^2 || ^3", + "symfony/browser-kit": "^5.4 || ^6.0", + "symfony/config": "^5.4 || ^6.0", + "symfony/event-dispatcher": "^5.4 || ^6.0", + "symfony/framework-bundle": "^5.4 || ^6.0", + "symfony/http-kernel": "^5.4 || ^6.0", + "symfony/phpunit-bridge": "^6.2" + }, + "suggest": { + "nyholm/psr7": "For a super lightweight PSR-7/17 implementation" + }, + "type": "symfony-bridge", + "extra": { + "branch-alias": { + "dev-main": "2.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Bridge\\PsrHttpMessage\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + } + ], + "description": "PSR HTTP message bridge", + "homepage": "http://symfony.com", + "keywords": [ + "http", + "http-message", + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/symfony/psr-http-message-bridge/issues", + "source": "https://github.com/symfony/psr-http-message-bridge/tree/v2.2.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": "2023-04-21T08:40:19+00:00" + }, + { + "name": "symfony/routing", + "version": "v5.4.22", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/c2ac11eb34947999b7c38fb4c835a57306907e6d", + "reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "doctrine/annotations": "<1.12", + "symfony/config": "<5.3", + "symfony/dependency-injection": "<4.4", + "symfony/yaml": "<4.4" + }, + "require-dev": { + "doctrine/annotations": "^1.12|^2", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.3|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", + "symfony/yaml": "^4.4|^5.0|^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/v5.4.22" + }, + "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": "2023-03-14T14:59:20+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.1", + "symfony/deprecation-contracts": "^2.1|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "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/v2.5.2" + }, + "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:17:29+00:00" + }, + { + "name": "symfony/string", + "version": "v5.4.22", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", + "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" + }, + "conflict": { + "symfony/translation-contracts": ">=3.0" + }, + "require-dev": { + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/http-client": "^4.4|^5.0|^6.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0|^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/v5.4.22" + }, + "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": "2023-03-14T06:11:53+00:00" + }, + { + "name": "symfony/translation", + "version": "v5.4.22", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "9a401392f01bc385aa42760eff481d213a0cc2ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/9a401392f01bc385aa42760eff481d213a0cc2ba", + "reference": "9a401392f01bc385aa42760eff481d213a0cc2ba", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation-contracts": "^2.3" + }, + "conflict": { + "symfony/config": "<4.4", + "symfony/console": "<5.3", + "symfony/dependency-injection": "<5.0", + "symfony/http-kernel": "<5.0", + "symfony/twig-bundle": "<5.0", + "symfony/yaml": "<4.4" + }, + "provide": { + "symfony/translation-implementation": "2.3" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.0|^6.0", + "symfony/finder": "^4.4|^5.0|^6.0", + "symfony/http-client-contracts": "^1.1|^2.0|^3.0", + "symfony/http-kernel": "^5.0|^6.0", + "symfony/intl": "^4.4|^5.0|^6.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/service-contracts": "^1.1.2|^2|^3", + "symfony/yaml": "^4.4|^5.0|^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/v5.4.22" + }, + "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": "2023-03-27T16:07:23+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe", + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe", + "shasum": "" + }, + "require": { + "php": ">=7.2.5" + }, + "suggest": { + "symfony/translation-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + } + }, + "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/v2.5.2" + }, + "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-27T16:58:25+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v5.4.23", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "9a8a5b6d6508928174ded2109e29328a55342a42" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9a8a5b6d6508928174ded2109e29328a55342a42", + "reference": "9a8a5b6d6508928174ded2109e29328a55342a42", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "phpunit/phpunit": "<5.4.3", + "symfony/console": "<4.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/uid": "^5.1|^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/v5.4.23" + }, + "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": "2023-04-18T09:26:27+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "2.2.6", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "c42125b83a4fa63b187fdf29f9c93cb7733da30c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/c42125b83a4fa63b187fdf29f9c93cb7733da30c", + "reference": "c42125b83a4fa63b187fdf29f9c93cb7733da30c", + "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.6" + }, + "time": "2023-01-03T09:29:04+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v4.3.0", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "67a491df68208bef8c37092db11fa3885008efcf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/67a491df68208bef8c37092db11fa3885008efcf", + "reference": "67a491df68208bef8c37092db11fa3885008efcf", + "shasum": "" + }, + "require": { + "php": "^5.5.9 || ^7.0 || ^8.0", + "phpoption/phpoption": "^1.7.3", + "symfony/polyfill-ctype": "^1.17" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-filter": "*", + "ext-pcre": "*", + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.30" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator.", + "ext-pcre": "Required to use most of the library." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "4.3-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/v4.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2022-10-16T00:51:09+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "87337c91b9dfacee02452244ee14ab3c43bc485a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/87337c91b9dfacee02452244ee14ab3c43bc485a", + "reference": "87337c91b9dfacee02452244ee14ab3c43bc485a", + "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/1.6.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-01-24T18:55:24+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.5.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^11", + "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.30 || ^5.4" + }, + "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.5.0" + }, + "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-12-30T00:15:36+00:00" + }, + { + "name": "facade/flare-client-php", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/facade/flare-client-php.git", + "reference": "213fa2c69e120bca4c51ba3e82ed1834ef3f41b8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/facade/flare-client-php/zipball/213fa2c69e120bca4c51ba3e82ed1834ef3f41b8", + "reference": "213fa2c69e120bca4c51ba3e82ed1834ef3f41b8", + "shasum": "" + }, + "require": { + "facade/ignition-contracts": "~1.0", + "illuminate/pipeline": "^5.5|^6.0|^7.0|^8.0", + "php": "^7.1|^8.0", + "symfony/http-foundation": "^3.3|^4.1|^5.0", + "symfony/mime": "^3.4|^4.0|^5.1", + "symfony/var-dumper": "^3.4|^4.0|^5.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.14", + "phpunit/phpunit": "^7.5", + "spatie/phpunit-snapshot-assertions": "^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Facade\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/facade/flare-client-php", + "keywords": [ + "exception", + "facade", + "flare", + "reporting" + ], + "support": { + "issues": "https://github.com/facade/flare-client-php/issues", + "source": "https://github.com/facade/flare-client-php/tree/1.10.0" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2022-08-09T11:23:57+00:00" + }, + { + "name": "facade/ignition", + "version": "2.17.7", + "source": { + "type": "git", + "url": "https://github.com/facade/ignition.git", + "reference": "b4f5955825bb4b74cba0f94001761c46335c33e9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/facade/ignition/zipball/b4f5955825bb4b74cba0f94001761c46335c33e9", + "reference": "b4f5955825bb4b74cba0f94001761c46335c33e9", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "facade/flare-client-php": "^1.9.1", + "facade/ignition-contracts": "^1.0.2", + "illuminate/support": "^7.0|^8.0", + "monolog/monolog": "^2.0", + "php": "^7.2.5|^8.0", + "symfony/console": "^5.0", + "symfony/var-dumper": "^5.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.14", + "livewire/livewire": "^2.4", + "mockery/mockery": "^1.3", + "orchestra/testbench": "^5.0|^6.0", + "psalm/plugin-laravel": "^1.2" + }, + "suggest": { + "laravel/telescope": "^3.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Facade\\Ignition\\IgnitionServiceProvider" + ], + "aliases": { + "Flare": "Facade\\Ignition\\Facades\\Flare" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Facade\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://github.com/facade/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/facade/ignition/issues", + "source": "https://github.com/facade/ignition" + }, + "time": "2023-01-26T12:34:59+00:00" + }, + { + "name": "filp/whoops", + "version": "2.15.2", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/aac9304c5ed61bf7b1b7a6064bf9806ab842ce73", + "reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73", + "shasum": "" + }, + "require": { + "php": "^5.5.9 || ^7.0 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^0.9 || ^1.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.15.2" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2023-04-12T12:00:00+00:00" + }, + { + "name": "fzaninotto/faker", + "version": "v1.9.2", + "source": { + "type": "git", + "url": "https://github.com/fzaninotto/Faker.git", + "reference": "848d8125239d7dbf8ab25cb7f054f1a630e68c2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/848d8125239d7dbf8ab25cb7f054f1a630e68c2e", + "reference": "848d8125239d7dbf8ab25cb7f054f1a630e68c2e", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "ext-intl": "*", + "phpunit/phpunit": "^4.8.35 || ^5.7", + "squizlabs/php_codesniffer": "^2.9.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-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/fzaninotto/Faker/issues", + "source": "https://github.com/fzaninotto/Faker/tree/v1.9.2" + }, + "abandoned": true, + "time": "2020-12-11T09:56:16+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.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "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.1" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2023-03-08T13:26:56+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v4.3.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "7c125dc2463f3e144ddc7e05e63077109508c94e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/7c125dc2463f3e144ddc7e05e63077109508c94e", + "reference": "7c125dc2463f3e144ddc7e05e63077109508c94e", + "shasum": "" + }, + "require": { + "facade/ignition-contracts": "^1.0", + "filp/whoops": "^2.4", + "php": "^7.2.5 || ^8.0", + "symfony/console": "^5.0" + }, + "require-dev": { + "facade/ignition": "^2.0", + "fideloper/proxy": "^4.2", + "friendsofphp/php-cs-fixer": "^2.16", + "fruitcake/laravel-cors": "^1.0", + "laravel/framework": "^7.0", + "laravel/tinker": "^2.0", + "nunomaduro/larastan": "^0.6", + "orchestra/testbench": "^5.0", + "phpstan/phpstan": "^0.12.3", + "phpunit/phpunit": "^8.5.1 || ^9.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2020-10-29T15:12: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": "7.0.15", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "819f92bba8b001d4363065928088de22f25a3a48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/819f92bba8b001d4363065928088de22f25a3a48", + "reference": "819f92bba8b001d4363065928088de22f25a3a48", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": ">=7.2", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^3.1.3 || ^4.0", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^4.2.2", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.2.2" + }, + "suggest": { + "ext-xdebug": "^2.7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.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 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/7.0.15" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-07-26T12:20:09+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "reference": "42c5ba5220e6904cbfe8b1a1bda7c0cfdc8c12f5", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "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": "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/2.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:42:26+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "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/1.2.1" + }, + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.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": "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/2.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:20:02+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "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": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "abandoned": true, + "time": "2020-08-04T08:28:15+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "8.5.33", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", + "reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.0", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=7.2", + "phpunit/php-code-coverage": "^7.0.12", + "phpunit/php-file-iterator": "^2.0.4", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^2.1.2", + "sebastian/comparator": "^3.0.5", + "sebastian/diff": "^3.0.2", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.5", + "sebastian/global-state": "^3.0.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^2.0.1", + "sebastian/type": "^1.1.3", + "sebastian/version": "^2.0.1" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*", + "phpunit/php-invoker": "^2.0.0" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.5-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": "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/8.5.33" + }, + "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": "2023-02-27T13:04:50+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-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/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:15:22+00:00" + }, + { + "name": "sebastian/comparator", + "version": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sebastian/diff": "^3.0", + "sebastian/exporter": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "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" + }, + { + "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/3.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:31:48+00:00" + }, + { + "name": "sebastian/diff", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "6296a0c086dd0117c1b78b059374d7fcbe7545ae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/6296a0c086dd0117c1b78b059374d7fcbe7545ae", + "reference": "6296a0c086dd0117c1b78b059374d7fcbe7545ae", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.0", + "symfony/process": "^2 || ^3.3 || ^4" + }, + "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" + }, + { + "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/3.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-05-07T05:30:20+00:00" + }, + { + "name": "sebastian/environment", + "version": "4.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-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/4.2.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:53:42+00:00" + }, + { + "name": "sebastian/exporter", + "version": "3.1.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6", + "reference": "73a9676f2833b9a7c36968f9d882589cd75511e6", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-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": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T06:00:17+00:00" + }, + { + "name": "sebastian/global-state", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "reference": "de036ec91d55d2a9e0db2ba975b512cdb1c23921", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "ext-uopz": "*" + }, + "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": "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/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-02-10T06:55:38+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-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/3.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:40:27+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-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/1.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:37:18+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-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/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:34:24+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "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": "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/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:30:19+00:00" + }, + { + "name": "sebastian/type", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.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": "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/1.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:25:11+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "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": "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/master" + }, + "time": "2016-10-03T07:35:21+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": "^7.2.5" + }, + "platform-dev": [], + "plugin-api-version": "2.3.0" +} \ No newline at end of file diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..89318c6 --- /dev/null +++ b/config/app.php @@ -0,0 +1,234 @@ + 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'), + 'frontend_url' => env('APP_URL_FRONTEND', 'http://localhost:3000'), + + 'asset_url' => env('ASSET_URL', null), + + /* + |-------------------------------------------------------------------------- + | 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' => 'Europe/Amsterdam', + + /* + |-------------------------------------------------------------------------- + | 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' => 'en_US', + + /* + |-------------------------------------------------------------------------- + | 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', + + /* + |-------------------------------------------------------------------------- + | 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, + + /* + * Package Service Providers... + */ + + /* + * Application Service Providers... + */ + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + App\Providers\BroadcastServiceProvider::class, + App\Providers\CorsServiceProvider::class, + App\Providers\EventServiceProvider::class, + App\Providers\RouteServiceProvider::class, + + ], + + /* + |-------------------------------------------------------------------------- + | Class Aliases + |-------------------------------------------------------------------------- + | + | This array of class aliases will be registered when this application + | is started. However, feel free to register as many as you wish as + | the aliases are "lazy" loaded so they don't hinder performance. + | + */ + + 'aliases' => [ + + 'App' => Illuminate\Support\Facades\App::class, + 'Arr' => Illuminate\Support\Arr::class, + 'Artisan' => Illuminate\Support\Facades\Artisan::class, + 'Auth' => Illuminate\Support\Facades\Auth::class, + 'Blade' => Illuminate\Support\Facades\Blade::class, + 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, + 'Bus' => Illuminate\Support\Facades\Bus::class, + 'Cache' => Illuminate\Support\Facades\Cache::class, + 'Config' => Illuminate\Support\Facades\Config::class, + 'Cookie' => Illuminate\Support\Facades\Cookie::class, + 'Crypt' => Illuminate\Support\Facades\Crypt::class, + 'DB' => Illuminate\Support\Facades\DB::class, + 'Eloquent' => Illuminate\Database\Eloquent\Model::class, + 'Event' => Illuminate\Support\Facades\Event::class, + 'File' => Illuminate\Support\Facades\File::class, + 'Gate' => Illuminate\Support\Facades\Gate::class, + 'Hash' => Illuminate\Support\Facades\Hash::class, + 'Http' => Illuminate\Support\Facades\Http::class, + 'Lang' => Illuminate\Support\Facades\Lang::class, + 'Log' => Illuminate\Support\Facades\Log::class, + 'Mail' => Illuminate\Support\Facades\Mail::class, + 'Notification' => Illuminate\Support\Facades\Notification::class, + 'Password' => Illuminate\Support\Facades\Password::class, + 'Queue' => Illuminate\Support\Facades\Queue::class, + 'Redirect' => Illuminate\Support\Facades\Redirect::class, + 'Redis' => Illuminate\Support\Facades\Redis::class, + 'Request' => Illuminate\Support\Facades\Request::class, + 'Response' => Illuminate\Support\Facades\Response::class, + 'Route' => Illuminate\Support\Facades\Route::class, + 'Schema' => Illuminate\Support\Facades\Schema::class, + 'Session' => Illuminate\Support\Facades\Session::class, + 'Storage' => Illuminate\Support\Facades\Storage::class, + 'Str' => Illuminate\Support\Str::class, + 'URL' => Illuminate\Support\Facades\URL::class, + 'Validator' => Illuminate\Support\Facades\Validator::class, + 'View' => Illuminate\Support\Facades\View::class, + + ], + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..7a7c8fa --- /dev/null +++ b/config/auth.php @@ -0,0 +1,117 @@ + [ + 'guard' => 'web', + 'passwords' => 'users', + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session", "token" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + + 'api' => [ + 'driver' => 'token', + 'provider' => 'users', + 'hash' => false, + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => App\Repositories\User::class, + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | You may specify multiple password reset configurations if you have more + | than one user table or model in the application and you want to have + | separate password reset settings based on the specific user types. + | + | The expire time is the number of minutes that the reset token should be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => 'password_resets', + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the amount of seconds before a password confirmation + | times out and the user is prompted to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => 10800, + +]; diff --git a/config/backup.php b/config/backup.php new file mode 100644 index 0000000..3e9b99d --- /dev/null +++ b/config/backup.php @@ -0,0 +1,266 @@ + [ + + /* + * The name of this application. You can use this name to monitor + * the backups. + */ + 'name' => env('APP_NAME', 'laravel-backup'), + + 'source' => [ + + 'files' => [ + + /* + * The list of directories and files that will be included in the backup. + */ + 'include' => [ + base_path(), + ], + + /* + * These directories and files will be excluded from the backup. + * + * Directories used by the backup process will automatically be excluded. + */ + 'exclude' => [ + base_path('vendor'), + base_path('node_modules'), + ], + + /* + * Determines if symlinks should be followed. + */ + 'follow_links' => false, + + /* + * Determines if it should avoid unreadable folders. + */ + 'ignore_unreadable_directories' => false, + + /* + * This path is used to make directories in resulting zip-file relative + * Set to `null` to include complete absolute path + * Example: base_path() + */ + 'relative_path' => null, + ], + + /* + * The names of the connections to the databases that should be backed up + * MySQL, PostgreSQL, SQLite and Mongo databases are supported. + * + * The content of the database dump may be customized for each connection + * by adding a 'dump' key to the connection settings in config/database.php. + * E.g. + * 'mysql' => [ + * ... + * 'dump' => [ + * 'excludeTables' => [ + * 'table_to_exclude_from_backup', + * 'another_table_to_exclude' + * ] + * ], + * ], + * + * If you are using only InnoDB tables on a MySQL server, you can + * also supply the useSingleTransaction option to avoid table locking. + * + * E.g. + * 'mysql' => [ + * ... + * 'dump' => [ + * 'useSingleTransaction' => true, + * ], + * ], + * + * For a complete list of available customization options, see https://github.com/spatie/db-dumper + */ + 'databases' => [ + 'mysql', + ], + ], + + /* + * The database dump can be compressed to decrease diskspace usage. + * + * Out of the box Laravel-backup supplies + * Spatie\DbDumper\Compressors\GzipCompressor::class. + * + * You can also create custom compressor. More info on that here: + * https://github.com/spatie/db-dumper#using-compression + * + * If you do not want any compressor at all, set it to null. + */ + 'database_dump_compressor' => null, + + /* + * The file extension used for the database dump files. + * + * If not specified, the file extension will be .archive for MongoDB and .sql for all other databases + * The file extension should be specified without a leading . + */ + 'database_dump_file_extension' => '', + + 'destination' => [ + + /* + * The filename prefix used for the backup zip file. + */ + 'filename_prefix' => '', + + /* + * The disk names on which the backups will be stored. + */ + 'disks' => [ + 'backups', + ], + ], + + /* + * The directory where the temporary files will be stored. + */ + 'temporary_directory' => storage_path('app/backup-temp'), + + /* + * The password to be used for archive encryption. + * Set to `null` to disable encryption. + */ + 'password' => env('BACKUP_ARCHIVE_PASSWORD'), + + /* + * The encryption algorithm to be used for archive encryption. + * You can set it to `null` or `false` to disable encryption. + * + * When set to 'default', we'll use ZipArchive::EM_AES_256 if it is + * available on your system. + */ + 'encryption' => 'default', + ], + + /* + * You can get notified when specific events occur. Out of the box you can use 'mail' and 'slack'. + * For Slack you need to install laravel/slack-notification-channel. + * + * You can also use your own notification classes, just make sure the class is named after one of + * the `Spatie\Backup\Events` classes. + */ + 'notifications' => [ + + 'notifications' => [ + \Spatie\Backup\Notifications\Notifications\BackupHasFailed::class => ['slack'], + \Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFound::class => ['slack'], + \Spatie\Backup\Notifications\Notifications\CleanupHasFailed::class => ['slack'], + \Spatie\Backup\Notifications\Notifications\BackupWasSuccessful::class => ['slack'], + \Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::class => ['slack'], + \Spatie\Backup\Notifications\Notifications\CleanupWasSuccessful::class => ['slack'], + ], + + /* + * Here you can specify the notifiable to which the notifications should be sent. The default + * notifiable will use the variables specified in this config file. + */ + 'notifiable' => \Spatie\Backup\Notifications\Notifiable::class, + + 'mail' => [ + 'to' => 'backups+mijnggz@3110.nl', + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'noreply@ggzecademy.nl'), + 'name' => env('MAIL_FROM_NAME', 'GGZ Ecademy'), + ], + ], + + 'slack' => [ + 'webhook_url' => 'https://hooks.slack.com/services/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', + + /* + * If this is set to null the default channel of the webhook will be used. + */ + 'channel' => null, + + 'username' => null, + + 'icon' => null, + + ], + ], + + /* + * Here you can specify which backups should be monitored. + * If a backup does not meet the specified requirements the + * UnHealthyBackupWasFound event will be fired. + */ + 'monitor_backups' => [ + [ + 'name' => env('APP_NAME', 'laravel-backup'), + 'disks' => ['backups'], + 'health_checks' => [ + \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1, + \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000, + ], + ], + + /* + [ + 'name' => 'name of the second app', + 'disks' => ['local', 's3'], + 'health_checks' => [ + \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1, + \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000, + ], + ], + */ + ], + + 'cleanup' => [ + /* + * The strategy that will be used to cleanup old backups. The default strategy + * will keep all backups for a certain amount of days. After that period only + * a daily backup will be kept. After that period only weekly backups will + * be kept and so on. + * + * No matter how you configure it the default strategy will never + * delete the newest backup. + */ + 'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class, + + 'default_strategy' => [ + + /* + * The number of days for which backups must be kept. + */ + 'keep_all_backups_for_days' => 7, + + /* + * The number of days for which daily backups must be kept. + */ + 'keep_daily_backups_for_days' => 16, + + /* + * The number of weeks for which one weekly backup must be kept. + */ + 'keep_weekly_backups_for_weeks' => 8, + + /* + * The number of months for which one monthly backup must be kept. + */ + 'keep_monthly_backups_for_months' => 4, + + /* + * The number of years for which one yearly backup must be kept. + */ + 'keep_yearly_backups_for_years' => 2, + + /* + * After cleaning up the backups remove the oldest backup until + * this amount of megabytes has been reached. + */ + 'delete_oldest_backups_when_using_more_megabytes_than' => 5000, + ], + ], + +]; diff --git a/config/broadcasting.php b/config/broadcasting.php new file mode 100644 index 0000000..6aaa6bc --- /dev/null +++ b/config/broadcasting.php @@ -0,0 +1,66 @@ + env('BROADCAST_DRIVER', 'null'), + + /* + |-------------------------------------------------------------------------- + | Broadcast Connections + |-------------------------------------------------------------------------- + | + | Here you may define all of the broadcast connections that will be used + | to broadcast events to other systems or over websockets. Samples of + | each available type of connection are provided inside this array. + | + */ + + 'connections' => [ + + 'pusher' => [ + 'driver' => 'pusher', + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + 'app_id' => env('PUSHER_APP_ID'), + 'options' => [ + 'cluster' => env('PUSHER_APP_CLUSTER'), + 'encrypted' => env('PUSHER_APP_ENCRYPTED'), + 'host' => env('APP_BASE_URL'), + 'port' => env('PUSHER_APP_PORT'), + 'scheme' => env('PUSHER_APP_SCHEME'), + 'curl_options' => [ + CURLOPT_SSL_VERIFYHOST => 0, + CURLOPT_SSL_VERIFYPEER => 0, + ] + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + ], + + 'log' => [ + 'driver' => 'log', + ], + + 'null' => [ + 'driver' => 'null', + ], + + ], + +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..8cc5573 --- /dev/null +++ b/config/cache.php @@ -0,0 +1,107 @@ + env('CACHE_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + */ + + 'stores' => [ + + 'apc' => [ + 'driver' => 'apc', + ], + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'cache', + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'none' => [ + 'driver' => 'null', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing a RAM based store such as APC or Memcached, there might + | be other applications utilizing the same cache. So, we'll specify a + | value to get prefixed to all our keys so we can avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), + +]; diff --git a/config/cors.php b/config/cors.php new file mode 100644 index 0000000..ff4807e --- /dev/null +++ b/config/cors.php @@ -0,0 +1,7 @@ + '^/api/.+', + 'methods' => ['GET', 'POST', 'PATCH', 'UPDATE', 'DELETE', 'OPTIONS'], + 'headers' => ['Authorization', 'Content-Type', 'Referer', 'User-Agent'], +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..b42d9b3 --- /dev/null +++ b/config/database.php @@ -0,0 +1,147 @@ + env('DB_CONNECTION', 'mysql'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Here are each of the database connections setup for your application. + | Of course, examples of configuring each database platform that is + | supported by Laravel is shown below to make development simple. + | + | + | All database work in Laravel is done through the PHP PDO facilities + | so make sure you have the driver for your particular database of + | choice installed on your machine before you begin development. + | + */ + + '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'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + 'schema' => 'public', + 'sslmode' => 'prefer', + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'forge'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => 'utf8', + 'prefix' => '', + 'prefix_indexes' => true, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run in the database. + | + */ + + 'migrations' => 'migrations', + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as APC or Memcached. Laravel makes it easy to dig right in. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + ], + + ], + +]; diff --git a/config/filesystems.php b/config/filesystems.php new file mode 100644 index 0000000..b93b1bc --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,106 @@ + env('FILESYSTEM_DRIVER', 'local'), + + /* + |-------------------------------------------------------------------------- + | Default Cloud Filesystem Disk + |-------------------------------------------------------------------------- + | + | Many applications store files both locally and in the cloud. For this + | reason, you may specify a default "cloud" driver here. This driver + | will be bound as the Cloud disk implementation in the container. + | + */ + + 'cloud' => env('FILESYSTEM_CLOUD', 's3'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Here you may configure as many filesystem "disks" as you wish, and you + | may even configure multiple disks of the same driver. Defaults have + | been setup for each driver as an example of the required options. + | + | Supported Drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + ], + + 'backups' => [ + 'driver' => 'local', + 'root' => env( + 'APP_BACKUP_PATH', + sprintf('%s/.laravel/mijnggz/backend/backups', env('HOME')), + ), + ], + + // 'user_pics' => [ + // 'driver' => 'local', + // 'root' => storage_path('app/users/pics'), + // 'url' => env('APP_URL') . '/storage/users/pics', + // 'visibility' => 'public' + // ], + + // 'learning_products_covers' => [ + // 'driver' => 'local', + // 'root' => storage_path('app/learning/covers'), + // 'url' => env('APP_URL') . '/learning/covers', + // 'visibility' => 'public' + // ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/config/hashing.php b/config/hashing.php new file mode 100644 index 0000000..8425770 --- /dev/null +++ b/config/hashing.php @@ -0,0 +1,52 @@ + 'bcrypt', + + /* + |-------------------------------------------------------------------------- + | Bcrypt Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Bcrypt algorithm. This will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'bcrypt' => [ + 'rounds' => env('BCRYPT_ROUNDS', 10), + ], + + /* + |-------------------------------------------------------------------------- + | Argon Options + |-------------------------------------------------------------------------- + | + | Here you may specify the configuration options that should be used when + | passwords are hashed using the Argon algorithm. These will allow you + | to control the amount of time it takes to hash the given password. + | + */ + + 'argon' => [ + 'memory' => 1024, + 'threads' => 2, + 'time' => 2, + ], + +]; diff --git a/config/logging.php b/config/logging.php new file mode 100644 index 0000000..088c204 --- /dev/null +++ b/config/logging.php @@ -0,0 +1,104 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Out of + | the box, Laravel uses the Monolog PHP logging library. This gives + | you a variety of powerful log handlers / formatters to utilize. + | + | Available Drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", + | "custom", "stack" + | + */ + + 'channels' => [ + 'stack' => [ + 'driver' => 'stack', + 'channels' => ['single'], + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => 'debug', + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => 'debug', + 'days' => 14, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => 'Laravel Log', + 'emoji' => ':boom:', + 'level' => 'critical', + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => 'debug', + 'handler' => SyslogUdpHandler::class, + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + ], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => 'debug', + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => 'debug', + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..5201bb7 --- /dev/null +++ b/config/mail.php @@ -0,0 +1,109 @@ + env('MAIL_MAILER', 'smtp'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers to be used while + | sending an e-mail. You will specify which one you are using for your + | mailers below. You are free to add additional mailers as required. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", + | "postmark", "log", "array" + | + */ + + 'mailers' => [ + 'smtp' => [ + 'transport' => 'smtp', + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'port' => env('MAIL_PORT', 587), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'mailgun' => [ + 'transport' => 'mailgun', + ], + + 'postmark' => [ + 'transport' => 'postmark', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => '/usr/sbin/sendmail -bs', + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all e-mails sent by your application to be sent from + | the same address. Here, you may specify a name and address that is + | used globally for all e-mails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + + /* + |-------------------------------------------------------------------------- + | Markdown Mail Settings + |-------------------------------------------------------------------------- + | + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! + | + */ + + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], + +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..00b76d6 --- /dev/null +++ b/config/queue.php @@ -0,0 +1,89 @@ + env('QUEUE_CONNECTION', 'sync'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection information for each server that + | is used by your application. A default configuration has been added + | for each back-end shipped with Laravel. You are free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'jobs', + 'queue' => 'default', + 'retry_after' => 90, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + 'block_for' => 0, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'your-queue-name'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => 90, + 'block_for' => null, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control which database and table are used to store the jobs that + | have failed. You may change them to any database / table you wish. + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database'), + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/sanctum.php b/config/sanctum.php new file mode 100644 index 0000000..3da87ab --- /dev/null +++ b/config/sanctum.php @@ -0,0 +1,46 @@ + explode(',', env('SANCTUM_STATEFUL_DOMAINS', 'localhost,127.0.0.1')), + + /* + |-------------------------------------------------------------------------- + | Expiration Minutes + |-------------------------------------------------------------------------- + | + | This value controls the number of minutes until an issued token will be + | considered expired. If this value is null, personal access tokens do + | not expire. This won't tweak the lifetime of first-party sessions. + | + */ + + 'expiration' => null, + + /* + |-------------------------------------------------------------------------- + | Sanctum Middleware + |-------------------------------------------------------------------------- + | + | When authenticating your first-party SPA with Sanctum you may need to + | customize some of the middleware Sanctum uses while processing the + | request. You may change the middleware listed below as required. + | + */ + + 'middleware' => [ + 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..2a1d616 --- /dev/null +++ b/config/services.php @@ -0,0 +1,33 @@ + [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + ], + + 'postmark' => [ + 'token' => env('POSTMARK_TOKEN'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..d0ccd5a --- /dev/null +++ b/config/session.php @@ -0,0 +1,199 @@ + env('SESSION_DRIVER', 'file'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to immediately expire on the browser closing, set that option. + | + */ + + 'lifetime' => env('SESSION_LIFETIME', 120), + + 'expire_on_close' => false, + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it is stored. All encryption will be run + | automatically by Laravel and you can use the Session like normal. + | + */ + + 'encrypt' => false, + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When using the native session driver, we need a location where session + | files may be stored. A default has been set for you but a different + | location may be specified. This is only needed for file sessions. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION', null), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table we + | should use to manage the sessions. Of course, a sensible default is + | provided for you; however, you are free to change this as needed. + | + */ + + 'table' => 'sessions', + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | When using the "apc", "memcached", or "dynamodb" session drivers you may + | list a cache store that should be used for these sessions. This value + | must match with one of the application's configured cache "stores". + | + */ + + 'store' => env('SESSION_STORE', null), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the cookie used to identify a session + | instance by ID. The name specified here will get used every time a + | new session cookie is created by the framework for every driver. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => env('SESSION_DOMAIN', null), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you if it can not be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | do not enable this as other CSRF protection services are in place. + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => 'lax', + +]; diff --git a/config/sso.php b/config/sso.php new file mode 100644 index 0000000..976d003 --- /dev/null +++ b/config/sso.php @@ -0,0 +1,16 @@ + env('SSO_CLIENT_ID', 'mijnggz'), + 'idp_base_uri' => env('SSO_IDP_BASE_URI', 'https://login.ggzecademy.nl/realms/GGZE'), + 'redirect_uri' => env('SSO_REDIRECT_URI', 'https://mijn.ggzecademy.nl/sso'), + 'secret' => env('SSO_SECRET', 'Rgj3aszm1tO5Tc2ggoe0WjjGelLB1KE7'), + 'scopes' => $scopes, +]; diff --git a/config/view.php b/config/view.php new file mode 100644 index 0000000..22b8a18 --- /dev/null +++ b/config/view.php @@ -0,0 +1,36 @@ + [ + resource_path('views'), + ], + + /* + |-------------------------------------------------------------------------- + | Compiled View Path + |-------------------------------------------------------------------------- + | + | This option determines where all the compiled Blade templates will be + | stored for your application. Typically, this is within the storage + | directory. However, as usual, you are free to change this value. + | + */ + + 'compiled' => env( + 'VIEW_COMPILED_PATH', + realpath(storage_path('framework/views')) + ), + +]; diff --git a/config/websockets.php b/config/websockets.php new file mode 100644 index 0000000..28e2046 --- /dev/null +++ b/config/websockets.php @@ -0,0 +1,141 @@ + [ + 'port' => env('LARAVEL_WEBSOCKETS_PORT', 6001), + ], + + /* + * This package comes with multi tenancy out of the box. Here you can + * configure the different apps that can use the webSockets server. + * + * Optionally you specify capacity so you can limit the maximum + * concurrent connections for a specific app. + * + * Optionally you can disable client events so clients cannot send + * messages to each other via the webSockets. + */ + 'apps' => [ + [ + 'id' => env('PUSHER_APP_ID'), + 'name' => env('APP_NAME'), + 'key' => env('PUSHER_APP_KEY'), + 'secret' => env('PUSHER_APP_SECRET'), + // 'path' => env('PUSHER_APP_PATH'), + // 'capacity' => null, + 'enable_client_messages' => false, + 'enable_statistics' => true, + ], + ], + + /* + * This class is responsible for finding the apps. The default provider + * will use the apps defined in this config file. + * + * You can create a custom provider by implementing the + * `AppProvider` interface. + */ + 'app_provider' => BeyondCode\LaravelWebSockets\Apps\ConfigAppProvider::class, + + /* + * This array contains the hosts of which you want to allow incoming requests. + * Leave this empty if you want to accept requests from all hosts. + */ + 'allowed_origins' => [ + // + ], + + /* + * The maximum request size in kilobytes that is allowed for an incoming WebSocket request. + */ + 'max_request_size_in_kb' => 250, + + /* + * This path will be used to register the necessary routes for the package. + */ + 'path' => 'laravel-websockets', + + /* + * Dashboard Routes Middleware + * + * These middleware will be assigned to every dashboard route, giving you + * the chance to add your own middleware to this list or change any of + * the existing middleware. Or, you can simply stick with this list. + */ + 'middleware' => [ + 'web', + Authorize::class, + ], + + 'statistics' => [ + /* + * This model will be used to store the statistics of the WebSocketsServer. + * The only requirement is that the model should extend + * `WebSocketsStatisticsEntry` provided by this package. + */ + 'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class, + + /** + * The Statistics Logger will, by default, handle the incoming statistics, store them + * and then release them into the database on each interval defined below. + */ + 'logger' => BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class, + + /* + * Here you can specify the interval in seconds at which statistics should be logged. + */ + 'interval_in_seconds' => 60, + + /* + * When the clean-command is executed, all recorded statistics older than + * the number of days specified here will be deleted. + */ + 'delete_statistics_older_than_days' => 60, + + /* + * Use an DNS resolver to make the requests to the statistics logger + * default is to resolve everything to 127.0.0.1. + */ + 'perform_dns_lookup' => false, + ], + + /* + * Define the optional SSL context for your WebSocket connections. + * You can see all available options at: http://php.net/manual/en/context.ssl.php + */ + 'ssl' => [ + /* + * Path to local certificate file on filesystem. It must be a PEM encoded file which + * contains your certificate and private key. It can optionally contain the + * certificate chain of issuers. The private key also may be contained + * in a separate file specified by local_pk. + */ + 'local_cert' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null), + + /* + * Path to local private key file on filesystem in case of separate files for + * certificate (local_cert) and private key. + */ + 'local_pk' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null), + + /* + * Passphrase for your local_cert file. + */ + 'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null), + ], + + /* + * Channel Manager + * This class handles how channel persistence is handled. + * By default, persistence is stored in an array by the running webserver. + * The only requirement is that the class should implement + * `ChannelManager` interface provided by this package. + */ + 'channel_manager' => \BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager::class, +]; diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..97fc976 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1,2 @@ +*.sqlite +*.sqlite-journal diff --git a/database/factories/LearningProductFactory.php b/database/factories/LearningProductFactory.php new file mode 100644 index 0000000..230b906 --- /dev/null +++ b/database/factories/LearningProductFactory.php @@ -0,0 +1,12 @@ +define(LearningProduct::class, function (Faker $faker) { + return [ + // + ]; +}); diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..91d86f6 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,29 @@ +define(User::class, function (Faker $faker) { + return [ + 'first_name' => $faker->firstName, + 'last_name' => $faker->lastName, + 'email' => $faker->unique()->safeEmail, + 'email_verified_at' => now(), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password + 'remember_token' => Str::random(10), + ]; +}); diff --git a/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php b/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php new file mode 100644 index 0000000..1b89b4a --- /dev/null +++ b/database/migrations/0000_00_00_000000_create_websockets_statistics_entries_table.php @@ -0,0 +1,35 @@ +increments('id'); + $table->string('app_id'); + $table->integer('peak_connection_count'); + $table->integer('websocket_message_count'); + $table->integer('api_message_count'); + $table->nullableTimestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('websockets_statistics_entries'); + } +} diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php new file mode 100644 index 0000000..9eebba6 --- /dev/null +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,40 @@ +increments('id'); + $table->string('first_name'); + $table->string('last_name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->rememberToken(); + $table->timestamp('logged_at')->nullable(); + $table->timestamp('last_login_at')->nullable(); + $table->string('last_login_ip')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('users'); + } +} diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php new file mode 100644 index 0000000..0ee0a36 --- /dev/null +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -0,0 +1,32 @@ +string('email')->index(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('password_resets'); + } +} diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php new file mode 100644 index 0000000..9bddee3 --- /dev/null +++ b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -0,0 +1,35 @@ +id(); + $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/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php new file mode 100644 index 0000000..3ce0002 --- /dev/null +++ b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -0,0 +1,36 @@ +bigIncrements('id'); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique(); + $table->text('abilities')->nullable(); + $table->timestamp('last_used_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('personal_access_tokens'); + } +} diff --git a/database/migrations/2020_03_16_185528_create_roles_table.php b/database/migrations/2020_03_16_185528_create_roles_table.php new file mode 100644 index 0000000..d3de9a8 --- /dev/null +++ b/database/migrations/2020_03_16_185528_create_roles_table.php @@ -0,0 +1,32 @@ +increments('id'); + $table->string('name'); + $table->string('color'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('roles'); + } +} diff --git a/database/migrations/2020_03_16_185728_create_role_user_table.php b/database/migrations/2020_03_16_185728_create_role_user_table.php new file mode 100644 index 0000000..5921011 --- /dev/null +++ b/database/migrations/2020_03_16_185728_create_role_user_table.php @@ -0,0 +1,42 @@ +bigIncrements('id'); + $table->unsignedInteger('user_id'); + $table->unsignedInteger('role_id'); + }); + + Schema::table('role_user', function (Blueprint $table) { + $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); + $table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('role_user', function (Blueprint $table) { + $table->dropForeign('role_user_user_id_foreign'); + $table->dropForeign('role_user_role_id_foreign'); + }); + + Schema::dropIfExists('role_user'); + } +} diff --git a/database/migrations/2020_03_31_105112_create_learning_products_table.php b/database/migrations/2020_03_31_105112_create_learning_products_table.php new file mode 100644 index 0000000..64089e5 --- /dev/null +++ b/database/migrations/2020_03_31_105112_create_learning_products_table.php @@ -0,0 +1,59 @@ +increments('id'); + $table->integer('parent_id')->nullable(); + $table->boolean('published')->default(0); + $table->string('title')->nullable(); + $table->string('code')->nullable(); + $table->string('video')->nullable(); + $table->string('lead_time')->nullable(); + $table->string('seo_title')->nullable(); + $table->string('meta_description')->nullable(); + $table->string('url')->nullable(); + $table->longText('short_description')->nullable(); + $table->longText('learning_goals')->nullable(); + $table->longText('review')->nullable(); + $table->longText('certification')->nullable(); + $table->longText('extra_information')->nullable(); + $table->longText('target_audience')->nullable(); + $table->boolean('in_the_picture')->nullable()->default(false); + $table->dateTime('in_the_picture_start', 0)->nullable(); + $table->dateTime('in_the_picture_end', 0)->nullable(); + $table->string('owner')->nullable(); + $table->string('partner')->nullable(); + $table->string('supplier')->nullable(); + $table->longText('contract_agreements')->nullable(); + $table->string('prognosis_members')->nullable(); + $table->string('prognosis_attendees')->nullable(); + $table->string('sharepoint_link')->nullable(); + $table->string('support_link')->nullable(); + $table->string('support_tickets_link')->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('learning_products'); + } +} diff --git a/database/migrations/2020_04_10_102625_create_media_table.php b/database/migrations/2020_04_10_102625_create_media_table.php new file mode 100644 index 0000000..d0ac271 --- /dev/null +++ b/database/migrations/2020_04_10_102625_create_media_table.php @@ -0,0 +1,31 @@ +bigIncrements('id'); + + $table->morphs('model'); + $table->uuid('uuid')->nullable(); + $table->string('collection_name'); + $table->string('name'); + $table->string('file_name'); + $table->string('mime_type')->nullable(); + $table->string('disk'); + $table->string('conversions_disk')->nullable(); + $table->unsignedBigInteger('size'); + $table->json('manipulations'); + $table->json('custom_properties'); + $table->json('responsive_images'); + $table->unsignedInteger('order_column')->nullable(); + + $table->nullableTimestamps(); + }); + } +} diff --git a/database/migrations/2020_05_20_105414_create_filters_table.php b/database/migrations/2020_05_20_105414_create_filters_table.php new file mode 100644 index 0000000..3ec45ac --- /dev/null +++ b/database/migrations/2020_05_20_105414_create_filters_table.php @@ -0,0 +1,31 @@ +increments('id'); + $table->string('title'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('filters'); + } +} diff --git a/database/migrations/2020_05_20_105543_create_versions_table.php b/database/migrations/2020_05_20_105543_create_versions_table.php new file mode 100644 index 0000000..dadeb42 --- /dev/null +++ b/database/migrations/2020_05_20_105543_create_versions_table.php @@ -0,0 +1,47 @@ +increments('id'); + $table->unsignedInteger('learning_product_id'); + $table->string('version_number')->nullable(); + $table->dateTime('release_start', 0)->nullable(); + $table->dateTime('release_end', 0)->nullable(); + $table->dateTime('release_planning_date', 0)->nullable(); + $table->longText('release_planning_description')->nullable(); + $table->longText('technical_information')->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::table('versions', function (Blueprint $table) { + $table->foreign('learning_product_id')->references('id')->on('learning_products'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('versions', function (Blueprint $table) { + $table->dropForeign('versions_learning_product_id_foreign'); + }); + + Schema::dropIfExists('versions'); + } +} diff --git a/database/migrations/2020_05_20_113018_create_filter_items_table.php b/database/migrations/2020_05_20_113018_create_filter_items_table.php new file mode 100644 index 0000000..90cc10e --- /dev/null +++ b/database/migrations/2020_05_20_113018_create_filter_items_table.php @@ -0,0 +1,42 @@ +increments('id'); + $table->unsignedInteger('filter_id'); + $table->string('title'); + $table->string('subtitle')->nullable(); + $table->string('color')->nullable(); + }); + + Schema::table('filter_items', function (Blueprint $table) { + $table->foreign('filter_id')->references('id')->on('filters'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('filter_items', function (Blueprint $table) { + $table->dropForeign('filter_items_filter_id_foreign'); + }); + + Schema::dropIfExists('filter_items'); + } +} diff --git a/database/migrations/2020_06_25_093338_create_filter_items_associations_table.php b/database/migrations/2020_06_25_093338_create_filter_items_associations_table.php new file mode 100644 index 0000000..e33ba57 --- /dev/null +++ b/database/migrations/2020_06_25_093338_create_filter_items_associations_table.php @@ -0,0 +1,47 @@ +increments('id'); + $table->unsignedInteger('filter_item_id'); + $table->integer('filter_items_associations_id'); + $table->string('filter_items_associations_type'); + $table->unique([ + 'filter_item_id', + 'filter_items_associations_id', + 'filter_items_associations_type' + ], 'filter_item_id_model_id_type_unique'); + $table->timestamps(); + }); + + Schema::table('filter_items_associations', function (Blueprint $table) { + $table->foreign('filter_item_id')->references('id')->on('filter_items'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('filter_items_associations', function (Blueprint $table) { + $table->dropForeign('filter_items_associations_filter_item_id_foreign'); + }); + + Schema::dropIfExists('filter_items_associations'); + } +} diff --git a/database/migrations/2020_07_23_154407_create_accreditations_table.php b/database/migrations/2020_07_23_154407_create_accreditations_table.php new file mode 100644 index 0000000..467caab --- /dev/null +++ b/database/migrations/2020_07_23_154407_create_accreditations_table.php @@ -0,0 +1,44 @@ +increments('id'); + $table->unsignedInteger('learning_product_id'); + $table->string('credits')->nullable(); + $table->dateTime('date_start', 0)->nullable(); + $table->dateTime('date_end', 0)->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::table('accreditations', function (Blueprint $table) { + $table->foreign('learning_product_id')->references('id')->on('learning_products')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('accreditations', function (Blueprint $table) { + $table->dropForeign('accreditations_learning_product_id_foreign'); + }); + + Schema::dropIfExists('accreditations'); + } +} diff --git a/database/migrations/2020_07_27_104731_create_course_notifications_table.php b/database/migrations/2020_07_27_104731_create_course_notifications_table.php new file mode 100644 index 0000000..5d57e44 --- /dev/null +++ b/database/migrations/2020_07_27_104731_create_course_notifications_table.php @@ -0,0 +1,46 @@ +id(); + $table->unsignedInteger('learning_product_id'); + $table->dateTime('date', 0)->nullable(); + $table->string('time', 0)->nullable(); + $table->string('subject')->nullable(); + $table->longText('message')->nullable(); + $table->json('emails'); + $table->json('users'); + $table->timestamps(); + }); + + Schema::table('course_notifications', function (Blueprint $table) { + $table->foreign('learning_product_id')->references('id')->on('learning_products')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('course_notifications', function (Blueprint $table) { + $table->dropForeign('course_notifications_learning_product_id_foreign'); + }); + + Schema::dropIfExists('course_notifications'); + } +} diff --git a/database/migrations/2020_08_03_115058_create_checklist_categories_table.php b/database/migrations/2020_08_03_115058_create_checklist_categories_table.php new file mode 100644 index 0000000..18b0668 --- /dev/null +++ b/database/migrations/2020_08_03_115058_create_checklist_categories_table.php @@ -0,0 +1,31 @@ +increments('id'); + $table->string('title'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('checklist_categories'); + } +} diff --git a/database/migrations/2020_08_03_120512_create_checklists_table.php b/database/migrations/2020_08_03_120512_create_checklists_table.php new file mode 100644 index 0000000..3508794 --- /dev/null +++ b/database/migrations/2020_08_03_120512_create_checklists_table.php @@ -0,0 +1,41 @@ +increments('id'); + $table->unsignedInteger('checklist_category_id'); + $table->string('title'); + $table->string('subtitle')->nullable(); + }); + + Schema::table('checklists', function (Blueprint $table) { + $table->foreign('checklist_category_id')->references('id')->on('checklist_categories'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('checklists', function (Blueprint $table) { + $table->dropForeign('checklists_checklist_category_id_foreign'); + }); + + Schema::dropIfExists('checklists'); + } +} diff --git a/database/migrations/2020_08_03_120531_create_checklist_versions_table.php b/database/migrations/2020_08_03_120531_create_checklist_versions_table.php new file mode 100644 index 0000000..74c433c --- /dev/null +++ b/database/migrations/2020_08_03_120531_create_checklist_versions_table.php @@ -0,0 +1,50 @@ +increments('id'); + $table->unsignedInteger('version_id'); + $table->unsignedInteger('checklist_id'); + $table->unsignedInteger('user_id'); + $table->unique([ + 'version_id', + 'checklist_id', + ], 'checklist_id_version_id_unique'); + $table->timestamps(); + }); + + Schema::table('checklist_versions', function (Blueprint $table) { + $table->foreign('version_id')->references('id')->on('versions'); + $table->foreign('checklist_id')->references('id')->on('checklists'); + $table->foreign('user_id')->references('id')->on('users'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('checklist_versions', function (Blueprint $table) { + $table->dropForeign('checklist_versions_version_id_foreign'); + $table->dropForeign('checklist_versions_checklist_id_foreign'); + $table->dropForeign('checklist_versions_user_id_foreign'); + }); + + Schema::dropIfExists('checklist_versions'); + } +} diff --git a/database/migrations/2020_09_15_104601_create_notifications_table.php b/database/migrations/2020_09_15_104601_create_notifications_table.php new file mode 100644 index 0000000..9797596 --- /dev/null +++ b/database/migrations/2020_09_15_104601_create_notifications_table.php @@ -0,0 +1,35 @@ +uuid('id')->primary(); + $table->string('type'); + $table->morphs('notifiable'); + $table->text('data'); + $table->timestamp('read_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('notifications'); + } +} diff --git a/database/migrations/2020_09_30_185253_create_synonyms_table.php b/database/migrations/2020_09_30_185253_create_synonyms_table.php new file mode 100644 index 0000000..89ee5ff --- /dev/null +++ b/database/migrations/2020_09_30_185253_create_synonyms_table.php @@ -0,0 +1,31 @@ +increments('id'); + $table->string('title'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('synonyms'); + } +} diff --git a/database/migrations/2020_10_01_205042_create_learning_product_synonym.php b/database/migrations/2020_10_01_205042_create_learning_product_synonym.php new file mode 100644 index 0000000..76df7bd --- /dev/null +++ b/database/migrations/2020_10_01_205042_create_learning_product_synonym.php @@ -0,0 +1,46 @@ +increments('id'); + $table->unsignedInteger('synonym_id'); + $table->unsignedInteger('learning_product_id'); + $table->unique([ + 'synonym_id', + 'learning_product_id', + ], 'synonym_id_learning_product_id_unique'); + }); + + Schema::table('learning_product_synonym', function (Blueprint $table) { + $table->foreign('synonym_id')->references('id')->on('synonyms')->onDelete('cascade'); + $table->foreign('learning_product_id')->references('id')->on('learning_products')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('learning_product_synonym', function (Blueprint $table) { + $table->dropForeign('learning_product_synonym_synonym_id_foreign'); + $table->dropForeign('learning_product_synonym_learning_product_id_foreign'); + }); + + Schema::dropIfExists('learning_product_synonym'); + } +} diff --git a/database/migrations/2020_10_06_070912_create_branches_table.php b/database/migrations/2020_10_06_070912_create_branches_table.php new file mode 100644 index 0000000..78d291c --- /dev/null +++ b/database/migrations/2020_10_06_070912_create_branches_table.php @@ -0,0 +1,32 @@ +increments('id'); + $table->string('title'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('branches'); + } +} diff --git a/database/migrations/2020_10_06_070913_create_members_table.php b/database/migrations/2020_10_06_070913_create_members_table.php new file mode 100644 index 0000000..dc3086d --- /dev/null +++ b/database/migrations/2020_10_06_070913_create_members_table.php @@ -0,0 +1,71 @@ +increments('id'); + $table->unsignedInteger('user_id'); + $table->unsignedInteger('branch_id')->nullable(); + $table->string('type'); + $table->string('informal_name')->nullable(); + $table->string('formal_name')->nullable(); + $table->string('kvk_number')->nullable(); + $table->string('website')->nullable(); + $table->string('logo')->nullable(); + $table->integer('b_cp')->nullable(); + $table->integer('b_cc')->nullable(); + $table->integer('kg_cp')->nullable(); + $table->integer('kg_cc')->nullable(); + $table->integer('av_cp')->nullable(); + $table->integer('av_cc')->nullable(); + $table->boolean('show_on_website')->default(false); + $table->string('helpdesk_department')->nullable(); + $table->string('helpdesk_contact_person')->nullable(); + $table->string('helpdesk_email')->nullable(); + $table->string('helpdesk_phone')->nullable(); + $table->string('info_department')->nullable(); + $table->string('info_contacteperson')->nullable(); + $table->string('info_email')->nullable(); + $table->string('info_phone')->nullable(); + $table->string('info_address')->nullable(); + $table->string('info_housenumber')->nullable(); + $table->string('info_postal')->nullable(); + $table->string('info_city')->nullable(); + $table->string('info_link')->nullable(); + $table->string('more_info_link')->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::table('members', function (Blueprint $table) { + $table->foreign('user_id')->references('id')->on('users'); + $table->foreign('branch_id')->references('id')->on('branches'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('members', function (Blueprint $table) { + $table->dropForeign('members_user_id_foreign'); + $table->dropForeign('members_branch_id_foreign'); + }); + + Schema::dropIfExists('members'); + } +} diff --git a/database/migrations/2020_10_19_093919_create_addresses_table.php b/database/migrations/2020_10_19_093919_create_addresses_table.php new file mode 100644 index 0000000..1662f4f --- /dev/null +++ b/database/migrations/2020_10_19_093919_create_addresses_table.php @@ -0,0 +1,51 @@ +increments('id'); + $table->unsignedInteger('member_id'); + $table->string('indicating')->nullable(); + $table->enum('type', ['main', 'visiting', 'invoice', 'other']); + $table->string('first_name_contact_person')->nullable(); + $table->string('last_name_contact_person')->nullable(); + $table->string('infix')->nullable(); + $table->string('email')->nullable(); + $table->string('address')->nullable(); + $table->string('postal')->nullable(); + $table->string('phone')->nullable(); + $table->string('city')->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::table('addresses', function (Blueprint $table) { + $table->foreign('member_id')->references('id')->on('members')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('addresses', function (Blueprint $table) { + $table->dropForeign('addresses_member_id_foreign'); + }); + + Schema::dropIfExists('addresses'); + } +} diff --git a/database/migrations/2020_10_20_175422_create_summaries_table.php b/database/migrations/2020_10_20_175422_create_summaries_table.php new file mode 100644 index 0000000..8d57495 --- /dev/null +++ b/database/migrations/2020_10_20_175422_create_summaries_table.php @@ -0,0 +1,44 @@ +increments('id'); + $table->unsignedInteger('member_id'); + $table->integer('year'); + $table->integer('real_number_last_year')->nullable(); + $table->integer('estimated_number_next_year')->nullable(); + $table->unique(['member_id', 'year']); + $table->timestamps(); + }); + + Schema::table('summaries', function (Blueprint $table) { + $table->foreign('member_id')->references('id')->on('members')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('summaries', function (Blueprint $table) { + $table->dropForeign('summaries_member_id_foreign'); + }); + + Schema::dropIfExists('summaries'); + } +} diff --git a/database/migrations/2020_11_03_190145_create_contacts_table.php b/database/migrations/2020_11_03_190145_create_contacts_table.php new file mode 100644 index 0000000..a18eda6 --- /dev/null +++ b/database/migrations/2020_11_03_190145_create_contacts_table.php @@ -0,0 +1,59 @@ +increments('id'); + $table->unsignedInteger('member_id'); + $table->string('function')->nullable(); + $table->string('salutation_cp')->nullable(); + $table->string('initials_cp')->nullable(); + $table->string('lastname_cp')->nullable(); + $table->string('email_cp')->nullable(); + $table->string('email2_cp')->nullable(); + $table->string('phone_cp')->nullable(); + $table->string('address_cp')->nullable(); + $table->string('postal_cp')->nullable(); + $table->string('city_cp')->nullable(); + $table->string('salutation_cc')->nullable(); + $table->string('initials_cc')->nullable(); + $table->string('lastname_cc')->nullable(); + $table->string('email_cc')->nullable(); + $table->string('email2_cc')->nullable(); + $table->string('phone_cc')->nullable(); + $table->string('address_cc')->nullable(); + $table->string('postal_cc')->nullable(); + $table->string('city_cc')->nullable(); + $table->timestamps(); + }); + + Schema::table('contacts', function (Blueprint $table) { + $table->foreign('member_id')->references('id')->on('members')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('contacts', function (Blueprint $table) { + $table->dropForeign('contacts_member_id_foreign'); + }); + + Schema::dropIfExists('contacts'); + } +} diff --git a/database/migrations/2020_11_10_120935_create_branch_members_table.php b/database/migrations/2020_11_10_120935_create_branch_members_table.php new file mode 100644 index 0000000..4a540a6 --- /dev/null +++ b/database/migrations/2020_11_10_120935_create_branch_members_table.php @@ -0,0 +1,46 @@ +increments('id'); + $table->unsignedInteger('branch_id'); + $table->unsignedInteger('member_id'); + $table->unique([ + 'branch_id', + 'member_id', + ], 'branch_id_member_id_unique'); + }); + + Schema::table('branch_members', function (Blueprint $table) { + $table->foreign('branch_id')->references('id')->on('branches')->onDelete('cascade'); + $table->foreign('member_id')->references('id')->on('members')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('branch_members', function (Blueprint $table) { + $table->dropForeign('branch_members_branch_id_foreign'); + $table->dropForeign('branch_members_member_id_foreign'); + }); + + Schema::dropIfExists('branch_members'); + } +} diff --git a/database/migrations/2020_11_11_180207_create_revisions_table.php b/database/migrations/2020_11_11_180207_create_revisions_table.php new file mode 100644 index 0000000..07d28d7 --- /dev/null +++ b/database/migrations/2020_11_11_180207_create_revisions_table.php @@ -0,0 +1,48 @@ +increments('id'); + $table->unsignedInteger('member_id')->unique(); + $table->unsignedInteger('user_id'); + $table->unsignedInteger('revisor_id')->nullable(); + $table->json('data'); + $table->timestamps(); + $table->timestamp('accepted_at')->nullable(); + }); + + Schema::table('revisions', function (Blueprint $table) { + $table->foreign('member_id')->references('id')->on('members')->onDelete('cascade'); + $table->foreign('user_id')->references('id')->on('users'); + $table->foreign('revisor_id')->references('id')->on('users'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('revisions', function (Blueprint $table) { + $table->dropForeign('revisions_member_id_foreign'); + $table->dropForeign('revisions_user_id_foreign'); + $table->dropForeign('revisions_revisor_id_foreign'); + }); + + Schema::dropIfExists('revisions'); + } +} diff --git a/database/migrations/2021_02_05_175646_add_quality_standards_to_learning_products.php b/database/migrations/2021_02_05_175646_add_quality_standards_to_learning_products.php new file mode 100644 index 0000000..989c269 --- /dev/null +++ b/database/migrations/2021_02_05_175646_add_quality_standards_to_learning_products.php @@ -0,0 +1,32 @@ +string('quality_standards')->after('target_audience')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('learning_products', function (Blueprint $table) { + $table->dropColumn('quality_standards'); + }); + } +} diff --git a/database/migrations/2021_02_15_220616_add_membership_fields_to_members_table.php b/database/migrations/2021_02_15_220616_add_membership_fields_to_members_table.php new file mode 100644 index 0000000..137dd81 --- /dev/null +++ b/database/migrations/2021_02_15_220616_add_membership_fields_to_members_table.php @@ -0,0 +1,38 @@ +dateTime('start_membership', 0)->after('kvk_number')->nullable(); + $table->dateTime('end_membership', 0)->after('start_membership')->nullable(); + $table->string('contribution')->after('end_membership')->nullable(); + $table->string('invoice_number')->after('contribution')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('members', function (Blueprint $table) { + $table->dropColumn('start_membership'); + $table->dropColumn('end_membership'); + $table->dropColumn('contribution'); + $table->dropColumn('invoice_number'); + }); + } +} diff --git a/database/migrations/2021_02_16_134803_add_fields_to_addresses_table.php b/database/migrations/2021_02_16_134803_add_fields_to_addresses_table.php new file mode 100644 index 0000000..8ccda13 --- /dev/null +++ b/database/migrations/2021_02_16_134803_add_fields_to_addresses_table.php @@ -0,0 +1,58 @@ +string('title_contact_person')->after('last_name_contact_person')->nullable(); + $table->string('initials_contact_person')->after('title_contact_person')->nullable(); + $table->string('middle_name_contact_person')->after('initials_contact_person')->nullable(); + $table->string('job_title_contact_person')->after('middle_name_contact_person')->nullable(); + $table->string('house_number')->after('address')->nullable(); + $table->string('country')->after('city')->nullable(); + + $table->string('title_representative')->after('country')->nullable(); + $table->string('initials_representative')->after('title_representative')->nullable(); + $table->string('first_name_representative')->after('initials_representative')->nullable(); + $table->string('middle_name_representative')->after('first_name_representative')->nullable(); + $table->string('last_name_representative')->after('middle_name_representative')->nullable(); + $table->string('email_representative')->after('last_name_representative')->nullable(); + $table->string('job_title_representative')->after('email_representative')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('addresses', function (Blueprint $table) { + $table->dropColumn('title_contact_person'); + $table->dropColumn('initials_contact_person'); + $table->dropColumn('middle_name_contact_person'); + $table->dropColumn('job_title_contact_person'); + $table->dropColumn('house_number'); + $table->dropColumn('country'); + + $table->dropColumn('title_representative'); + $table->dropColumn('initials_representative'); + $table->dropColumn('first_name_representative'); + $table->dropColumn('middle_name_representative'); + $table->dropColumn('last_name_representative'); + $table->dropColumn('email_representative'); + $table->dropColumn('job_title_representative'); + }); + } +} diff --git a/database/migrations/2021_02_16_165823_add_fields_to_contacts_table.php b/database/migrations/2021_02_16_165823_add_fields_to_contacts_table.php new file mode 100644 index 0000000..769903c --- /dev/null +++ b/database/migrations/2021_02_16_165823_add_fields_to_contacts_table.php @@ -0,0 +1,56 @@ +string('firstname_cp')->after('city_cp')->nullable(); + $table->string('middlename_cp')->after('firstname_cp')->nullable(); + $table->string('job_title_cp')->after('middlename_cp')->nullable(); + $table->string('email3_cp')->after('job_title_cp')->nullable(); + $table->string('mobile_cp')->after('email3_cp')->nullable(); + $table->string('house_number_cp')->after('mobile_cp')->nullable(); + + $table->string('firstname_cc')->after('city_cc')->nullable(); + $table->string('middlename_cc')->after('firstname_cc')->nullable(); + $table->string('job_title_cc')->after('middlename_cc')->nullable(); + $table->string('email3_cc')->after('job_title_cc')->nullable(); + $table->string('mobile_cc')->after('email3_cc')->nullable(); + $table->string('house_number_cc')->after('mobile_cc')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('contacts', function (Blueprint $table) { + $table->dropColumn('firstname_cp'); + $table->dropColumn('middlename_cp'); + $table->dropColumn('job_title_cp'); + $table->dropColumn('email3_cp'); + $table->dropColumn('mobile_cp'); + $table->dropColumn('house_number_cp'); + + $table->dropColumn('firstname_cc'); + $table->dropColumn('middlename_cc'); + $table->dropColumn('job_title_cc'); + $table->dropColumn('email3_cc'); + $table->dropColumn('mobile_cc'); + $table->dropColumn('house_number_cc'); + }); + } +} diff --git a/database/migrations/2021_03_01_224204_add_sent_to_course_notifications_table.php b/database/migrations/2021_03_01_224204_add_sent_to_course_notifications_table.php new file mode 100644 index 0000000..6720864 --- /dev/null +++ b/database/migrations/2021_03_01_224204_add_sent_to_course_notifications_table.php @@ -0,0 +1,32 @@ +boolean('sent')->after('users')->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('course_notifications', function (Blueprint $table) { + $table->dropColumn('sent'); + }); + } +} diff --git a/database/migrations/2021_03_05_224107_create_jobs_table.php b/database/migrations/2021_03_05_224107_create_jobs_table.php new file mode 100644 index 0000000..1be9e8a --- /dev/null +++ b/database/migrations/2021_03_05_224107_create_jobs_table.php @@ -0,0 +1,36 @@ +bigIncrements('id'); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedTinyInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('jobs'); + } +} diff --git a/database/migrations/2021_03_23_143422_add_approvated_field_to_member_childrens.php b/database/migrations/2021_03_23_143422_add_approvated_field_to_member_childrens.php new file mode 100644 index 0000000..a4b583c --- /dev/null +++ b/database/migrations/2021_03_23_143422_add_approvated_field_to_member_childrens.php @@ -0,0 +1,57 @@ +timestamp('approved_at')->after('estimated_number_next_year')->nullable()->default(null); + $table->unsignedInteger('revisor_id')->after('estimated_number_next_year')->nullable(); + $table->foreign('revisor_id')->references('id')->on('users'); + }); + + Schema::table('contacts', function (Blueprint $table) { + $table->timestamp('approved_at')->after('house_number_cc')->nullable()->default(null); + $table->unsignedInteger('revisor_id')->after('house_number_cc')->nullable(); + $table->foreign('revisor_id')->references('id')->on('users'); + }); + + Schema::table('addresses', function (Blueprint $table) { + $table->timestamp('approved_at')->after('job_title_representative')->nullable()->default(null); + $table->unsignedInteger('revisor_id')->after('job_title_representative')->nullable(); + $table->foreign('revisor_id')->references('id')->on('users'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('summaries', function (Blueprint $table) { + $table->dropColumn('approved_at'); + $table->dropForeign('summaries_revisor_id_foreign'); + }); + + Schema::table('contacts', function (Blueprint $table) { + $table->dropColumn('approved_at'); + $table->dropForeign('contacts_revisor_id_foreign'); + }); + + Schema::table('addresses', function (Blueprint $table) { + $table->dropColumn('approved_at'); + $table->dropForeign('addresses_revisor_id_foreign'); + }); + } +} diff --git a/database/migrations/2021_05_22_204435_create_management_links_table.php b/database/migrations/2021_05_22_204435_create_management_links_table.php new file mode 100644 index 0000000..9c8a8de --- /dev/null +++ b/database/migrations/2021_05_22_204435_create_management_links_table.php @@ -0,0 +1,36 @@ +id(); + $table->unsignedInteger('member_id'); + $table->string('title')->nullable(); + $table->text('url')->nullable(); + $table->enum('target', ['blank', 'self']); + $table->timestamps(); + $table->softDeletes(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('management_links'); + } +} diff --git a/database/migrations/2021_07_29_172540_add_link_to_filter_items_table.php b/database/migrations/2021_07_29_172540_add_link_to_filter_items_table.php new file mode 100644 index 0000000..88ca0e5 --- /dev/null +++ b/database/migrations/2021_07_29_172540_add_link_to_filter_items_table.php @@ -0,0 +1,32 @@ +string('link')->after('color')->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('filter_items', function (Blueprint $table) { + $table->dropColumn('link'); + }); + } +} diff --git a/database/migrations/2021_08_12_091242_rename_functions_in_contacts_table.php b/database/migrations/2021_08_12_091242_rename_functions_in_contacts_table.php new file mode 100644 index 0000000..a3b7672 --- /dev/null +++ b/database/migrations/2021_08_12_091242_rename_functions_in_contacts_table.php @@ -0,0 +1,35 @@ +update(['function' => 'Bestuurder']); + + Contact::where('function', 'Klankbordgroepleden') + ->update(['function' => 'Klankbordgroeplid']); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Contact::where('function', 'Bestuurder') + ->update(['function' => 'Bestuurders']); + + Contact::where('function', 'Klankbordgroeplid') + ->update(['function' => 'Klankbordgroepleden']); + } +} diff --git a/database/migrations/2021_08_13_091011_add_info_country_to_members_table.php b/database/migrations/2021_08_13_091011_add_info_country_to_members_table.php new file mode 100644 index 0000000..6d71c27 --- /dev/null +++ b/database/migrations/2021_08_13_091011_add_info_country_to_members_table.php @@ -0,0 +1,32 @@ +string('info_country')->after('info_city')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('members', function (Blueprint $table) { + $table->dropColumn('info_country'); + }); + } +} diff --git a/database/migrations/2021_08_13_104032_create_contributions_table.php b/database/migrations/2021_08_13_104032_create_contributions_table.php new file mode 100644 index 0000000..893cc4d --- /dev/null +++ b/database/migrations/2021_08_13_104032_create_contributions_table.php @@ -0,0 +1,43 @@ +increments('id'); + $table->unsignedInteger('member_id'); + $table->integer('year'); + $table->string('contribution')->nullable(); + $table->unique(['member_id', 'year']); + $table->timestamps(); + }); + + Schema::table('contributions', function (Blueprint $table) { + $table->foreign('member_id')->references('id')->on('members')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('summaries', function (Blueprint $table) { + $table->dropForeign('contributions_member_id_foreign'); + }); + + Schema::dropIfExists('contributions'); + } +} diff --git a/database/migrations/2021_08_17_160939_add_approvated_fields_to_contributions_table.php b/database/migrations/2021_08_17_160939_add_approvated_fields_to_contributions_table.php new file mode 100644 index 0000000..9e5a791 --- /dev/null +++ b/database/migrations/2021_08_17_160939_add_approvated_fields_to_contributions_table.php @@ -0,0 +1,35 @@ +unsignedInteger('revisor_id')->after('contribution')->nullable(); + $table->timestamp('approved_at')->after('revisor_id')->nullable()->default(null); + $table->foreign('revisor_id')->references('id')->on('users'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('contributions', function (Blueprint $table) { + $table->dropColumn('approved_at'); + $table->dropForeign('contributions_revisor_id_foreign'); + }); + } +} diff --git a/database/migrations/2021_08_26_095858_delete_representative_fields_from_addresses_table.php b/database/migrations/2021_08_26_095858_delete_representative_fields_from_addresses_table.php new file mode 100644 index 0000000..d61d48d --- /dev/null +++ b/database/migrations/2021_08_26_095858_delete_representative_fields_from_addresses_table.php @@ -0,0 +1,44 @@ +dropColumn('title_representative'); + $table->dropColumn('initials_representative'); + $table->dropColumn('first_name_representative'); + $table->dropColumn('middle_name_representative'); + $table->dropColumn('last_name_representative'); + $table->dropColumn('email_representative'); + $table->dropColumn('job_title_representative'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('addresses', function (Blueprint $table) { + $table->string('title_representative')->after('country')->nullable(); + $table->string('initials_representative')->after('title_representative')->nullable(); + $table->string('first_name_representative')->after('initials_representative')->nullable(); + $table->string('middle_name_representative')->after('first_name_representative')->nullable(); + $table->string('last_name_representative')->after('middle_name_representative')->nullable(); + $table->string('email_representative')->after('last_name_representative')->nullable(); + $table->string('job_title_representative')->after('email_representative')->nullable(); + }); + } +} diff --git a/database/migrations/2021_08_26_123159_alter_type_in_members_table.php b/database/migrations/2021_08_26_123159_alter_type_in_members_table.php new file mode 100644 index 0000000..b5e9f16 --- /dev/null +++ b/database/migrations/2021_08_26_123159_alter_type_in_members_table.php @@ -0,0 +1,57 @@ +dropColumn('type'); + }); + + Schema::table('members', function (Blueprint $table) { + $enumChoices = range(self::MEMBER_TYPE_ENUM_FIRST, self::MEMBER_TYPE_ENUM_LAST); + $table->enum('type', $enumChoices) + ->default(self::MEMBER_TYPE_VALUE_DEFAULT) + ->after(self::MEMBER_TYPE_POSITION_AFTER); + }); + + DB::table('members') + ->whereNull('type') + ->update(['type' => self::MEMBER_TYPE_VALUE_DEFAULT]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('members', function (Blueprint $table) { + $table->string('type')->change(); + }); + + DB::table('members')->update(['type' => self::MEMBER_TYPE_VALUE_OLD]); + } +} diff --git a/database/migrations/2021_08_26_124838_delete_some_cc_and_cp_addresses_fields_from_contacts_table.php b/database/migrations/2021_08_26_124838_delete_some_cc_and_cp_addresses_fields_from_contacts_table.php new file mode 100644 index 0000000..5d74ccf --- /dev/null +++ b/database/migrations/2021_08_26_124838_delete_some_cc_and_cp_addresses_fields_from_contacts_table.php @@ -0,0 +1,48 @@ +dropColumn('address_cp'); + $table->dropColumn('house_number_cp'); + $table->dropColumn('postal_cp'); + $table->dropColumn('city_cp'); + + $table->dropColumn('address_cc'); + $table->dropColumn('house_number_cc'); + $table->dropColumn('postal_cc'); + $table->dropColumn('city_cc'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('contacts', function (Blueprint $table) { + $table->string('address_cp')->nullable(); + $table->string('house_number_cp')->after('mobile_cp')->nullable(); + $table->string('postal_cp')->nullable(); + $table->string('city_cp')->nullable(); + + $table->string('address_cc')->nullable(); + $table->string('house_number_cc')->after('mobile_cc')->nullable(); + $table->string('postal_cc')->nullable(); + $table->string('city_cc')->nullable(); + }); + } +} diff --git a/database/migrations/2021_08_26_173117_add_address_id_to_contacts_table.php b/database/migrations/2021_08_26_173117_add_address_id_to_contacts_table.php new file mode 100644 index 0000000..2711630 --- /dev/null +++ b/database/migrations/2021_08_26_173117_add_address_id_to_contacts_table.php @@ -0,0 +1,33 @@ +unsignedInteger('address_id')->after('revisor_id')->nullable(); + $table->foreign('address_id')->references('id')->on('addresses'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('contacts', function (Blueprint $table) { + $table->dropForeign('contacts_address_id_foreign'); + }); + } +} diff --git a/database/migrations/2021_08_27_115256_delete_and_rename_fields_from_contacts_table.php b/database/migrations/2021_08_27_115256_delete_and_rename_fields_from_contacts_table.php new file mode 100644 index 0000000..5649cf8 --- /dev/null +++ b/database/migrations/2021_08_27_115256_delete_and_rename_fields_from_contacts_table.php @@ -0,0 +1,81 @@ +renameColumn('salutation_cp', 'firstname'); + $table->renameColumn('firstname_cp', 'salutation'); + $table->renameColumn('initials_cp', 'middlename'); + $table->renameColumn('middlename_cp', 'initials'); + + $table->renameColumn('lastname_cp', 'lastname'); + $table->renameColumn('email_cp', 'email'); + $table->renameColumn('email2_cp', 'email2'); + $table->renameColumn('phone_cp', 'phone'); + $table->renameColumn('job_title_cp', 'job_title'); + $table->renameColumn('email3_cp', 'email3'); + $table->renameColumn('mobile_cp', 'mobile'); + + $table->dropColumn('salutation_cc'); + $table->dropColumn('initials_cc'); + $table->dropColumn('lastname_cc'); + // $table->dropColumn('email_cc'); // rename to email2? + $table->dropColumn('email2_cc'); + $table->dropColumn('email3_cc'); + $table->dropColumn('phone_cc'); + $table->dropColumn('firstname_cc'); + $table->dropColumn('middlename_cc'); + $table->dropColumn('job_title_cc'); + $table->dropColumn('mobile_cc'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('contacts', function (Blueprint $table) { + $table->renameColumn('salutation', 'salutation_cp'); + $table->renameColumn('initials', 'initials_cp'); + $table->renameColumn('lastname', 'lastname_cp'); + $table->renameColumn('email', 'email_cp'); + $table->renameColumn('email2', 'email2_cp'); + $table->renameColumn('phone', 'phone_cp'); + $table->renameColumn('firstname', 'firstname_cp'); + $table->renameColumn('middlename', 'middlename_cp'); + $table->renameColumn('job_title', 'job_title_cp'); + $table->renameColumn('email3', 'email3_cp'); + $table->renameColumn('mobile', 'mobile_cp'); + + $table->string('salutation_cc')->nullable(); + $table->string('initials_cc')->nullable(); + $table->string('lastname_cc')->nullable(); + // $table->string('email_cc')->nullable(); + $table->string('email2_cc')->nullable(); + $table->string('phone_cc')->nullable(); + $table->string('firstname_cc')->nullable(); + $table->string('middlename_cc')->nullable(); + $table->string('job_title_cc')->nullable(); + $table->string('email3_cc')->nullable(); + $table->string('mobile_cc')->nullable(); + + }); + } +} diff --git a/database/migrations/2021_08_31_152727_add_super_admin_entry_to_roles_table.php b/database/migrations/2021_08_31_152727_add_super_admin_entry_to_roles_table.php new file mode 100644 index 0000000..157f31d --- /dev/null +++ b/database/migrations/2021_08_31_152727_add_super_admin_entry_to_roles_table.php @@ -0,0 +1,58 @@ +unique('name', 'roles_name_unique'); + }); + + $user = User::where('email', 'kees@ggzecademy.nl')->with(['roles'])->first(); + + // FIXME: move elsewhere, never run right now if things are set up properly + if (!is_null($user)) { + $super_admin_role = Role::create(['name' => 'super_admin', 'color' => 'black']); + $admin_role = Role::where('name', 'admin')->first(); + $operator_role = Role::where('name', 'operator')->first(); + $user_role = Role::where('name', 'user')->first(); + + $user->roles()->sync([ + $super_admin_role->id, + $admin_role->id, + $operator_role->id, + $user_role->id + ]); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('roles', function ($table) { + $table->dropUnique('roles_name_unique'); + }); + + // Delete all role_user records with super admin role_id + $admin_role = Role::where('name', 'super_admin')->first(); + DB::table('role_user')->where('role_id', $admin_role->id)->delete(); + + // Delete super admin role + $admin_role->delete(); + } +} diff --git a/database/migrations/2022_01_07_145123_add_for_members_to_learning_products_table.php b/database/migrations/2022_01_07_145123_add_for_members_to_learning_products_table.php new file mode 100644 index 0000000..6288255 --- /dev/null +++ b/database/migrations/2022_01_07_145123_add_for_members_to_learning_products_table.php @@ -0,0 +1,32 @@ +boolean('for_members')->after('support_tickets_link')->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('learning_products', function (Blueprint $table) { + $table->dropColumn('for_members'); + }); + } +} diff --git a/database/migrations/2022_03_01_121923_make_for_member_nullable_on_learning_products_table.php b/database/migrations/2022_03_01_121923_make_for_member_nullable_on_learning_products_table.php new file mode 100644 index 0000000..c8fb6d7 --- /dev/null +++ b/database/migrations/2022_03_01_121923_make_for_member_nullable_on_learning_products_table.php @@ -0,0 +1,32 @@ +integer('for_members')->unsigned()->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('learning_products', function (Blueprint $table) { + $table->integer('for_members')->unsigned()->nullable(false)->change(); + }); + } +} diff --git a/database/migrations/2022_05_23_133500_add_thirdy_part_training_to_learning_products.php b/database/migrations/2022_05_23_133500_add_thirdy_part_training_to_learning_products.php new file mode 100644 index 0000000..f5edf2c --- /dev/null +++ b/database/migrations/2022_05_23_133500_add_thirdy_part_training_to_learning_products.php @@ -0,0 +1,32 @@ +boolean('third_party_training')->after('for_members')->unsigned()->nullable()->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('learning_products', function (Blueprint $table) { + $table->dropColumn('third_party_training'); + }); + } +} diff --git a/database/migrations/2022_07_05_192100_add_value_to_enum_type_field_in_addresses.php b/database/migrations/2022_07_05_192100_add_value_to_enum_type_field_in_addresses.php new file mode 100644 index 0000000..f726712 --- /dev/null +++ b/database/migrations/2022_07_05_192100_add_value_to_enum_type_field_in_addresses.php @@ -0,0 +1,32 @@ +id(); + $table->unsignedInteger('member_id'); + $table->unsignedInteger('user_id'); + + $table->foreign('member_id')->references('id')->on('members'); + $table->foreign('user_id')->references('id')->on('users'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('member_users'); + } +} diff --git a/database/migrations/2022_10_13_204614_migrate_user_id_column_from_members_table.php b/database/migrations/2022_10_13_204614_migrate_user_id_column_from_members_table.php new file mode 100644 index 0000000..b361094 --- /dev/null +++ b/database/migrations/2022_10_13_204614_migrate_user_id_column_from_members_table.php @@ -0,0 +1,73 @@ +users()->attach($member->user_id); + } + + Schema::table('members', function (Blueprint $table) { + $table->dropForeign('members_user_id_foreign'); + $table->dropColumn('user_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + if (!Schema::hasColumn('members', 'user_id')) { + Schema::table('members', function (Blueprint $table) { + $table->unsignedInteger('user_id')->nullable()->after('id'); + $table->foreign('user_id')->references('id')->on('users'); + }); + } + + $memberUserAll = DB::table('member_users') + ->select(['member_id', 'user_id']) + ->get(); + + foreach ($memberUserAll as $memberUser) { + Assert::notNull($memberUser->user_id); + } + + foreach ($memberUserAll as $memberUser) { + Member::findOrFail($memberUser->member_id) + ->update(['user_id' => $memberUser->user_id]); + } + + $amountMemberWithoutUser = DB::table('members') + ->select('id') + ->whereNull('user_id') + ->count(); + Assert::eq( + $amountMemberWithoutUser, + 0, + sprintf( + 'Found %d member(s) without an attached user, expected 0.', + $amountMemberWithoutUser, + ), + ); + + Schema::table('members', function (Blueprint $table) { + $table->unsignedInteger('user_id')->nullable(false)->change(); + }); + } +} diff --git a/database/migrations/2022_10_14_115355_add_unique_index_to_member_users_table.php b/database/migrations/2022_10_14_115355_add_unique_index_to_member_users_table.php new file mode 100644 index 0000000..b21248e --- /dev/null +++ b/database/migrations/2022_10_14_115355_add_unique_index_to_member_users_table.php @@ -0,0 +1,37 @@ +unique(['member_id', 'user_id']); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('member_users', function (Blueprint $table) { + $table->dropForeign(['member_id']); + $table->dropForeign(['user_id']); + $table->dropUnique(['member_id', 'user_id']); + $table->foreign('member_id')->references('id')->on('members'); + $table->foreign('user_id')->references('id')->on('users'); + }); + } +} diff --git a/database/migrations/2022_10_14_171043_alter_columns_in_member_users_table_to_cascade_on_delete.php b/database/migrations/2022_10_14_171043_alter_columns_in_member_users_table_to_cascade_on_delete.php new file mode 100644 index 0000000..8c9690b --- /dev/null +++ b/database/migrations/2022_10_14_171043_alter_columns_in_member_users_table_to_cascade_on_delete.php @@ -0,0 +1,46 @@ +dropForeign(['member_id']); + $table->foreign(['member_id']) + ->references('id') + ->on('members') + ->cascadeOnDelete(); + + $table->dropForeign(['user_id']); + $table->foreign(['user_id']) + ->references('id') + ->on('users') + ->cascadeOnDelete(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('member_users', function (Blueprint $table) { + $table->dropForeign(['member_id']); + $table->foreign(['member_id'])->references('id')->on('members'); + + $table->dropForeign(['user_id']); + $table->foreign(['user_id'])->references('id')->on('users'); + }); + } +} diff --git a/database/migrations/2025_05_26_215523_add_voor_opleiders_to_learning_products_table.php b/database/migrations/2025_05_26_215523_add_voor_opleiders_to_learning_products_table.php new file mode 100644 index 0000000..4aa2ea9 --- /dev/null +++ b/database/migrations/2025_05_26_215523_add_voor_opleiders_to_learning_products_table.php @@ -0,0 +1,32 @@ +boolean('voor_opleiders')->default(false)->after('third_party_training'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('learning_products', function (Blueprint $table) { + $table->dropColumn('voor_opleiders'); + }); + } +} \ No newline at end of file diff --git a/database/seeds/BranchSeeder.php b/database/seeds/BranchSeeder.php new file mode 100644 index 0000000..5201371 --- /dev/null +++ b/database/seeds/BranchSeeder.php @@ -0,0 +1,41 @@ +branchService = $branchService; + } + + /** + * Run the database seeds. + * + * @return void + */ + public function run() + { + $branches = [ + "Begeleid wonen", + "Forensische zorg", + "Kinder- en jeugdpsychiatrie", + "LVB-SGLVG", + "mbo's en hbo's", + "Specialistische ggz", + "Verslavingszorg", + "vLOGO", + ]; + + foreach ($branches as $branch) { + + $new_branch = $this->branchService->save(['title' => $branch]); + + } + } +} diff --git a/database/seeds/ChecklistSeeder.php b/database/seeds/ChecklistSeeder.php new file mode 100644 index 0000000..d75ad48 --- /dev/null +++ b/database/seeds/ChecklistSeeder.php @@ -0,0 +1,159 @@ +checklistCategoryService = $checklistCategoryService; + $this->checklistService = $checklistService; + } + + /** + * Run the database seeds. + * + * @return void + */ + public function run() + { + $checklists = [ + [ + 'title' => 'Akkoord', + 'items' => [ + 'Inhoudelijk', + 'Technisch', + 'Totaal' + ] + ], + [ + 'title' => 'Oplevering ontwikkelomgeving', + 'items' => [ + 'Statusletter aanpassen', + 'Publiceren', + 'Extern ID aanpassen', + 'PE Online ID ingevuld', + ] + ], + [ + 'title' => 'Voor oplevering', + 'items' => [ + 'Releasenote op support plaatsen', + 'Toetsvragen beveiligen', + 'Toetsvragen in productinfo op support plaatsen', + 'Productinfo (incl blauwdruk) op support plaatsen ', + 'Info voor catalogusproduct maken (tegeltekst n evt. toelichting)', + 'Implementatie-info op support plaatsen', + 'Akkoordmelding leverancier + versturen opleverdocument', + ] + ], + [ + 'title' => 'Beschikbaar stellen leden ontwikkelomgeving', + 'items' => [ + 'Beschikbaar stellen in subomgeving van alle leden type A, B of C', + 'Beschikbaar stellen in subomgeving van alle leden type E', + 'Uitvoering maken en beschikbaar stellen in ‘inkijkexemplaar’', + 'Uitvoering en catalogusproduct maken en beschikbaar stellen in ‘leeromgeving voor derden’', + 'Beschikbaar stellen in subomgeving van leden type D en docentenomgeving', + ] + ], + [ + 'title' => 'Productcatalogus en -monitor', + 'items' => [ + 'Productinfo plaatsen in productcatalogus', + 'Verplaatsen uit ’In ontwikkeling’', + 'Controleren of de juiste informatie is doorgevoerd in de productadministratie/ op support', + 'Evt. forumberichten onder ‘Leerproducten in ontwikkeling’ verplaatsen', + ] + ], + [ + 'title' => 'Communicatie', + 'items' => [ + 'CLP nieuwsflits naar beheerders van subomgevingen en medewerkers GGZ Ecademy', + 'E-mail naar functioneel beheer scholen met -indien van toepassing- LTI gegevens', + 'Bericht voor infomail', + 'Bericht op site evt. SM', + 'Bericht in nieuwsbrief', + ] + ], + [ + 'title' => 'Blauwdruk en trailer', + 'items' => [ + 'Aangepaste blauwdruk ontvangen', + 'Vragenlijst/ Voice-over trailer goedgekeurd', + 'Trailer ontvangen van leverancier', + 'Trailer plaatsen op mediasite', + 'Trailer plaatsen in product-catalogus van website', + 'Trailer plaatsen in catalogus van inkijkexemplaar in aNS', + 'Trailer in product-informatie op support', + ] + ], + [ + 'title' => 'Bestandsbeheer', + 'items' => [ + 'Opleverdocument leverancier checken', + 'Ontvangen bronbestanden op de juiste plek neerzetten ', + 'Catalogus- en banner afbeelding', + 'SP-mappen opschonen', + 'Oude, niet gepubliceerde templates archiveren (uitvoeringen einddatum instellen)', + ] + ], + [ + 'title' => 'Accreditatie', + 'items' => [ + 'Accreditatieinfo aanvragen + op een rij zetten', + 'Accreditatie-overzicht updaten', + 'Accreditatie-overzicht op support zetten', + 'Info over accreditatie toevoegen aan product-catalogus', + ] + ], + [ + 'title' => 'Na afloop', + 'items' => [ + 'Terugkoppelen bevindingen naar melder', + 'Afhandelen bevindingen/ tickets in FD', + 'Evaluatie inplannen', + ] + ], + ]; + + foreach ($checklists as $checklist) { + + // Create category + $category = $this->checklistCategoryService->save(Arr::except($checklist, ['items'])); + + // Create checklist items to attach to that category + if (isset($checklist['items'])) { + + foreach ($checklist['items'] as $item) { + + $data = []; + + if (is_string($item)) { + $data = [ + 'title' => $item, + 'checklist_category_id' => $category->id + ]; + } elseif (Arr::isAssoc($item)) { + + foreach ($item as $key => $value) { + $data[$key] = $value; + } + + $data['checklist_category_id'] = $category->id; + } + + $new_checklist = $this->checklistService->save($data); + } + } + } + } +} diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php new file mode 100644 index 0000000..8984cf0 --- /dev/null +++ b/database/seeds/DatabaseSeeder.php @@ -0,0 +1,28 @@ +call(GlobalDbImportSeeder::class); + + $this->call([ + ChecklistSeeder::class, + RolesTableSeeder::class, + UserSeeder::class, + FilterSeeder::class, + SynonymSeeder::class, + LearningProductSeeder::class, + MemberSeeder::class + //BranchSeeder::class, + ]); + } +} diff --git a/database/seeds/FilterSeeder.php b/database/seeds/FilterSeeder.php new file mode 100644 index 0000000..ad51137 --- /dev/null +++ b/database/seeds/FilterSeeder.php @@ -0,0 +1,163 @@ +filterService = $filterService; + $this->filterItemService = $filterItemService; + } + + /** + * Run the database seeds. + * + * @return void + */ + public function run() + { + $filters = [ + [ + 'title' => 'category', + 'items' => [ + 'Ambulantisering', 'Forensisch', 'Geneesmiddelen en somatiek', 'Herstel', 'Methodieken', 'Professioneel handelen', 'Professionele attitude', 'Psychopathologie', 'Suïcidepreventie', 'Voorbehouden handelingen', 'Wetgeving' + ] + ], + [ + 'title' => 'audience', + 'items' => [ + 'Aandachtsfunctionarissen', 'Agogen', 'Ambulant begeleider', 'Artsen', 'Behandelaren', 'Cognitief gedragstherapeuten', 'Cognitief gedragstherapeutisch werkers', 'ervaringsdeskundigen', 'ervaringswerkers', + 'gezondheidstherapeuten', 'groepsbegeleiders', 'groepswerkers', 'GZ psychologen', 'jongerenwerkers', 'klinisch psychologen', 'leerling verpleegkundigen', 'maatschappelijk werkers', 'orthopedagogen', + 'pedagogen', 'persoonlijk begeleiders', 'physician assistants', 'POH GGZ', 'psychiaters', 'psychologen', 'psychotherapeuten', 'schuldhulpverleners', 'sociaal pedagogisch hulpverleners', 'sociaal psychiatrisch verpleegkundigen', + 'social worker', 'sociotherapeuten', 'trainers', 'vaktherapeuten', 'verpleegkundig specialisten', 'verpleegkundigen', 'verzorgenden', 'woonbegeleiders', 'zorg behandel inrichtingswerkers' + ] + ], + [ + 'title' => 'format_version', + 'items' => [ + 'option-A', + 'option-B', + ] + ], + [ + 'title' => 'course', + 'items' => [ + 'Forensische leerlijn', 'LVB', 'Zichtbaar vakmanschap' + ] + ], + [ + 'title' => 'level', + 'items' => [ + 'MBO', 'MBO 3/4', 'MBO 4', 'HBO', 'HBO+Master', 'WO', 'NLQF 6' + ] + ], + [ + 'title' => 'developers' + ], + [ + 'title' => + 'dev_environment', + 'items' => [ + 'aNS' + ] + ], + [ + 'title' => 'product_type', + 'items' => [ + 'Leertraject' + ] + ], + [ + 'title' => 'made_by', + 'items' => [ + 'Danaë' + ] + ], + [ + 'title' => 'register', + 'items' => [ + 'ABAN', 'Accreditatiebureau Cluster 123', 'FGZpT', 'In aanvraag', 'Kwaliteitsregister POH-GGZ', 'Kwaliteitsregister Psychotherapie NVP', 'Kwaliteitsregister V&V', 'NIP A&O | NIP A&G', 'NIP Eerstelijnspsychologen', ' NIP Kinder- en Jeugdpsycholoog (K&J) / NVO Orthopedagoog-Generalist (OG)', 'NIP-Lichaamsgericht Werkend Psycholoog', 'NIP-Neurofeedbackpsycholoog', 'NIP-Psycholoog Mediator', 'nvt', 'NVvp', 'Register Vaktherapie', 'Registerplein', 'SKJ', 'Verpleegkundig Specialisten Register', 'VVGN' + ] + ], + [ + 'title' => 'status', + 'items' => [ + ['title' => 'Geprioriteerd', 'color' => '#19DB7A'], + ['title' => 'In ontwikkeling', 'color' => '#F5AB00'], + ['title' => 'Opgeleverd', 'color' => '#31B8CE'], + ['title' => 'Test', 'color' => '#FFFF7E'], + ['title' => 'Vervallen - actief', 'color' => '#6F7782'], + ['title' => 'Vervallen - niet-actief', 'color' => '#000000'], + ] + ], + [ + 'title' => 'theme', + 'items' => [ + 'Ambulantisering', 'Eigen regie', 'Medicatie bij psychiatrische aandoeningen', 'Meldcode Kindermishandeling en Kindcheck', 'Psychopathologie', 'Suïcidepreventie' + ] + ], + [ + 'title' => 'type', + 'items' => [ + [ + 'title' => 'GGZ-instellingen', + // 'subtitle' => 'type A,B,C' + ], + [ + 'title' => 'Scholen', + // 'subtitle' => 'type D' + ], + [ + 'title' => 'vLOGO onderwijs', + // 'subtitle' => 'type E' + ], + 'Gratis' + ] + ], + [ + 'title' => 'quality_standards', + 'items' => [ + 'option_1', + 'option_2', + 'option_3', + ] + ], + ]; + + foreach ($filters as $filter) { + + $new_filter = $this->filterService->save(Arr::except($filter, ['items'])); + + if (isset($filter['items'])) { + + foreach ($filter['items'] as $item) { + + $data = []; + + if (is_string($item)) { + $data = [ + 'title' => $item, + 'filter_id' => $new_filter->id + ]; + } elseif (Arr::isAssoc($item)) { + foreach ($item as $key => $value) { + $data[$key] = $value; + } + $data['filter_id'] = $new_filter->id; + } + + $new_filter_item = $this->filterItemService->save($data); + } + } + } + } +} diff --git a/database/seeds/GlobalDbImportSeeder.php b/database/seeds/GlobalDbImportSeeder.php new file mode 100644 index 0000000..becad22 --- /dev/null +++ b/database/seeds/GlobalDbImportSeeder.php @@ -0,0 +1,82 @@ + $value) { + + if (!in_array($key, $skippable)) { + DB::table($key)->insert($value); + } + } + + $this->call(BranchSeeder::class); + } +} diff --git a/database/seeds/LearningProductSeeder.php b/database/seeds/LearningProductSeeder.php new file mode 100644 index 0000000..a4184be --- /dev/null +++ b/database/seeds/LearningProductSeeder.php @@ -0,0 +1,8169 @@ +learningProductService = $learningProductService; + } + + public function run() + { + $learning_products = [ + +[ + 'published' => true, + 'title' => 'ADHD en middelen­gebruik bij adolescenten ', + 'short_description' => '

Dit leertraject is ontwikkeld naar aanleiding van de reeds bestaande richtlijn ADHD en middelengebruik bij adolescenten. De richtlijn bestaat uit informatie over screening, diagnostiek en behandeling in de ggz en verslavingszorg bij adolescenten. Ook is er een bijbehorende handleiding voor hulpverleners en een werkboek voor gebruik bij cliënten. Dit leertraject gaat aan de hand van een viertal casussen specifieke situaties uitlichten en geeft hierbij tips aan de deelnemer over het gebruik van de richtlijn en overige beschikbare materialen.

+', + 'learning_goals' => '

Na het volgen van dit leertraject:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Opzet leertraject
+Het leertraject is ontwikkeld in aanvulling op de reeds bestaande richtlijn, handleiding en het werkboek bij ADHD en middelengebruik bij adolescenten. In het leertraject wordt verwezen naar deze materialen voor verdere diepgang in de stof.

+', + 'target_audience' => '

De doelgroep zijn hulpverleners die cliënten behandelen met ADHD en/of met middelengebruik. Daarnaast dienen zij reeds bekend te zijn met cognitieve gedragstherapie en motiverende gespreksvoering.

+', + 'lead_time' => '4 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/ADHDM_LT_0087_tegelML.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/76e9b3323f384188bb1f346085cbf09d1d', + 'code' => 'ADHDM_LT_0087', + 'seo_title' => '%%title%% | %%sitename%%', + 'meta_description' => 'Maak kennis met de Richtlijn ADHD en middelengebruik bij adolescenten en leer die toe te passen in je werk als ggz-professional. - #lerenindeggz', + 'url' => 'https://ggzecademy.nl/product/adhd-en-middelengebruik-bij-adolescenten/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ADHDM_LT_0087%20(ADHD%20en%20middelengebruik%20bij%20adolescenten)?csf=1&web=1&e=gP5hb0', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029439', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Psychopathologie', + 'audience' => 'agogen, artsen, psychiaters, psychologen, sociaal psychiatrisch verpleegkundigen, verpleegkundig specialisten', + 'course' => '', + 'level' => 'HBO, WO', + 'status' => 'opgeleverd', + 'theme' => 'Psychopathologie', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Registerplein - 4 +Kwaliteitsregister V&V - 4 +Verpleegkundig Specialisten Register - 3 +NIP Eerstelijnspsychologen - 5 +SKJ - 4' +],[ + 'published' => true, + 'title' => 'Agressie­hantering en Sociale Veiligheid', + 'short_description' => '

In deze module wordt ingegaan op de verschijningsvormen van agressie zoals beschreven door Nico Oud in Agressie, effectief verplegen, handboeken voor evidence based verpleegkundig handelen.

+', + 'learning_goals' => '

Na afloop van de cursus weet de cursist:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Blended training
+Naast de module zijn enkele filmpjes opgeleverd die als lesmateriaal kunnen worden ingezet tijdens een face-to-face-training. Daarbij dient een korte trainingshandleiding als houvast voor de trainer, zodat hij weet hoe hij de filmpjes kan inzetten.

+

Eigenaar
+Deze module is ontwikkeld door OCD Opleidingen in opdracht van Dimence Groep.

+', + 'target_audience' => '

Deze module is geschikt voor begeleiders en behandelaren in de ggz.

+', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/AgHaSV_LT_0150__tegelML.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2019/08/Agressiehantering.jpg', + 'video' => '', + 'code' => 'AgHaSV_LT_0076', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Leer welke vormen van agressie je kunt tegenkomen en hoe je ermee omgaat in jouw werk als zorgprofessional. - #lerenindeggz', + 'url' => 'https://ggzecademy.nl/product/agressiehantering-en-sociale-veiligheid-2/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/AgHaSV_LT_0150%20(Agressiehantering%20en%20sociale%20veiligheid)?csf=1&web=1&e=RPiawW', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029394', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professioneel handelen', + 'audience' => 'agogen, artsen, psychiaters, psychologen, psychotherapeuten, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, WO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Ambulant werken in de ggz', + 'short_description' => '

In dit leertraject komt het oefenen in verschillende praktijksituaties aan bod, waarbij het doel is een attitudeverandering bij de hulpverlener te realiseren.

+', + 'learning_goals' => '

Het hoofdleerdoel is:

+ +

Subleerdoelen zijn:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Deze module is gericht op agogen en verpleegkundigen die bekend zijn met wat ambulantisering inhoudt, maar nog niet ambulant werken.
+De module is gericht op het ontdekken van de veranderingen voor de rol als hulpverlener wanneer je in het ambulante veld gaat werken.

+', + 'lead_time' => '3 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/AmbHul_LT_0029_tegelML-1.jpg', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/52b8c33bbacc4dd4bb7507a9395b18c51d', + 'code' => 'AmbHul_LT_0029', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Maak kennis met de geschiedenis van en de visie op ambulantisering van de geestelijke gezondheidszorg. - #lerenindeggz ', + 'url' => 'https://ggzecademy.nl/product/ambulant-werken-in-de-ggz/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/AmbHul_LT_0029%20Ambulant%20werken%20in%20de%20ggz?csf=1&web=1&e=k4bSeo', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029534', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Ambulantisering', + 'audience' => 'agogen, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => 'Ambulantisering', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Registerplein - 3 +Kwaliteitsregister V&V - 3' +],[ + 'published' => true, + 'title' => 'Inleiding ambulantisering', + 'short_description' => '

Het leertraject Inleiding ambulantisering is een kennismakingsmodule met ambulantisering. Het leertraject bevat meerdere onderdelen die zijn uitgesplitst in: Geschiedenis ambulantisering, Visie ambulantisering, Cultuur, Organisatie.

+', + 'learning_goals' => '

Het hoofdleerdoel is:

+ +

Subleerdoelen zijn het kunnen benoemen:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Deze module is gericht op medewerkers die algemene kennis willen opdoen over:

+ +

De medewerker vormt in deze module een eigen visie op ambulantisering.

+', + 'lead_time' => '3 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/Amblnl_LT_0027_tegelML-1.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/4ff8cfb4d2e64d679bcc85a507cf92d21d', + 'code' => 'AmbInl_LT_0027', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Maak kennis met de geschiedenis van en de visie op ambulantisering van de geestelijke gezondheidszorg. - #lerenindeggz', + 'url' => 'https://ggzecademy.nl/product/inleiding-ambulantisering/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/AmbInl_LT_0027%20(Inleiding%20ambulantisering)?csf=1&web=1&e=4oJxnC', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029359', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Ambulantisering', + 'audience' => 'agogen, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => 'Ambulantisering', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 3 +Registerplein - 3' +],[ + 'published' => true, + 'title' => 'De professional in ambulante setting', + 'short_description' => '

Dit leertraject richt zich op het aanleren van nieuwe kennis en vaardigheden, maar stimuleert de cursist ook vooral om op een andere manier naar de cliënt en een behandeling te kijken. Het leertraject leert de cursist dat de cliënt regie heeft over zijn eigen behandeling, en hoe hij daar het beste mee om kan gaan. Deze e-learning module legt de focus op de overgang van klinisch naar ambulant werken. Er wordt gezorgd voor een goede aansluiting met het leertraject De veranderende rol van de hulpverlener doordat in beide modules gebruik wordt gemaakt van dezelfde cliënten en situatieomschrijvingen. Dít leertraject gaat echter veel dieper in op het aanleren van concrete vaardigheden in complexere situaties, waar De veranderende rol van de hulpverlener zich meer richt op de attitudeverandering van de hulpverlener.

+', + 'learning_goals' => '

Het hoofdleerdoel is:

+ +

Subleerdoelen zijn:

+', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Dit product is bedoeld voor de volgende doelgroepen:

+', + 'lead_time' => '3 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/AmkbPro_LT_0030_tegelML-1.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/ddffd58404bd46419113478e6304285b1d?autostart=true&player=50a54cab1d3541bc913f556ea1b6df590a&playfrom=0&covertitle=false', + 'code' => 'AmbPro_LT_0030', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Ontdek welke nieuwe kennis en vaardigheiden je als zorgprofessional in de ggz nodighebt om ambulant te kunnen werken. - #lerenindeggz', + 'url' => 'https://ggzecademy.nl/product/de-professional-in-ambulante-setting/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/AmbPro_LT_0030%20(De%20professional%20in%20ambulante%20setting)?csf=1&web=1&e=5VgCFB', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029493', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Ambulantisering', + 'audience' => 'agogen, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => 'Ambulantisering', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Registerplein - 3 +Kwaliteitsregister V&V - 3' +],[ + 'published' => true, + 'title' => 'Ambulantisering basis & verdieping', + 'short_description' => '

Ambulantisering is de term die wordt gebruik voor het afbouwbeleid van intramurale zorg. Maar ambulantisering is meer dan dat. Om intramurale voorzieningen te kunnen verminderen, moeten er alternatieven worden gevonden op het gebied van wonen, werk, inkomen, dagbesteding, sociale contact en zorg voor cliënten. Ambulantisering betekent met name een andere manier van kijken naar wat cliënten nodig hebben om een zo goed en normaal mogelijk leven te leiden.

+

In dit leertraject wordt ingegaan op de redenen voor ambulantisering, het geven van herstelondersteunende zorg, de veranderende rol van de helpverlener en tenslotte hoe te functioneren als professional in een ambulante setting.

+

Voor de modules in dit traject is apart, dus stuk voor stuk, accreditatie verleend.

+', + 'learning_goals' => '

Na het volgen van de leertraject heeft de deelnemer een visie ontwikkeld op het gebied van ambulantisering. De deelnemer:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Het leertraject bestaat uit zelfstudie materiaal. De inhoud en methoden zijn als volgt:

+ +', + 'target_audience' => '

Deze module is ontwikkeld voor alle medewerkers in de ggz die ambulant gaan werken of hiermee net zijn gestart.

+', + 'lead_time' => '16 uur + 4 uur intervisie', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/AmbuBV_LT_0098_tegelML.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2019/08/Ambulantisering-1.png', + 'video' => '', + 'code' => 'AmbuBV_LT_0098', + 'seo_title' => 'Ambulantisering – basis & verdieping | %%sitename%%', + 'meta_description' => 'Ontdek jouw nieuwe reikwijdte met Ambulantisering, incl accreditatiepunten – flexibel, snel en effectief je kennis bijspijkeren. Leer mee!', + 'url' => 'https://ggzecademy.nl/product/ambulantisering-basis-verdieping/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/AmbuBV_LT_0098%20(Ambulantisering%20Basis%20%26%20Verdieping)?csf=1&web=1&e=T0w1iJ', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029393', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Ambulantisering', + 'audience' => 'agogen, artsen, maatschappelijk werkers, psychologen, psychotherapeuten, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO, WO', + 'status' => 'opgeleverd', + 'theme' => 'Ambulantisering', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'BHV', + 'short_description' => '

Dit leertraject doorloopt alle onderwerpen die aan bod moeten komen in een BHV-training en vormt een goede basis voor en aansluiting op een eventuele klassikale training.

+', + 'learning_goals' => '

Na de cursus ben je bekend met:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Bedrijfshulpverleners die kennis en vaardigheden op peil dienen te houden conform de geldende normen en richtlijnen op het gebied van bedrijfshulpverlening.

+', + 'lead_time' => '4,5 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/TegelBHV03.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/e321a32c0dad4dad9eaafb302b70a68e1d', + 'code' => 'BHVAlg_LT_0015', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Houd je BHV-kennis up-to-date en ontvang accreditatiepunten – flexibel, snel en effectief je kennis bijspijkeren. Leer mee!', + 'url' => 'https://ggzecademy.nl/product/bhv/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/BHVAlg_LT_0015%20(BHV)?csf=1&web=1&e=FIOjK4', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029407', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professioneel handelen', + 'audience' => 'agogen, maatschappelijk werkers, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 3 +Registerplein - 5' +],[ + 'published' => true, + 'title' => 'BHV voor de ggz', + 'short_description' => '

BHV in de ggz richt zich op bedrijfshulpverlening in de ggz-context. De e-learningmodule bestaat uit de hoofdstukken: communicatie, brand, ontruiming en spoedeisende eerste hulp. De casuïstiek bestaat uit een aantal scenario’s in de ggz-context. Het leertraject bereidt de deelnemer voor op een aanvullende praktijktraining BHV.

+', + 'learning_goals' => ' +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Dit leertraject is bestemd voor medewerkers die de BHV-taak binnen hun instelling moeten uitvoeren.

+', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/BHVGGZ_LT_0127_tegelML.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/8ffc4d23fdd949f9a4476641688a1d051d', + 'code' => 'BHVGGZ_LT_0127', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Een online BHV-cursus met herkenbare casussen voor wie in de geestelijke gezondheidzorg werkt. Fijn als opfrisser en als basismodule ter voorbereiding op een fysieke training.', + 'url' => 'https://ggzecademy.nl/product/bhv-voor-de-ggz/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/BHVGGZ_LT_0127%20(BHV%20in%20de%20GGZ)?csf=1&web=1&e=RRnV5b', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029408', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professioneel handelen', + 'audience' => 'agogen, maatschappelijk werkers, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 3 +Registerplein - 3' +],[ + 'published' => true, + 'title' => 'Inleiding op cognitieve gedragstherapie', + 'short_description' => '

Deze e-learning module geeft een inleiding op cognitieve gedragstherapie en hoe die ingezet wordt in de behandeling van patiënten en cliënten in de volle breedte van het ggz-werkveld.

+', + 'learning_goals' => '

Na het volgen van deze bijscholingsmodule:

+ +

Om deze doelstelling te bereiken, zijn concrete leerdoelen geformuleerd. Deze leerdoelen zijn gericht op het verwerven en toepassen van kennis, basale vaardigheden en attitude.

+

Na het deelnemen aan de e-learning module Inleiding Cognitieve gedragstherapie:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

De e-learning module is ontwikkeld voor medewerkers in ggz-instellingen die in de dagelijkse praktijk werken met cliënten en (nog) geen opleiding hebben gevolgd in de cognitieve gedragstherapie. Dit zijn bij voorbeeld:

+', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/CGTInl_LT_0009_tegel.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/e43b5caa534947c4a917880368adf4ef1d', + 'code' => 'CGTInl_LT_0009', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Maak kennis met cognitieve gedragstherapie en hoe deze behandelvorm de psychiatrische cliënt kan helpen op z\'n weg naar herstel.', + 'url' => 'https://ggzecademy.nl/product/inleiding-op-cognitieve-gedragstherapie/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/CGTInl_LT_0009%20(Inleiding%20CGT)?csf=1&web=1&e=j8zoIm', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029427', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Methodieken', + 'audience' => 'sociotherapeuten, verpleegkundigen, woonbegeleiders', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 2 +Registerplein - 2 +SKJ - 1,5' +],[ + 'published' => true, + 'title' => 'CGT bij problematisch middelengebruik bij cliënten met een LVB', + 'short_description' => '

Cognitieve gedragstherapie (CGT) is een bewezen effectieve behandelmethodiek voor mensen die problemen hebben met middelengebruik (alcohol, drugs of andere psychotrope stoffen). Het CGT+ protocol beschrijft een cognitief gedragstherapeutische behandeling van problematisch middelengebruik bij mensen met een lichte verstandelijke beperking (LVB). Voor behandelaren die actief aan de slag gaan met het protocol is deze werkplekondersteuning die op de belangrijkste onderdelen van de handleiding en het werkboek voorbeelden en verduidelijking geven.

', + 'learning_goals' => '

Voor deze werkplekondersteuning zijn geen leerdoelen geformuleerd. De inhoud van dit leerproduct bestaat uit de belangrijkste aandachtspunten, tips en antwoorden op vragen die gebruikers van deze methode hebben tijdens de behandeling van de cliënt. Deze vragen zijn gecategoriseerd aan de hand van de onderstaande onderdelen. Deze komen overeen met de bijeenkomsten zoals die worden genoemd in de methode.

+', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Voorwaarden

+ +

Voor werkplekondersteuning wordt geen accreditatie aangevraagd.

', + 'target_audience' => '

De doelgroep bestaat uit behandelaars die cliënten met een LVB met problematisch middelengebruik behandelen met cognitieve gedragstherapie (CGT).

+', + 'lead_time' => '', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/CGTMid_WP_0095_tegel-1.jpg', + + 'video' => '', + 'code' => 'CGTLVB_WP_0135', + 'seo_title' => 'CGT problematisch middelengebruik – cliënten LVB | %%sitename%%', + 'meta_description' => 'Leer in een kort tijdsbestek de laatste inzichten rond CGT problematisch middelengebruik LVB – ontwikkeld voor en door zorgprofessionals – #samenlerenindeggz', + 'url' => 'https://ggzecademy.nl/product/cgt-bij-problematisch-middelengebruik-bij-clienten-met-een-lvb/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/CGTLVB_LT_0135%20(CGT%20bij%20problematisch%20middelengebruik%20bij%20cli%C3%ABnten%20met%20een%20LVB)?csf=1&web=1&e=0Kx8Ua', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000031095', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Methodieken', + 'audience' => 'cognitief gedragstherapeuten, cognitief gedragstherapeutisch werkers, psychologen, psychotherapeuten', + 'course' => 'LVB', + 'level' => 'HBO, HBO+Master, WO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Werkplek­ondersteuning CGT bij middelengebruik', + 'short_description' => '

Deze werkplekondersteuning is gebaseerd op het bestaande handboek en de bijbehorende handleiding over CGT bij middelengebruik en gokken. In deze handleiding staat de praktische toepassing van de richtlijn beschreven. Hierin staan de bijeenkomsten met een cliënt centraal. Deze werkplekondersteuning is een aanvulling op het bestaande materiaal en realiseert de koppeling naar de praktijk door praktijkvoorbeelden en opdrachten te geven aan de deelnemer.
+Voor werkplekondersteuning als dit wordt geen accreditatie aangevraagd, omdat het traject niet van A tot Z doorlopen hoeft te worden. Er vindt, om diezelfde reden, geen toetsing plaats.

+', + 'learning_goals' => '

Na het volgen van deze werkplekondersteuning:

+', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Voorwaarden

+ +', + 'target_audience' => '

Behandelaars die cliënten met problematisch middelengebruik behandelen met cognitieve gedragstherapie (CGT), zoals:

+', + 'lead_time' => '4 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/CGTMid_WP_0095_tegel.jpg', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/f576a01bb3e84f58ab6885892370a7911d', + 'code' => 'CGTMid_WP_0095', + 'seo_title' => 'Werkplekondersteuning – CGT bij middelengebruik | %%sitename%%', + 'meta_description' => 'Leer het handboek CGT bij problematisch middelengebruik in te zetten in je werk als behandelaar in de geestelijke gezondheidszorg. – #lerenindeggz', + 'url' => 'https://ggzecademy.nl/product/werkplekondersteuning-cgt-bij-middelengebruik/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/CGTMid_WP_0095%20(Cognitieve%20Gedragstherapie%20bij%20Middelengebruik)?csf=1&web=1&e=RPXuy5', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029429', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Methodieken', + 'audience' => 'cognitief gedragstherapeuten, cognitief gedragstherapeutisch werkers, psychologen, psychotherapeuten', + 'course' => '', + 'level' => 'HBO, WO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'GGZ College Eetstoornissen', + 'short_description' => '

Dit leertraject is gemaakt rond de uitzending van het GGZ College over eetstoornissen. Je leert hoe mensen (juist) kunnen handelen als zij tekenen zien een van eetstoornis, onder meer door te begrijpen welke mechanismen spelen.

+', + 'learning_goals' => '

Na dit leertraject weet je:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Dit leertraject is (ook) interessant voor:

+ +

En verder voor:

+', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2020/07/ColEet_LT_0240_Tegel_334x140.jpg', + + 'video' => '', + 'code' => 'ColEet_LT_0240', + 'seo_title' => '', + 'meta_description' => 'In dit leertraject gebaseerd op het GGZ College Eetstoornissen leer je hoe te handelen bij het zien van tekenen van een eetstoornis.', + 'url' => 'https://ggzecademy.nl/product/ggz-college-eetstoornissen/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ColEet_LT_0240%20GGZ%20College%20Eetstoornissen?csf=1&web=1&e=HmYqJk', + 'support_link' => '', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => '', + 'audience' => 'agogen, ervaringswerkers, groepsbegeleiders, groepswerkers, maatschappelijk werkers, sociaal psychiatrisch verpleegkundigen, woonbegeleiders', + 'course' => '', + 'level' => 'HBO, MBO 3/4', + 'status' => 'in-ontwikkeling', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'GGZ College Eerste hulp bij psychische problemen', + 'short_description' => '

Dit leertraject is gemaakt rond de uitzending van het GGZ College over eerste hulp bij psychische problemen. Je leert hoe mensen (juist) kunnen handelen als zij psychische problematiek in hun directe omgeving waarnemen en wat de winst ervan kan zijn.

+', + 'learning_goals' => '

Na dit leertraject weet je:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Dit leertraject is (ook) interessant voor:

+ +

En verder voor:

+', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2020/06/ColEHP_LT_0239_Tegel_334x140.jpg', + + 'video' => '', + 'code' => 'ColEHP_LT_0239', + 'seo_title' => '', + 'meta_description' => 'Dit leertraject is gemaakt rond het GGZ College \'Eerste hulp bij psychische problemen\'. Het leert je hoe te handelen bij iemand met psychische problemen.', + 'url' => 'https://ggzecademy.nl/product/ggz-college-eerste-hulp-bij-psychische-problemen/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ColEHP_LT_0239%20(GGZ%20College%20eerste%20hulp%20bij%20psychische%20problemen)?csf=1&web=1&e=JMixS1', + 'support_link' => '', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => '', + 'audience' => 'agogen, ervaringswerkers, groepsbegeleiders, groepswerkers, maatschappelijk werkers, sociaal psychiatrisch verpleegkundigen, woonbegeleiders', + 'course' => '', + 'level' => 'HBO, MBO 3/4', + 'status' => 'in-ontwikkeling', + 'theme' => '', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'GGZ College Licht verstandelijk beperkt', + 'short_description' => '

Dit product is nog ontwikkeling en wordt naar verwachting in Q4 van 2020 opgeleverd.

', + 'learning_goals' => '', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '', + 'lead_time' => '1,5 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2020/07/ColEet_LT_0240_Tegel_334x140.jpg', + 'cover' => 'https://ggzecademy.nl/web/uploads/2020/07/ColEet_LT_0240_Header_1230x300.png', + 'video' => '', + 'code' => 'ColLVB_LT_0241', + 'seo_title' => '', + 'meta_description' => 'Dit leertraject bevat het GGZ College Licht verstandelijk beperkt. Naast het college bevat het leertraject opdrachten en een toets.', + 'url' => 'https://ggzecademy.nl/product/ggz-college-licht-verstandelijk-beperkt/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ColLVB_LT_0241%20GGZ%20College%20Licht%20verstandelijke%20beperking?csf=1&web=1&e=mdVlTI', + 'support_link' => '', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professionele attitude', + 'audience' => '', + 'course' => 'LVB', + 'level' => '', + 'status' => 'in-ontwikkeling', + 'theme' => '', + 'type' => '', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'GGZ College Suïcidepreventie', + 'short_description' => '

Dit leertraject is gemaakt rond de uitzending van het GGZ College over suïcidepreventie: ‘Bespreek het onbespreekbare’. Je leert welke rol je kunt innemen in het voorkomen van suïcide, door de wens hiertoe te herkennen, te benoemen en (oorzaken) te bespreken.

', + 'learning_goals' => '

Na dit leertraject weet je:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

GGZ College is een initiatief van GGZ Friesland waarbij tijdens verschillende rondetafelsessies met publiek in een DWDD-achtige setting thema’s uit de psychiatrie aan de orde komen.

+

Wil je een overzicht van alle GGZ Colleges? Klik hier voor een overzicht.

', + 'target_audience' => '', + 'lead_time' => '1,5', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2020/04/ColSui_LT_0232_Tegel_334x140.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2020/04/ColSui_LT_0232_Header_1230x200.png', + 'video' => '', + 'code' => 'ColSui_LT_0232', + 'seo_title' => '', + 'meta_description' => 'Hoe ga je om met iemand die suïcidale gedachten heeft? Leer het in een leertraject rond het GGZ Collge over suïcedpreventie.', + 'url' => 'https://ggzecademy.nl/product/ggz-college-suicidepreventie/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ColSui_LT_0232%20GGZ%20College%20Su%C3%AFcidepreventie?csf=1&web=1&e=nUr39v', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000031750', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Suïcidepreventie', + 'audience' => 'agogen, ervaringswerkers, groepsbegeleiders, groepswerkers, maatschappelijk werkers, sociaal psychiatrisch verpleegkundigen, verpleegkundigen, woonbegeleiders', + 'course' => '', + 'level' => 'HBO, MBO 3/4', + 'status' => 'opgeleverd', + 'theme' => 'Suïcidepreventie', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Crisismonitor', + 'short_description' => '

In dit leertraject wordt stap voor stap het gebruik van de crisismonitor uitgelegd.

+', + 'learning_goals' => '

In deze module:

+ +

Met het instrument CrisisMonitor kun je:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Doorlooptijd van deze module is ongeveer 75 minuten. Je kunt tussendoor stoppen. Je resultaten worden dan opgeslagen. De volgende keer start je waar je gebleven was.

', + 'target_audience' => '

Deze module is bedoeld voor medewerkers binnen de ggz die zich oriënteren op het inzetten van de CrisisMonitor of recent zijn gaan werken met de CrisisMonitor.

+', + 'lead_time' => '75 min', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/CrMo_LT_0036-tegel-ML-1.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/d790b4211a984f6f9faf96346af26da01d?autostart=true&player=50a54cab1d3541bc913f556ea1b6df590a&playfrom=0&covertitle=false', + 'code' => 'CriMon_LT_0036', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Leer hoe je de CrisisMonitor kunt inzetten om escalatie in je werk als zorgprofessional te voorkomen. -#samenlerenindeggz', + 'url' => 'https://ggzecademy.nl/product/crisismonitor/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/CriMon_LT_0036%20(Crisismonitor)?csf=1&web=1&e=YDaV3Y', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029411', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Methodieken', + 'audience' => 'artsen, psychiaters, psychologen, psychotherapeuten, vaktherapeuten, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, WO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Inspiratietraject CRPD', + 'short_description' => '

Uit de praktijk bijkt dat er nogal eens sprake is van machtsongelijkheid tussen cliënt en zorgverleners. Hierdoor kan het voorkomen dat mensenrechten, zoals zelfbeschikking en ‘volwaardig deelnemen aan de maatschappij’ in het geding komen.

+

De CRPD (Convention on the Rights of Persons with Disabilities) biedt een fundament en een verantwoordelijkheid om aan de slag te gaan met die ongelijkheid. Dit inspiratietraject is een eerste kennismaking met dit verdrag en het laat zien voor welke dilemma’s je je als zorgverlener gesteld ziet.

+

 

+', + 'learning_goals' => '

Na het volgen van dit inspiratietraject:

+ +

 

+', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Onderdeel van dit inspiratietraject is GGZ Inspiratie CRPD. Dit element zal los en gratis te bekijken zijn voor iedereen. Op een later tijdstip meer informatie over dit product.

', + 'target_audience' => '', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2020/04/CRPDxx_IT_0230_Tegel_335x140.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2020/04/CRPDxx_IT_0230_Header_1230x300_zondertekst.png', + 'video' => '', + 'code' => 'CRPDxx_IT_0230', + 'seo_title' => '', + 'meta_description' => 'In dit inspiratietraject ga je aan de slag met de CRPD en wat die voor consequenties heeft voor jou als zorgprofessional in de ggz.', + 'url' => 'https://ggzecademy.nl/product/inspiratietraject-crpd/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/CRPDxx_IT_0230?csf=1&web=1&e=v4SghD', + 'support_link' => '', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professioneel handelen', + 'audience' => 'agogen, behandelaren, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO, MBO 3/4', + 'status' => 'in-ontwikkeling', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Inspiratietraject Samen beter naar een nieuwe ggz', + 'short_description' => '', + 'learning_goals' => '
De deelnemer:
+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Onderdeel van dit inspiratietraject is GGZ Inspiratie Samen beter naar een nieuwe ggz. Dit element zal los en gratis te bekijken zijn voor iedereen. Op een later tijdstip meer informatie over dit product.

+

 

', + 'target_audience' => '', + 'lead_time' => '30 minuten', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2020/05/deNggz_IT_0228_Tegel_334x140.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2020/05/deNggz_IT_0228_Header_1230x300_zonder-titel.jpg', + 'video' => '', + 'code' => 'deNggz_IT_0228', + 'seo_title' => '', + 'meta_description' => 'Maak in dit inspiratietraject kennis met de Nieuwe GGZ en Samen Beter en ontdek hoe een andere manier van kijken andere zorg oplevert in de ggz.', + 'url' => 'https://ggzecademy.nl/product/inspiratietraject-samen-beter-naar-een-nieuwe-ggz/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/deNggz_GI_0229?csf=1&web=1&e=89ULB0', + 'support_link' => '', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professioneel handelen', + 'audience' => 'agogen, ervaringsdeskundigen, GZ psychologen, klinisch psychologen, POH GGZ, psychiaters, psychotherapeuten, vaktherapeuten, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'in-ontwikkeling', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Van DSM-IV naar DSM-5', + 'short_description' => '

Dit leeertraject laat de verschillen tussen de DSM-4 n DSM-IV zien.

', + 'learning_goals' => '

Na het volgen van dit leertraject:

+', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

In deze module wordt ervan uitgegaan dat de cursist bekend is met de DSM-IV.

+', + 'lead_time' => '3 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/DSM5xx_LT_0024_tegelML-1.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/24b142b50156470287a37382c991a5281d', + 'code' => 'DSM5xx_LT_0024', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Leer in een kort tijdsbestek de laatste inzichten van DSM IV naar DSM 5 – ontwikkeld voor en door zorgprofessionals – #samenlerenindeggz', + 'url' => 'https://ggzecademy.nl/product/van-dsm-iv-naar-dsm-5/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/DSM5xx_LT_0024%20(Van%20DSM-IV%20naar%20DSM-5)?csf=1&web=1&e=bUtxUt', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029523', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Psychopathologie', + 'audience' => 'artsen, psychiaters, psychologen, psychotherapeuten, vaktherapeuten, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, WO', + 'status' => 'opgeleverd', + 'theme' => 'Psychopathologie', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Dubbele diagnose ggz-instellingen', + 'short_description' => '

Een cliënt kan zowel een verslaving als een andere psychiatrische stoornis hebben. In dit leertraject leer jij omgaan met een cliënt met een dubbele diagnose.

+', + 'learning_goals' => '

Het belangrijkste leerdoel van de module betreft gedragsverandering. Het kunnen kiezen uit verschillende gedragingen in de interactie met de cliënt draagt hier bijvoorbeeld aan bij.

+

De leerdoelen van deze module zijn:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Dit product is bedoeld voor:

+', + 'lead_time' => '3 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/Tegel_DUDIGZ_LT_0079_v-3.0.0.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2019/08/Header_DUDIGZ_LT_0079_v-3.0.0.png', + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/cb81c7d7bbd4481e9072538fb74b80fc1d', + 'code' => 'DuDiGZ_LT_0079', + 'seo_title' => 'Dubbele diagnose ggz-instellingen – leerproducten | %%sitename%%', + 'meta_description' => 'Wordt alert op het feit dat een psychiatrsich cliënt een dubbele diagnose kan hebben en leer die te herkennen.', + 'url' => 'https://ggzecademy.nl/product/dubbele-diagnose-ggz-instelling/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/DuDiGZ_LT_0079%20(Dubbele%20Diagnose%20GGZ%20instelling)?csf=1&web=1&e=H5z733', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029412', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Psychopathologie', + 'audience' => 'agogen, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => 'Psychopathologie', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 3 +Registerplein - 3 +Verpleegkundig Specialisten Register - 3' +],[ + 'published' => true, + 'title' => 'Dubbele diagnose verslavingsinstellingen', + 'short_description' => '

Een cliënt kan zowel een verslaving als een andere psychiatrische stoornis hebben. In dit leertraject leer jij omgaan met een cliënt met een dubbele diagnose.

+', + 'learning_goals' => '

Het belangrijkste leerdoel van de module betreft gedragsverandering. Het kunnen kiezen uit verschillende gedragingen in de interactie met de cliënt draagt hier bijvoorbeeld aan bij.

+

De leerdoelen van deze module zijn:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '

Dit product is bedoeld voor:

+', + 'lead_time' => '3 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/DuDiVZ_LT_0080_-tegelML-1.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/cb81c7d7bbd4481e9072538fb74b80fc1d', + 'code' => 'DuDiVZ_LT_0080', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Wordt alert op het feit dat een psychiatrsich cliënt een dubbele diagnose kan hebben en leer die te herkennen.', + 'url' => 'https://ggzecademy.nl/product/dubbele-diagnose-verslavingszorg/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/DuDiVZ_LT_0080%20(Dubbele%20Diagnose%20Verslavingsinstelling)?csf=1&web=1&e=y4vmdh', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029413', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Psychopathologie', + 'audience' => 'agogen, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => 'Psychopathologie', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 3 +Registerplein - 3 +Verpleegkundig Specialisten Register - 3' +],[ + 'published' => true, + 'title' => 'Dwang en drang', + 'short_description' => '

Dit leertraject is een bewustwordingsmodule voor de zorgverlener. De cursist leert inzien wat zijn eigen rol is bij escalatie en hoe hij kan voorkomen dat dwang en drang nodig is.

+', + 'learning_goals' => '

Het hoofdleerdoel van dit leertraject is:

+ +

Andere leerdoelen zijn:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '', + 'lead_time' => '3 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/DwaDra_LT_0008_Tegel_334x140.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2019/08/DwaDra_LT_0013_Header_1230x300.png', + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/591f35e3ad19460da434a9537f648df91d', + 'code' => 'DwaDra_LT_0008', + 'seo_title' => '%%title%% – leerproducten | %%sitename%%', + 'meta_description' => 'Leer inzien wat jouw invloed als zorgprofessional is bij escalatie en hoe je kunt voorkomen dwang en drang te hoeven gebruiken.', + 'url' => 'https://ggzecademy.nl/product/dwang-en-drang/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/DwaDra_LT_0008%20(Dwang%20en%20drang)?csf=1&web=1&e=KaTjA8', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029414', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professioneel handelen', + 'audience' => 'agogen, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO 3/4', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 3 +Registerplein - 3' +],[ + 'published' => true, + 'title' => 'Trainershand­leiding blended leertraject eHealth', + 'short_description' => '

Deze trainershandleiding is bedoeld voor mensen die binnen hun organisatie zorgverleners gaan trainen op eHealth. Deze training is onderdeel van een blended traject, waar het leertraject Basiscursus Ehealth voor de ggz ook onderdeel van is. Een aanvraag van accreditatie voor dit blended traject doet de instellingen zelf.

+', + 'learning_goals' => '

De leerdoelen staan beschreven op de pagina’s van de afzonderlijke leerproducten.

+

 

', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Opzet trainersinstructie
+De trainersinstructie bevat de volgende onderdelen:

+ +

De trainer kan met het beschikbare materiaal van de e-learning en de bij het blended leertraject horende opdrachten zelfstandig een leertraject inrichten.
+De volgende e-learning modules zijn onderdeel van dit blended leertraject:

+ +

Focus leertraject
+De primaire focus van het blended leertraject is het toerusten van de twee belangrijke actoren:

+ +

Het blended leertraject eHealth is onderdeel van het implementatieproces. Om eHealth in het dagelijkse werk te kunnen (gaan) gebruiken zijn kennis en vaardigheden nodig. Leren is daarom onderdeel van de implementatie.

+', + 'target_audience' => '

Trainers die binnen hun organisaties een training verzorgen aan zorgprofessionals die eHealth binnen hun behandel- of begeleidingstaken benutten of gaan benutten (blended behandeling). De training is een onderdeel van het blended leertraject.

+', + 'lead_time' => 'nvt', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/ProductCatalogus_ehealth.jpg', + + 'video' => '', + 'code' => 'EheaTr_H_0083', + 'seo_title' => 'Trainershand', + 'meta_description' => 'Deze trainershandleiding is bedoeld voor mensen die binnen hun organisatie zorgverleners gaan trainen op eHealth. Bekijk de training en meld je aan!', + 'url' => 'https://ggzecademy.nl/product/trainershandleiding-blended-leertraject-ehealth/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/EheaTr_H_0083%20Trainersintructie%20Blended%20Leertraject%20eHealth?csf=1&web=1&e=SmjHPx', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029415', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Professioneel handelen', + 'audience' => 'agogen, trainers, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, MBO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'GGZ-instellingen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'FACT', + 'short_description' => '

De kans dat je binnen de ggz met FACT te maken krijgt, is groot. In dit leertraject leer je de basisprincipes van FACT.

+', + 'learning_goals' => '

De hoofdleerdoelen van deze module zijn:

+

Begrijpen wat FACT is:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '', + 'target_audience' => '', + 'lead_time' => '5 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/FACTxx_LT_0018_-tegelML-1.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/bba65c3fc2384c7d93a38813b609207f1d', + 'code' => 'FACTxx_LT_0018', + 'seo_title' => '%%title%% – flexible assertive community treatment | %%sitename%%', + 'meta_description' => 'Leer in een kort tijdsbestek de laatste inzichten van FACT – ontwikkeld voor en door zorgprofessionals – #samenlerenindeggz', + 'url' => 'https://ggzecademy.nl/product/fact/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/FACTxx_LT_0018%20(FACT)?csf=1&web=1&e=3kheGf', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000029416', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Ambulantisering', + 'audience' => 'agogen, verpleegkundig specialisten, verpleegkundigen', + 'course' => '', + 'level' => 'HBO, HBO+Master, MBO', + 'status' => 'opgeleverd', + 'theme' => 'Ambulantisering', + 'type' => 'GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 6 +Verpleegkundig Specialisten Register - 5 +Registerplein - 5' +],[ + 'published' => true, + 'title' => 'Thema-overzicht Forensische Leerlijn', + 'short_description' => '

GGZ Ecademy heeft in samenwerking met EFP en met gelden van KFZ de Forensische Leerlijn ontwikkeld. Deze leerlijn, bestemd voor het totale forensische werkveld in al z’n contexten en functies, is gratis toegankelijk voor het hele forensische veld. Meer informatie over de achtergronden en de samenwerking met EFP en KFZ vind je op de website www.forensischeleerlijn.nl.

', + 'learning_goals' => '

De leerdoelen staan beschreven op de pagina’s van de afzonderlijke leerproducten.

', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Vooralsnog zijn 23 leerproducten ontwikkeld, waarbij de volgende thema’s aandacht krijgen.

+ +

De producten binnen deze thema’s zijn verdeeld in basis- en verdiepingstrajecten.

+

Werk- en leefklimaat

+
Basistrajecten
+ +
Verdiepingstrajecten
+ +

Risicotaxatie en -management

+
Basistrajecten
+ +
Verdiepingstrajecten
+ +

Psychopathologie en delictrisico

+
Basistraject
+ +
Verdiepingstrajecten
+ +

Tot slot is er voor de hele leerlijn een overkoepelende werkplekondersteuning beschikbaar.

+ +
Aanmelden Forensische leerlijn
+

De leerlijn is gratis toegankelijk voor het hele forensische veld. Wil je aan de slag met de producten uit de Forensische Leerlijn dan is dat mogelijk via www.forensischeleerlijn.nl of via onderstaande stappen.

+

1) Kijk op het Forensisch Kompas welke leerproducten voor jou interessant zijn. Meer informatie over het kompas klik hier.

+

2) Weet je welke leerproducten je wilt volgen? Check dan eerst welke leeromgeving jij het beste kunt gebruiken door antwoord te geven op de vraag: Werk of studeer je bij een van de leden van GGZ Ecademy?

+

Ja: Informeer bij je organisatie hoe jij toegang krijgt tot de leerproducten uit de Forensische Leerlijn. En log in via de leeromgeving van jouw werkgever.

+

Nee: Klik hier om te kijken hoe je toegang krijgt. Gebruik bij aanmelden de aanmeldcode EXTECAWEBSITE.

+

Weet niet: Klik hier voor een overzicht van alle organisaties en onderwijsinstellingen die lid zijn van GGZ Ecademy.

', + 'target_audience' => '', + 'lead_time' => 'nvt', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/ProductCatalogus_forensisch.jpg', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/bda205ec12b84628870fe52eac5d06fb1d?autoStart=false', + 'code' => 'For_0158', + 'seo_title' => 'Thema overzicht – Forensische Leerlijn | %%sitename%%', + 'meta_description' => 'Het thema overzicht Forensische Leerlijn bevat gratis leerproducten voor ggz-professionals. E-learningmodules – Leren wanneer en waar jij dat wilt.', + 'url' => 'https://ggzecademy.nl/product/thema-overzicht-forensische-leerlijn/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/For_0158?csf=1&web=1&e=T65IMI', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000030844', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Forensisch', + 'audience' => '', + 'course' => 'Forensische leerlijn', + 'level' => '', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'Geen lid / zelfstandig professional, GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'Omgaan met agressie', + 'short_description' => '

Agressie is veelvoorkomend binnen de forensische zorg. Wat het precies is en hoe hiermee dient te worden omgegaan, wordt in dit verdiepingstraject besproken. Ook wordt belicht waardoor agressie kan ontstaan zodat het wordt herkend en hier juist en tijdig op geanticipeerd kan worden.

+', + 'learning_goals' => '

Na afronding van het leertraject weet de forensisch professional:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Dit product is een gratis product uit de Forensische Leerlijn. Om hier toegang toe te krijgen, heb je de volgende aanmeldcode nodig: EXTECAWEBSITE. Klik hier om te kijken hoe je toegang krijgt.

', + 'target_audience' => '

De doelgroep bestaat uit medewerkers die werkzaam zijn in de forensische zorg (ambulant, gesloten, klinisch en open) en direct contact met cliënten hebben. Het kan ook dat ze werkzaam zijn in een instelling met cliënten waar het gedrag vraagt om forensische benadering, eventueel zonder forensische titel. Veel voorkomende opleidingsachtergronden zijn:

+

Dit leertraject is ook geschikt voor ondersteunende medewerkers met direct cliëntcontact.

+', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/ForAgr_LT_0170_tegel.jpg', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/bda205ec12b84628870fe52eac5d06fb1d?autoStart=false', + 'code' => 'ForAgr_LT_0170', + 'seo_title' => '%%title%% – gratis leerproducten | %%sitename%%', + 'meta_description' => 'Omgaan met agressie is een gratis leerproduct voor ggz-professionals. E-learningmodules van hoge kwaliteit – leren wanneer en waar jij dat wilt.', + 'url' => 'https://ggzecademy.nl/product/omgaan-met-agressie/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ForAgr_LT_0170%20(Omgaan%20met%20agressie)?csf=1&web=1&e=bPpIbu', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000030804', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Forensisch', + 'audience' => 'agogen, ervaringswerkers, maatschappelijk werkers, psychologen, sociaal pedagogisch hulpverleners, sociaal psychiatrisch verpleegkundigen, sociotherapeuten, vaktherapeuten, verpleegkundigen', + 'course' => 'Forensische leerlijn', + 'level' => 'HBO, MBO, WO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'Geen lid / zelfstandig professional, GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 1 +Verpleegkundig Specialisten Register - 1 +Registerplein - 1' +],[ + 'published' => true, + 'title' => 'Ambulant werken in de forensische zorg', + 'short_description' => '

Dit leertraject gaat over ambulant werken in de forensische zorg en wat deze specifieke setting vraagt van de forensisch professional. Daarvoor wordt ingegaan op de impact van de relatief korte contactmomenten met de cliënt en de relatie die dit heeft met onder meer het gebruik van het netwerk van de cliënt, de MDO’s, de samenwerking met andere partijen en het inzetten van vormen van blended care.

+', + 'learning_goals' => '

Hoofdleerdoel:
+De professional heeft na afronding van het leertraject inzicht in wat de ambulante zorg specifiek van hem vraagt als forensisch professional.

+

Subleerdoelen:

+

De professional:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Andere leertrajecten in de Forensische Leerlijn hebben en meer klinische focus. Daarom is in deze module specifiek aandacht voor de ambulante zorg en de daarbij behorende casuïstiek. Dit leertraject verwijst naar de FARE. Daarnaast komt het onderwerp ketenpartners aan bod in dit leertraject. Voor het gehele overzicht en inzicht in ketenpartners wordt doorverwezen naar het leertraject Ketensamenwerking.

', + 'target_audience' => '', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2020/05/ForAmb_LT_0219-Tegel-335x140-1.png', + 'cover' => 'https://ggzecademy.nl/web/uploads/2020/05/AmbulantFOR.png', + 'video' => '', + 'code' => 'ForAmb_LT_0219', + 'seo_title' => '', + 'meta_description' => 'Dit leertraject gaat over ambulant werken in de forensische zorg en wat deze specifieke setting vraagt van de forensisch professional.', + 'url' => 'https://ggzecademy.nl/product/ambulant-werken-in-de-forensische-zorg/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ForAmb_LT_0219%20Ambulant%20werken%20in%20de%20forensische%20zorg?csf=1&web=1&e=Xl7hAR', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000031779', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Forensisch', + 'audience' => 'ervaringswerkers, maatschappelijk werkers, psychologen, sociaal pedagogisch hulpverleners, sociaal psychiatrisch verpleegkundigen, sociotherapeuten, vaktherapeuten, verpleegkundigen', + 'course' => 'Forensische leerlijn', + 'level' => 'HBO, MBO, WO', + 'status' => 'in-ontwikkeling', + 'theme' => '', + 'type' => 'Geen lid / zelfstandig professional, GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Dit product is niet geaccrediteerd' +],[ + 'published' => true, + 'title' => 'De forensische cliënt', + 'short_description' => '

Dit leertraject geeft de forensische professional inzicht in de doelgroep waarmee hij werkt. Het geeft basisinformatie over de doelgroep, mogelijke psychiatrische stoornissen en daarbij behorende gedragskenmerken. Hierbij wordt er vanuit gegaan dat de professional de cliënt niet zozeer ziet als delinquent, maar als persoon. Ook wordt het belang van heldere communicatie en de valkuilen voor miscommunicatie belicht. Ook het waarnemen, analyseren en coderen van gedrag wordt behandeld, gerelateerd aan persoon, context en psychopathologie. Aan het einde van dit leertraject heeft de professional inzicht in de doelgroep waarmee hij werkt en weet hij op hoofdlijnen waar hij rekening mee moet houden in de communicatie.

+', + 'learning_goals' => '

Na afronding van het leertraject weet de forensisch professional:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Dit product is een gratis product uit de Forensische Leerlijn. Om hier toegang toe te krijgen, heb je de volgende aanmeldcode nodig: EXTECAWEBSITE. Klik hier om te kijken hoe je toegang krijgt.

', + 'target_audience' => '

De doelgroep bestaat uit medewerkers die werkzaam zijn in de forensische zorg (ambulant, gesloten, klinisch en open) en direct contact met cliënten hebben. Het kan ook dat ze werkzaam zijn in een instelling met cliënten waar het gedrag vraagt om forensische benadering, eventueel zonder forensische titel. Veel voorkomende opleidingsachtergronden zijn:

+

Dit leertraject is ook geschikt voor ondersteunende medewerkers met direct cliëntcontact.

+', + 'lead_time' => '2 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/ForCli_LT_0159_tegel.jpg', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/bda205ec12b84628870fe52eac5d06fb1d?autoStart=false', + 'code' => 'ForCli_LT_0159', + 'seo_title' => '%%title%% - gratis leerproducten | %%sitename%%', + 'meta_description' => 'De forensische cliënt is een gratis leerproduct voor ggz-professionals. E-learningmodules van hoge kwaliteit – leren wanneer en waar jij dat wilt.', + 'url' => 'https://ggzecademy.nl/product/forensische-client/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ForCli_LT_0159%20(De%20forensische%20cli%C3%ABnt)?csf=1&web=1&e=SLOTL6', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000030707', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Forensisch', + 'audience' => 'agogen, ervaringswerkers, maatschappelijk werkers, psychologen, sociaal pedagogisch hulpverleners, sociaal psychiatrisch verpleegkundigen, sociotherapeuten, vaktherapeuten, verpleegkundigen', + 'course' => 'Forensische leerlijn', + 'level' => 'HBO, MBO 3/4, WO', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'Geen lid / zelfstandig professional, GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 2 +Verpleegkundig Specialisten Register - 2 +Registerplein - 2' +],[ + 'published' => true, + 'title' => 'Delictanalyse', + 'short_description' => '

In dit leertraject leert de cursist wat een delictanalyse en een delictscenario is aan de hand van casuïstiek. Hij leert hoe hij bij het uitvoeren van een delictscenario verslag dient te leggen. Ook wordt ingegaan op de rol die de cursist heeft in het geheel en hoe hij deze het beste kan invullen.

+', + 'learning_goals' => '

Na afronding van dit verdiepingsleertraject weet de forensisch professional:

+ +', + 'review' => '', + 'certification' => '', + 'extra_information' => '

Dit product is een gratis product uit de Forensische Leerlijn. Om hier toegang toe te krijgen, heb je de volgende aanmeldcode nodig: EXTECAWEBSITE. Klik hier om te kijken hoe je toegang krijgt.

', + 'target_audience' => '

De doelgroep bestaat uit medewerkers die werkzaam zijn in de forensische zorg (ambulant, gesloten en open) en direct contact met cliënten hebben. Het kan ook dat ze werkzaam zijn in een instelling met cliënten waar het gedrag vraagt om een forensische benadering, eventueel zonder forensische titel. Veel voorkomende opleidingsachtergronden zijn:

+', + 'lead_time' => '1 uur', + 'partner' => '', + 'owner' => '', + 'contract_agreements' => '', + 'image' => 'https://ggzecademy.nl/web/uploads/2019/08/ForDeA_LT_0175_tegel.png', + + 'video' => 'https://ggzecademy.mediasite.com/Mediasite/Play/bda205ec12b84628870fe52eac5d06fb1d?autoStart=false', + 'code' => 'ForDeA_LT_0175', + 'seo_title' => '%%title%% – gratis leerproducten | %%sitename%%', + 'meta_description' => 'Delictanalyse is een gratis leerproduct ontwikkeld voor ggz-professionals. E-learningmodules van hoge kwaliteit – leren waar en wanneer jij dat wilt.', + 'url' => 'https://ggzecademy.nl/product/delictanalyse/', + 'sharepoint_link' => 'https://ggzecademynl.sharepoint.com/:f:/r/sites/data/Producten/ForDeA_LT_0175%20(Delictanalyse)?csf=1&web=1&e=NjnaL0', + 'support_link' => 'https://support.ggzecademy.nl/support/solutions/folders/23000030808', + 'support_tickets_link' => '', + 'filters' => [ + 'category' => 'Forensisch', + 'audience' => 'agogen, ervaringswerkers, maatschappelijk werkers, psychologen, sociaal pedagogisch hulpverleners, sociaal psychiatrisch verpleegkundigen, sociotherapeuten, vaktherapeuten, verpleegkundigen', + 'course' => 'Forensische leerlijn', + 'level' => 'HBO, MBO 3/4', + 'status' => 'opgeleverd', + 'theme' => '', + 'type' => 'Geen lid / zelfstandig professional, GGZ-instellingen, MBO- en HBO-scholen', + ], + 'accreditatie' => 'Kwaliteitsregister V&V - 1 +Verpleegkundig Specialisten Register - 1 +Registerplein - 1' +],[ + 'published' => true, + 'title' => 'Escalatie en de-escalatie', + 'short_description' => '

In de forensische zorg is het mogelijk dat een situatie in contact met de cliënt in behandelcontact escaleert. Dit kan verschillende oorzaken hebben. Wees bekend met deze oorzaken en weet hoe te handelen bij een escalatie zodat (mogelijke) dreiging en agressie voorkomen kan worden. Dit doe je door te de-escaleren. Dit alles gericht op het herstel van de cliënt.

+', + 'learning_goals' => '

Na afronding van het leertraject weet de forensisch professional:

+