From 61320b44d8361aa9588a5bb5d92f4ccb7a5d0de4 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Sun, 18 Jan 2026 07:44:29 +0000 Subject: [PATCH] Initial commit: Horux Backend API - API REST para gestion de facturas electronicas mexicanas (CFDI) - Laravel 9 con autenticacion OAuth 2.0 (Passport) - Integracion con Syntage, Clerk y Facturama - 30 modelos Eloquent, 39 controladores - Documentacion completa en /docs Co-Authored-By: Claude Opus 4.5 --- .editorconfig | 18 + .env.example | 58 + .gitattributes | 11 + .gitignore | 36 + .rnd | Bin 0 -> 1024 bytes README.md | 173 + app/Console/Kernel.php | 32 + app/Exceptions/Handler.php | 50 + .../CancellationTypeController.php | 85 + .../Controllers/ConciliationController.php | 85 + app/Http/Controllers/Controller.php | 13 + app/Http/Controllers/CurrencyController.php | 88 + app/Http/Controllers/DimensionController.php | 85 + .../EconomicActivityController.php | 85 + .../Controllers/ExpenditureController.php | 85 + app/Http/Controllers/IndustryController.php | 85 + app/Http/Controllers/InvoiceController.php | 1811 ++++ .../Controllers/InvoiceLineController.php | 287 + .../Controllers/InvoicePaymentController.php | 460 + .../Controllers/InvoiceRequestController.php | 85 + .../Controllers/InvoiceTypeController.php | 88 + app/Http/Controllers/ManagerOTPController.php | 85 + .../Controllers/PaymentMethodController.php | 88 + .../Controllers/PaymentTypeController.php | 88 + app/Http/Controllers/PostalCodeController.php | 88 + .../Controllers/ProdServCodeController.php | 117 + app/Http/Controllers/RfcController.php | 116 + app/Http/Controllers/RiskController.php | 107 + app/Http/Controllers/RoleController.php | 85 + .../Controllers/SalesRevenueController.php | 85 + app/Http/Controllers/StatusController.php | 85 + app/Http/Controllers/TaxController.php | 88 + app/Http/Controllers/TaxRateController.php | 88 + app/Http/Controllers/TaxRegimeController.php | 88 + app/Http/Controllers/TaxpayerController.php | 312 + app/Http/Controllers/UnitCodeController.php | 117 + app/Http/Controllers/UsageController.php | 88 + app/Http/Kernel.php | 69 + app/Http/Middleware/Authenticate.php | 21 + app/Http/Middleware/Cors.php | 24 + app/Http/Middleware/EncryptCookies.php | 17 + .../PreventRequestsDuringMaintenance.php | 17 + .../Middleware/RedirectIfAuthenticated.php | 32 + app/Http/Middleware/ThrottleEndpoint.php | 33 + app/Http/Middleware/TrimStrings.php | 19 + app/Http/Middleware/TrustHosts.php | 20 + app/Http/Middleware/TrustProxies.php | 28 + app/Http/Middleware/ValidateSignature.php | 22 + app/Http/Middleware/VerifyCsrfToken.php | 17 + app/Imports/InvoicesImport.php | 158 + app/Imports/LineItemsImport.php | 124 + app/Imports/ProdServCodesImport.php | 44 + app/Imports/UnitCodesImport.php | 44 + app/Models/CancellationType.php | 27 + app/Models/Conciliation.php | 30 + app/Models/Currency.php | 35 + app/Models/Dimension.php | 22 + app/Models/EconomicActivity.php | 17 + app/Models/Expenditure.php | 22 + app/Models/Industry.php | 11 + app/Models/Invoice.php | 230 + app/Models/InvoiceLine.php | 62 + app/Models/InvoicePayment.php | 162 + app/Models/InvoiceRequest.php | 17 + app/Models/InvoiceType.php | 34 + app/Models/LinkedSocialAccount.php | 21 + app/Models/ManagerOTP.php | 22 + app/Models/PaymentMethod.php | 35 + app/Models/PaymentType.php | 34 + app/Models/PostalCode.php | 22 + app/Models/ProdServCode.php | 22 + app/Models/Rfc.php | 62 + app/Models/Risk.php | 17 + app/Models/Role.php | 27 + app/Models/SalesRevenue.php | 22 + app/Models/Status.php | 33 + app/Models/Tax.php | 23 + app/Models/TaxRate.php | 23 + app/Models/TaxRegime.php | 17 + app/Models/Taxpayer.php | 48 + app/Models/UnitCode.php | 23 + app/Models/Usage.php | 23 + app/Models/User.php | 70 + app/Providers/AppServiceProvider.php | 42 + app/Providers/AuthServiceProvider.php | 30 + app/Providers/BroadcastServiceProvider.php | 21 + app/Providers/EventServiceProvider.php | 42 + app/Providers/RouteServiceProvider.php | 65 + app/Services/SocialAccountsService.php | 47 + app/Services/SocialUserResolver.php | 34 + artisan | 53 + bootstrap/app.php | 55 + bootstrap/cache/.gitignore | 2 + composer.json | 68 + composer.lock | 9236 +++++++++++++++++ config/app.php | 221 + config/auth.php | 115 + config/broadcasting.php | 70 + config/cache.php | 110 + config/cors.php | 34 + config/database.php | 151 + config/filesystems.php | 76 + config/hashing.php | 52 + config/logging.php | 122 + config/mail.php | 118 + config/passport.php | 62 + config/queue.php | 93 + config/services.php | 41 + config/session.php | 201 + config/view.php | 36 + database/.gitignore | 1 + database/factories/UserFactory.php | 40 + .../2014_08_15_233326_create_roles_table.php | 31 + .../2014_10_12_000000_create_users_table.php | 41 + ...12_100000_create_password_resets_table.php | 32 + ...1_000001_create_oauth_auth_codes_table.php | 31 + ...00002_create_oauth_access_tokens_table.php | 33 + ...0003_create_oauth_refresh_tokens_table.php | 29 + ...6_01_000004_create_oauth_clients_table.php | 35 + ...te_oauth_personal_access_clients_table.php | 28 + ...04_create_linked_social_accounts_table.php | 38 + .../2024_08_15_233453_create_rfcs_table.php | 32 + ...024_08_15_234436_create_rfc_user_table.php | 41 + ...8_15_235720_create_invoice_types_table.php | 32 + .../2024_08_15_235747_create_usages_table.php | 32 + ...8_15_235817_create_payment_types_table.php | 32 + ...15_235836_create_payment_methods_table.php | 32 + ...4_08_15_235915_create_currencies_table.php | 32 + ...024_08_16_000014_create_statuses_table.php | 32 + ...002228_create_cancellation_types_table.php | 32 + ...24_08_16_180040_create_taxpayers_table.php | 47 + .../2024_08_16_180412_create_risks_table.php | 42 + ...80444_create_economic_activities_table.php | 32 + ..._08_16_180527_create_tax_regimes_table.php | 32 + ...reate_economic_activity_taxpayer_table.php | 45 + ...80658_create_tax_regime_taxpayer_table.php | 42 + ...8_16_180718_create_risk_taxpayer_table.php | 42 + ...4_08_16_180734_create_industries_table.php | 32 + ...024_08_16_184641_create_invoices_table.php | 96 + ...6_184840_create_invoice_payments_table.php | 52 + ..._184855_create_industry_taxpayer_table.php | 43 + ...8_16_185025_create_invoice_lines_table.php | 70 + ...17_163140_create_manager_o_t_p_s_table.php | 45 + ...7_163203_create_invoice_requests_table.php | 38 + ...4_08_17_163228_create_dimensions_table.php | 32 + ..._17_163246_create_sales_revenues_table.php | 43 + ...08_17_163300_create_expenditures_table.php | 43 + ...1_04_010614_create_conciliations_table.php | 45 + ...17_154958_create_prod_serv_codes_table.php | 32 + ...5_01_17_155249_create_unit_codes_table.php | 32 + ...01_17_155304_create_postal_codes_table.php | 32 + .../2025_01_17_155352_create_taxes_table.php | 32 + ...25_01_17_170350_create_tax_rates_table.php | 34 + database/seeders/DatabaseSeeder.php | 24 + docs/API.md | 592 ++ docs/ARCHITECTURE.md | 434 + docs/INSTALLATION.md | 383 + docs/MODELS.md | 447 + lang/en/auth.php | 20 + lang/en/pagination.php | 19 + lang/en/passwords.php | 22 + lang/en/validation.php | 184 + package.json | 14 + phpunit.xml | 31 + public/.htaccess | 21 + public/favicon.ico | 0 public/index.php | 55 + public/robots.txt | 2 + resources/css/app.css | 0 resources/js/app.js | 1 + resources/js/bootstrap.js | 35 + resources/views/mi_vista.blade.php | 10 + resources/views/welcome.blade.php | 132 + routes/api.php | 142 + routes/channels.php | 18 + routes/console.php | 19 + routes/web.php | 18 + storage/app/.gitignore | 3 + storage/app/public/.gitignore | 2 + storage/framework/.gitignore | 9 + storage/framework/cache/.gitignore | 3 + storage/framework/cache/data/.gitignore | 2 + storage/framework/sessions/.gitignore | 2 + storage/framework/testing/.gitignore | 2 + storage/framework/views/.gitignore | 2 + storage/logs/.gitignore | 2 + tests/CreatesApplication.php | 22 + tests/Feature/ExampleTest.php | 21 + tests/TestCase.php | 10 + tests/Unit/ExampleTest.php | 18 + vite.config.js | 11 + 191 files changed, 22895 insertions(+) create mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .rnd create mode 100644 README.md create mode 100644 app/Console/Kernel.php create mode 100644 app/Exceptions/Handler.php create mode 100644 app/Http/Controllers/CancellationTypeController.php create mode 100644 app/Http/Controllers/ConciliationController.php create mode 100644 app/Http/Controllers/Controller.php create mode 100644 app/Http/Controllers/CurrencyController.php create mode 100644 app/Http/Controllers/DimensionController.php create mode 100644 app/Http/Controllers/EconomicActivityController.php create mode 100644 app/Http/Controllers/ExpenditureController.php create mode 100644 app/Http/Controllers/IndustryController.php create mode 100644 app/Http/Controllers/InvoiceController.php create mode 100644 app/Http/Controllers/InvoiceLineController.php create mode 100644 app/Http/Controllers/InvoicePaymentController.php create mode 100644 app/Http/Controllers/InvoiceRequestController.php create mode 100644 app/Http/Controllers/InvoiceTypeController.php create mode 100644 app/Http/Controllers/ManagerOTPController.php create mode 100644 app/Http/Controllers/PaymentMethodController.php create mode 100644 app/Http/Controllers/PaymentTypeController.php create mode 100644 app/Http/Controllers/PostalCodeController.php create mode 100644 app/Http/Controllers/ProdServCodeController.php create mode 100644 app/Http/Controllers/RfcController.php create mode 100644 app/Http/Controllers/RiskController.php create mode 100644 app/Http/Controllers/RoleController.php create mode 100644 app/Http/Controllers/SalesRevenueController.php create mode 100644 app/Http/Controllers/StatusController.php create mode 100644 app/Http/Controllers/TaxController.php create mode 100644 app/Http/Controllers/TaxRateController.php create mode 100644 app/Http/Controllers/TaxRegimeController.php create mode 100644 app/Http/Controllers/TaxpayerController.php create mode 100644 app/Http/Controllers/UnitCodeController.php create mode 100644 app/Http/Controllers/UsageController.php create mode 100644 app/Http/Kernel.php create mode 100644 app/Http/Middleware/Authenticate.php create mode 100644 app/Http/Middleware/Cors.php create mode 100644 app/Http/Middleware/EncryptCookies.php create mode 100644 app/Http/Middleware/PreventRequestsDuringMaintenance.php create mode 100644 app/Http/Middleware/RedirectIfAuthenticated.php create mode 100644 app/Http/Middleware/ThrottleEndpoint.php create mode 100644 app/Http/Middleware/TrimStrings.php create mode 100644 app/Http/Middleware/TrustHosts.php create mode 100644 app/Http/Middleware/TrustProxies.php create mode 100644 app/Http/Middleware/ValidateSignature.php create mode 100644 app/Http/Middleware/VerifyCsrfToken.php create mode 100644 app/Imports/InvoicesImport.php create mode 100644 app/Imports/LineItemsImport.php create mode 100644 app/Imports/ProdServCodesImport.php create mode 100644 app/Imports/UnitCodesImport.php create mode 100644 app/Models/CancellationType.php create mode 100644 app/Models/Conciliation.php create mode 100644 app/Models/Currency.php create mode 100644 app/Models/Dimension.php create mode 100644 app/Models/EconomicActivity.php create mode 100644 app/Models/Expenditure.php create mode 100644 app/Models/Industry.php create mode 100644 app/Models/Invoice.php create mode 100644 app/Models/InvoiceLine.php create mode 100644 app/Models/InvoicePayment.php create mode 100644 app/Models/InvoiceRequest.php create mode 100644 app/Models/InvoiceType.php create mode 100644 app/Models/LinkedSocialAccount.php create mode 100644 app/Models/ManagerOTP.php create mode 100644 app/Models/PaymentMethod.php create mode 100644 app/Models/PaymentType.php create mode 100644 app/Models/PostalCode.php create mode 100644 app/Models/ProdServCode.php create mode 100644 app/Models/Rfc.php create mode 100644 app/Models/Risk.php create mode 100644 app/Models/Role.php create mode 100644 app/Models/SalesRevenue.php create mode 100644 app/Models/Status.php create mode 100644 app/Models/Tax.php create mode 100644 app/Models/TaxRate.php create mode 100644 app/Models/TaxRegime.php create mode 100644 app/Models/Taxpayer.php create mode 100644 app/Models/UnitCode.php create mode 100644 app/Models/Usage.php create mode 100644 app/Models/User.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/EventServiceProvider.php create mode 100644 app/Providers/RouteServiceProvider.php create mode 100644 app/Services/SocialAccountsService.php create mode 100644 app/Services/SocialUserResolver.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/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/passport.php create mode 100644 config/queue.php create mode 100644 config/services.php create mode 100644 config/session.php create mode 100644 config/view.php create mode 100644 database/.gitignore create mode 100644 database/factories/UserFactory.php create mode 100644 database/migrations/2014_08_15_233326_create_roles_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/2016_06_01_000001_create_oauth_auth_codes_table.php create mode 100644 database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php create mode 100644 database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php create mode 100644 database/migrations/2016_06_01_000004_create_oauth_clients_table.php create mode 100644 database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php create mode 100644 database/migrations/2024_07_07_022404_create_linked_social_accounts_table.php create mode 100644 database/migrations/2024_08_15_233453_create_rfcs_table.php create mode 100644 database/migrations/2024_08_15_234436_create_rfc_user_table.php create mode 100644 database/migrations/2024_08_15_235720_create_invoice_types_table.php create mode 100644 database/migrations/2024_08_15_235747_create_usages_table.php create mode 100644 database/migrations/2024_08_15_235817_create_payment_types_table.php create mode 100644 database/migrations/2024_08_15_235836_create_payment_methods_table.php create mode 100644 database/migrations/2024_08_15_235915_create_currencies_table.php create mode 100644 database/migrations/2024_08_16_000014_create_statuses_table.php create mode 100644 database/migrations/2024_08_16_002228_create_cancellation_types_table.php create mode 100644 database/migrations/2024_08_16_180040_create_taxpayers_table.php create mode 100644 database/migrations/2024_08_16_180412_create_risks_table.php create mode 100644 database/migrations/2024_08_16_180444_create_economic_activities_table.php create mode 100644 database/migrations/2024_08_16_180527_create_tax_regimes_table.php create mode 100644 database/migrations/2024_08_16_180635_create_economic_activity_taxpayer_table.php create mode 100644 database/migrations/2024_08_16_180658_create_tax_regime_taxpayer_table.php create mode 100644 database/migrations/2024_08_16_180718_create_risk_taxpayer_table.php create mode 100644 database/migrations/2024_08_16_180734_create_industries_table.php create mode 100644 database/migrations/2024_08_16_184641_create_invoices_table.php create mode 100644 database/migrations/2024_08_16_184840_create_invoice_payments_table.php create mode 100644 database/migrations/2024_08_16_184855_create_industry_taxpayer_table.php create mode 100644 database/migrations/2024_08_16_185025_create_invoice_lines_table.php create mode 100644 database/migrations/2024_08_17_163140_create_manager_o_t_p_s_table.php create mode 100644 database/migrations/2024_08_17_163203_create_invoice_requests_table.php create mode 100644 database/migrations/2024_08_17_163228_create_dimensions_table.php create mode 100644 database/migrations/2024_08_17_163246_create_sales_revenues_table.php create mode 100644 database/migrations/2024_08_17_163300_create_expenditures_table.php create mode 100644 database/migrations/2025_01_04_010614_create_conciliations_table.php create mode 100644 database/migrations/2025_01_17_154958_create_prod_serv_codes_table.php create mode 100644 database/migrations/2025_01_17_155249_create_unit_codes_table.php create mode 100644 database/migrations/2025_01_17_155304_create_postal_codes_table.php create mode 100644 database/migrations/2025_01_17_155352_create_taxes_table.php create mode 100644 database/migrations/2025_01_17_170350_create_tax_rates_table.php create mode 100644 database/seeders/DatabaseSeeder.php create mode 100644 docs/API.md create mode 100644 docs/ARCHITECTURE.md create mode 100644 docs/INSTALLATION.md create mode 100644 docs/MODELS.md create mode 100644 lang/en/auth.php create mode 100644 lang/en/pagination.php create mode 100644 lang/en/passwords.php create mode 100644 lang/en/validation.php create mode 100644 package.json create mode 100644 phpunit.xml create mode 100644 public/.htaccess create mode 100644 public/favicon.ico create mode 100644 public/index.php create mode 100644 public/robots.txt create mode 100644 resources/css/app.css create mode 100644 resources/js/app.js create mode 100644 resources/js/bootstrap.js create mode 100644 resources/views/mi_vista.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 storage/app/.gitignore create mode 100644 storage/app/public/.gitignore create mode 100644 storage/framework/.gitignore create mode 100644 storage/framework/cache/.gitignore create mode 100644 storage/framework/cache/data/.gitignore create mode 100644 storage/framework/sessions/.gitignore create mode 100644 storage/framework/testing/.gitignore create mode 100644 storage/framework/views/.gitignore create mode 100644 storage/logs/.gitignore 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 vite.config.js diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8f0de65 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..478972c --- /dev/null +++ b/.env.example @@ -0,0 +1,58 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailpit +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7dbbf41 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..23005ef --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode + +# Database dumps +*.sql + +# OS files +.DS_Store +Thumbs.db + +# Logs +*.log +storage/logs/* +!storage/logs/.gitkeep + +# Cache +bootstrap/cache/*.php +storage/framework/cache/* +storage/framework/sessions/* +storage/framework/views/* diff --git a/.rnd b/.rnd new file mode 100644 index 0000000000000000000000000000000000000000..091b1cc27932cab9f05fed887c70293212ba2d77 GIT binary patch literal 1024 zcmV+b1poW5ALC-7NH`_}wQm@kmCY`atn6peELzm=mO1;dFZ+;Y(u6fct>>CLHOg;` zsuLQ*3`VQ;p_e{o^%3^P0?d`Zy45wd&Ds z8;L)Nf7pZa&z=+T`l!-GgBQe9Z@0>f1af=f|D)grXi3Ufdi2YaI6zq=3)Fkp4&yVB z&yMkowV=2&2vCe5+xdA-mt8^((&!fi*Rf1C6V7;YjS4Aw8Rl9UDQ_b|Sh3xdI(p_*KP2Zo{wV8G+);Q+H;SmDN1UiOkbO@tQdgq%sxct zMVsyc2!Zy*JfCVO3g1>aMczMEgIT@U$nsqAwE7K4kPEzHK(I(`3X*d)zWAPreF~Iy zs%@iiH4){gyc9eM{S_^y@31>qv$hl3D<86Y%IeIvcxcW*n*doKL!x=^EOrAzQW@h8>!UCEt#HcE zDjzf3pwiu4f-Q@=Iq^@_<*a;;Y9Tq4Js-5gSU=&wQ3i<8LBj|dMRSh`E;tJcq&HlG z?o^EvBOf4f9}8w>g6>*Xkqzw*8X))zA2GPmS(W-&JZYY{xRIw+$#jvOro=V=opu@g z>k5;6XS-BQmME7F#pjrVyl7FbeQTh)(Tp~Lh4~17Mx{T@hF|nPYiVjrX=}v}QfwK> u;Cy$xxwMyL9yR}YFr4&UM197+LkDoTmrNJN;r@XhrsKq^MU)k+tp}O%==CfB literal 0 HcmV?d00001 diff --git a/README.md b/README.md new file mode 100644 index 0000000..b42dbc0 --- /dev/null +++ b/README.md @@ -0,0 +1,173 @@ +# Horux Backend API + +API REST Backend especializada en gestión de facturas electrónicas mexicanas (CFDI). + +## Descripcion + +Horux es una plataforma de gestión fiscal que permite a los usuarios: +- Gestionar y consultar facturas electrónicas (CFDI) emitidas y recibidas +- Realizar conciliaciones de facturas +- Obtener metricas financieras y analisis de rentabilidad +- Consultar informacion de contribuyentes y riesgos fiscales +- Importar facturas masivamente desde archivos Excel + +## Tecnologias + +| Tecnologia | Version | Proposito | +|------------|---------|-----------| +| PHP | 8.0.2+ | Lenguaje principal | +| Laravel | 9.19 | Framework backend | +| MySQL | 5.7+ | Base de datos | +| Laravel Passport | 11.0 | Autenticacion OAuth 2.0 | +| Maatwebsite Excel | 3.1 | Importacion de Excel | +| Vite | 4.0 | Build de assets | + +## Integraciones Externas + +- **Syntage API** - Obtencion de facturas y datos fiscales del SAT +- **Clerk** - Autenticacion social OAuth 2.0 +- **Facturama** - Generacion y timbrado de CFDIs + +## Estructura del Proyecto + +``` +Horux_back/ +├── app/ +│ ├── Console/ # Comandos Artisan +│ ├── Exceptions/ # Manejo de excepciones +│ ├── Http/ +│ │ ├── Controllers/ # 39 controladores +│ │ ├── Middleware/ # Middleware personalizado +│ │ └── Kernel.php +│ ├── Imports/ # Importadores Excel +│ ├── Models/ # 30 modelos Eloquent +│ ├── Providers/ # Service Providers +│ └── Services/ # Servicios de negocio +├── bootstrap/ # Inicializacion +├── config/ # Configuracion +├── database/ +│ ├── migrations/ # 41 migraciones +│ ├── seeders/ # Seeders +│ └── factories/ # Model factories +├── docs/ # Documentacion +├── public/ # Punto de entrada web +├── resources/ # Vistas y assets +├── routes/ +│ ├── api.php # Rutas API (54+ endpoints) +│ └── web.php # Rutas web +├── storage/ # Almacenamiento +├── tests/ # Tests PHPUnit +└── vendor/ # Dependencias +``` + +## Instalacion Rapida + +```bash +# Clonar repositorio +git clone +cd Horux_back + +# Instalar dependencias PHP +composer install + +# Instalar dependencias NPM +npm install + +# Configurar entorno +cp .env.example .env +php artisan key:generate + +# Configurar base de datos en .env +# DB_DATABASE=horux360bd +# DB_USERNAME=tu_usuario +# DB_PASSWORD=tu_password + +# Ejecutar migraciones +php artisan migrate + +# Configurar Passport +php artisan passport:install + +# Iniciar servidor +php artisan serve +``` + +## Documentacion + +- [Guia de Instalacion](docs/INSTALLATION.md) +- [Documentacion de API](docs/API.md) +- [Modelos y Base de Datos](docs/MODELS.md) +- [Arquitectura](docs/ARCHITECTURE.md) + +## Endpoints Principales + +### Autenticacion +| Metodo | Endpoint | Descripcion | +|--------|----------|-------------| +| POST | `/api/auth` | Autenticacion con Clerk | + +### Facturas +| Metodo | Endpoint | Descripcion | +|--------|----------|-------------| +| GET | `/api/obtener-facturas` | Obtener todas las facturas | +| GET | `/api/facturas-emitidas` | Facturas emitidas | +| GET | `/api/facturas-recibidas` | Facturas recibidas | +| POST | `/api/conciliar-facturas` | Conciliar facturas | +| GET | `/api/descargar-factura` | Descargar CFDI | + +### Metricas +| Metodo | Endpoint | Descripcion | +|--------|----------|-------------| +| GET | `/api/obtener-metricas` | Metricas globales | +| GET | `/api/obtener-metricas-mensuales` | Metricas por mes | +| GET | `/api/ivaAFavor` | IVA a favor | + +Ver documentacion completa en [docs/API.md](docs/API.md) + +## Modelos Principales + +- **User** - Usuarios del sistema +- **Rfc** - RFCs asociados a usuarios +- **Invoice** - Facturas electronicas +- **InvoiceLine** - Lineas/conceptos de facturas +- **InvoicePayment** - Pagos de facturas (PPD) +- **Taxpayer** - Informacion de contribuyentes + +Ver documentacion completa en [docs/MODELS.md](docs/MODELS.md) + +## Requisitos del Sistema + +- PHP >= 8.0.2 +- Composer >= 2.0 +- MySQL >= 5.7 o MariaDB >= 10.3 +- Node.js >= 16.0 +- NPM >= 8.0 + +## Variables de Entorno Requeridas + +```env +APP_NAME=Horux +APP_ENV=production +APP_KEY= +APP_DEBUG=false +APP_URL=https://tu-dominio.com + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=horux360bd +DB_USERNAME= +DB_PASSWORD= + +# Passport OAuth +PASSPORT_CLIENT_ID= +PASSPORT_CLIENT_SECRET= +``` + +## Licencia + +Proyecto propietario - Todos los derechos reservados. + +## Contacto + +Para soporte tecnico o consultas sobre el proyecto. diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php new file mode 100644 index 0000000..d8bc1d2 --- /dev/null +++ b/app/Console/Kernel.php @@ -0,0 +1,32 @@ +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/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 0000000..82a37e4 --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,50 @@ +, \Psr\Log\LogLevel::*> + */ + protected $levels = [ + // + ]; + + /** + * A list of the exception types that are not reported. + * + * @var array> + */ + protected $dontReport = [ + // + ]; + + /** + * A list of the inputs that are never flashed to the session on validation exceptions. + * + * @var array + */ + protected $dontFlash = [ + 'current_password', + 'password', + 'password_confirmation', + ]; + + /** + * Register the exception handling callbacks for the application. + * + * @return void + */ + public function register() + { + $this->reportable(function (Throwable $e) { + // + }); + } +} diff --git a/app/Http/Controllers/CancellationTypeController.php b/app/Http/Controllers/CancellationTypeController.php new file mode 100644 index 0000000..3113df6 --- /dev/null +++ b/app/Http/Controllers/CancellationTypeController.php @@ -0,0 +1,85 @@ +invoicePaymentController = $invoicePaymentController; + } + + public function ingresos(Request $request) { + try { + $postdate = Carbon::parse($request->date)->addMonth()->format('Y-m'); + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/insights/'. $request->rfc .'/sales-revenue?options[from]='.$request->date.'-01T06%3A00%3A00&options[to]='.$postdate.'-01T05%3A59%3A59&options[periodicity]=monthly&options[type]=total'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $egresos = $this->egresos($request); + $data = $response->json(); + + // Filtrar los datos y eliminar claves numéricas + $filteredData = array_values(collect($data['data']) + ->where('date', $request->date) + ->all()); + + $filteredEgresos = array_values(collect($egresos['data']) + ->where('date', $request->date) + ->all()); + + return response()->json([ + 'ingresos' => $filteredData, + 'egresos' => $filteredEgresos, + 'datos' => $data + ]); + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + public function egresos(Request $request) { + try { + $postdate = Carbon::parse($request->date)->addMonth()->format('Y-m'); + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/insights/'. $request->rfc .'/expenditures?options[from]='.$request->date.'-01T06%3A00%3A00&options[to]='.$postdate.'-01T05%3A59%3A59&options[periodicity]=monthly&options[type]=total'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + return $data; + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + public function ivaAFavor(Request $request) { + try { + $postdate = Carbon::parse($request->date)->addMonth()->format('Y-m'); + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'.$request->rfc.'/invoices?options[from]='.$request->date.'-01T06%3A00%3A00&options[to]='.$postdate.'-01T05%3A59%3A59&options[periodicity]=monthly&options[type]=total'); + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + $fecha = $request->date; + $filteredData = array_values(collect($data['hydra:member']) + ->where('paymentType', "PUE") + ->where("cancellationProcessStatus", null) + //->where("isReceiver", true) + ->filter(function ($item) use ($fecha) { + // Escape any special characters in the user-provided date + $escapedFecha = preg_quote($fecha, '/'); + return preg_match("/^$escapedFecha/", $item['issuedAt']); + }) + ->all()); + $totalIvaAFavor = 0; + $totalIvaAPagar = 0; + foreach ($filteredData as $invoice) { + // Check if the invoice is received by the user (isReceiver) + if ($invoice['isReceiver']) { + // Access the transferredTaxes object + $transferredTaxes = $invoice['transferredTaxes']; + + // Check if transferredTaxes exists + if (isset($transferredTaxes) && is_array($transferredTaxes)) { + // Extract the valueAddedTax amount + $ivaValue = array_key_exists('valueAddedTax', $transferredTaxes) ? $transferredTaxes['valueAddedTax'] : 0; + + // Add the IVA value to the total + $totalIvaAFavor += $ivaValue; + } + + // Access the retainedTaxes object + $retainedTaxes = $invoice['retainedTaxes']; + + // Check if retainedTaxes exists + if (isset($retainedTaxes) && is_array($retainedTaxes)) { + // Extract the valueAddedTax amount + $retainedIvaValue = array_key_exists('valueAddedTax', $retainedTaxes) ? $retainedTaxes['valueAddedTax'] : 0; + + // Add the retained IVA value to the total + $totalIvaAFavor += $retainedIvaValue; + } + + } else { + $transferredTaxes = $invoice['transferredTaxes']; + + // Check if transferredTaxes exists + if (isset($transferredTaxes) && is_array($transferredTaxes)) { + // Extract the valueAddedTax amount + $ivaValue = array_key_exists('valueAddedTax', $transferredTaxes) ? $transferredTaxes['valueAddedTax'] : 0; + + // Add the IVA value to the total + $totalIvaAPagar += $ivaValue; + } + } + } + + /* + $filteredData = array_values(collect($filteredData) + ->where("issuedAt", "~/^2024-08/") + ->all()); + */ + return [ + 'total_iva_a_favor' => $totalIvaAFavor, + 'total_iva_a_pagar' => $totalIvaAPagar, + 'datos_filtrados' => $filteredData // Include the filtered data if needed + ]; + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + + public function retenciones(Request $request) { + try { + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'.$request->rfc.'/tax-retentions'); + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + return $response->json(); + + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + + public function obtenerFacturas(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $now = Carbon::now(); + $maxPast = Carbon::now()->subYears(3); + $first_time = false; + $invoice_request = InvoiceRequest::where('rfc_id', $rfc->id)->where('type', 'invoice')->first(); + if ($invoice_request) { + $last_request = new Carbon($invoice_request->requested_at); + $min_days = ($last_request->diff($now)->days > 1) ? true : null; + } else { + $first_time = true; + $min_days = true; + $invoice_request = new InvoiceRequest(); + } + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray()) && $first_time == true) { + $currentMontly = $maxPast; + $monthlyMaxPeriods = 36; + $startMonthly = 0; + + while ($startMonthly <= $monthlyMaxPeriods) { + if ($currentMontly->lt(Carbon::parse($now)->addMonth())) { + + $postMontly = Carbon::parse($currentMontly)->addMonth()->format('Y-m'); + + try { + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'. $request->rfc .'/invoices?issuedAt[before]='. $postMontly .'-01T06%3A00%3A00&issuedAt[after]='. $currentMontly->format('Y-m') .'-01T05%3A59%3A59'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + $invoices = $data['hydra:member']; + + foreach ($invoices as $invoice_data) { + // code... + $invoice = Invoice::where('id', $invoice_data['uuid'])->first(); + $status = Status::where('description', strip_tags($invoice_data['cancellationProcessStatus']))->first(); + + if (!$invoice) { + $invoiceCreate = $this->setInvoice($invoice_data, $rfc); + } else if ($invoice->paid_amount != $invoice_data['paidAmount'] || $invoice->due_amount != $invoice_data['dueAmount'] || $invoice->fully_paid_at != $invoice_data['fullyPaidAt'] || $invoice->last_payment_date != $invoice_data['lastPaymentDate']) { + $invoiceCreate = $this->setInvoice($invoice_data, $rfc); + } else if ($status) { + if ($invoice->cancellation_status_id != $status->id) { + $invoiceCreate = $this->setInvoice($invoice_data, $rfc); + } + } + } + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + $currentMontly = Carbon::parse($currentMontly)->addMonth(); + $startMonthly++; + } + + $invoice_request->rfc_id = $rfc->id; + $invoice_request->type = 'invoice'; + $invoice_request->requested_at = Carbon::now(); + $invoice_request->save(); + + $time = microtime(true) - $start; + return response()->json(Invoice::where('rfc_id', $rfc->id)->get()); + + } else { + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray()) && $min_days == true) { + + $maxPast = Carbon::now()->subYears(1); + $currentMontly = $maxPast; + $monthlyMaxPeriods = 12; + $startMonthly = 0; + + while ($startMonthly <= $monthlyMaxPeriods) { + if ($currentMontly->lt(Carbon::parse($now)->addMonth())) { + + $postMontly = Carbon::parse($currentMontly)->addMonth()->format('Y-m'); + + try { + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'. $request->rfc .'/invoices?issuedAt[before]='. $postMontly .'-01T06%3A00%3A00&issuedAt[after]='. $currentMontly->format('Y-m') .'-01T05%3A59%3A59'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + $invoices = $data['hydra:member']; + + foreach ($invoices as $invoice_data) { + // code... + $invoice = Invoice::where('id', $invoice_data['uuid'])->first(); + $status = Status::where('description', strip_tags($invoice_data['cancellationProcessStatus']))->first(); + + if (!$invoice) { + $invoiceCreate = $this->setInvoice($invoice_data, $rfc); + } else if ($invoice->paid_amount != $invoice_data['paidAmount'] || $invoice->due_amount != $invoice_data['dueAmount'] || $invoice->fully_paid_at != $invoice_data['fullyPaidAt'] || $invoice->last_payment_date != $invoice_data['lastPaymentDate']) { + $invoiceCreate = $this->setInvoice($invoice_data, $rfc); + } else if ($status) { + if ($invoice->cancellation_status_id != $status->id) { + $invoiceCreate = $this->setInvoice($invoice_data, $rfc); + } + } + } + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + $currentMontly = Carbon::parse($currentMontly)->addMonth(); + $startMonthly++; + } + + $invoice_request->rfc_id = $rfc->id; + $invoice_request->type = 'invoice'; + $invoice_request->requested_at = Carbon::now(); + $invoice_request->save(); + + $time = microtime(true) - $start; + return response()->json(Invoice::where('rfc_id', $rfc->id)->get()); + + } else if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + return response()->json(Invoice::where('rfc_id', $rfc->id)->get()); + } + } + } + + public function endpointObtenerFacturas(Request $request) { + + $user = $request->user(); + + $invoiceType = $request->type; + + $initialDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->initialDate, 'CST'); + $finalDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->finalDate, 'CST'); + + $startDateUTC = $initialDateCST->copy()->firstOfMonth()->setTimezone('UTC'); + $endDateUTC = $finalDateCST->copy()->endOfMonth()->setTimezone('UTC'); + + /** + * RFCs opcionales + */ + $issuerRfc = null; + $receiverRfc = null; + + if ($request->issuerRfc) { + $issuerRfc = Rfc::where('rfc', strip_tags($request->issuerRfc))->first(); + } + + if ($request->receiverRfc) { + $receiverRfc = Rfc::where('rfc', strip_tags($request->receiverRfc))->first(); + } + + /** + * Validar que al menos uno venga en el request + */ + if (!$issuerRfc && !$receiverRfc) { + return response()->json([ + 'error' => 'Debe seleccionar un RFC emisor o receptor' + ], 422); + } + + $userRfcIds = $user->rfcs->pluck('id')->toArray(); + + /** + * Query base + */ + $query = Invoice::where('invoice_type_id', $invoiceType) + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]); + + /** + * Aplicar filtro según el RFC enviado y autorizado + */ + if ($issuerRfc && in_array($issuerRfc->id, $userRfcIds)) { + $query->where('issuer_rfc_id', $issuerRfc->id); + } elseif ($receiverRfc && in_array($receiverRfc->id, $userRfcIds)) { + $query->where('receiver_rfc_id', $receiverRfc->id); + } else { + return response()->json(['error' => 'No autorizado'], 403); + } + + return response()->json($query->get()); + + } + + public function facturasEmitidas(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + $initialDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->initialDate, 'CST'); + $finalDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->finalDate, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $initialDateCST->copy()->firstOfMonth(); + $endDateCST = $finalDateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->whereBetween('issued_at',[$startDateUTC, $endDateUTC]) + ->orderBy('issued_at', 'asc') + ->with(['conciliations' => function($query) use ($rfc) { + $query->where('rfc_id', $rfc->id); + } + ]) + ->get(); + return response()->json($invoices); + } + } + + public function facturasRecibidas(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + $initialDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->initialDate, 'CST'); + $finalDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->finalDate, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $initialDateCST->copy()->firstOfMonth(); + $endDateCST = $finalDateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->whereBetween('issued_at',[$startDateUTC, $endDateUTC]) + ->orderBy('issued_at', 'asc') + ->with(['conciliations' => function($query) use ($rfc) { + $query->where('rfc_id', $rfc->id); + }])->get(); + return response()->json($invoices); + } + } + + public function facturasEmitidasConciliadas(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + $initialDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->initialDate, 'CST'); + $finalDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->finalDate, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $initialDateCST->copy()->firstOfMonth(); + $endDateCST = $finalDateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->orderBy('issued_at', 'asc') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id) + ->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + })->get(); + return response()->json($invoices->sum('total_in_mxn')); + } + } + + public function facturasRecibidasConciliadas(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + $initialDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->initialDate, 'CST'); + $finalDateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->finalDate, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $initialDateCST->copy()->firstOfMonth(); + $endDateCST = $finalDateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->orderBy('issued_at', 'asc') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id) + ->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + })->get(); + return response()->json($invoices->sum('total_in_mxn')); + } + } + + public function conciliarFacturas(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + //Logica para conciliar facturas + $invoices = $request->items; + foreach($invoices as $invoice) { + //El array que viene del front solo tiene el ID y + //el boolean de conciliacion de cada invoice + $conciliation = Conciliation::firstOrNew(['invoice_id' => $invoice["id"]]); + $conciliation->rfc_id = $rfc->id; + if($invoice["formaPago"]) { + $conciliation->payment_description = $invoice["formaPago"]; + } + if($invoice["fechaPago"]) { + $conciliation->payment_at = Carbon::createFromFormat('Y-m-d', $invoice["fechaPago"], 'UTC'); + } + $conciliation->is_conciliated = $invoice["conciliado"]; + if($invoice["conciliado"] == true){ + if($invoice["fechaConciliacion"]){ + $conciliation->conciliated_at = Carbon::createFromFormat('Y-m-d', $invoice["fechaConciliacion"], 'UTC'); + } else { + $conciliation->conciliated_at = Carbon::now(); + } + } + $conciliation->save(); + } + } + + return response()->json([ + 'success' => 'Datos almacenados con exito' + ]); + } + + public function descargarFactura(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $invoice = Invoice::where('id', $request->id); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + //Logica para conciliar facturas + if ($invoice->issuer_rfc_id = $rfc->id || $invoice->receiver_rfc_id = $rfc->id) { + + + if ($request->type == "pdf") { + $type = "application/pdf"; + } else { + $type = "text/xml"; + } + + $response = Http::withHeaders([ + 'accept' => $type, + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/invoices/'. $request->id .'/cfdi'); + + if ($response->successful()) { + // Manejar la respuesta exitosa + return $response; + + } else { + // Manejar la respuesta fallida + return $response; + //return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } + } + } + + public function emitirFactura(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->issuerRfc))->first(); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + //Logica para emitir facturas + + $issuer = Taxpayer::where('rfc_id', $rfc->id)->first(); + $issuerZipCode = Invoice::where('issuer_rfc_id', $rfc->id)->first(); + + $facturama = new Facturama\Client('pruebas', 'pruebas2011'); + + $params = [ + //"Serie"=>"A", + //"NameId"=> "1", + //"Folio"=> "999", + "CfdiType"=> $request->cfdiType, + "Currency"=> $request->currency, + "PaymentForm"=> $request->paymentForm, + "PaymentMethod"=> $request->paymentMethod, + //"Exportation"=> "01", + "Date"=> Carbon::now(), + "ExpeditionPlace"=> $issuerZipCode->zip_code, + //"OrderNumber"=> "TEST-001", + //"PaymentAccountNumber"=> "6789", + //"PaymentConditions"=> "Condiciones", + "Issuer" => + [ + "Rfc"=> $issuer->rfc, + "Name"=> $issuer->name, + "FiscalRegime"=> $request->fiscalRegime, + "TaxZipCode"=> $issuerZipCode->zip_code + ], + "Receiver" => + [ + "Rfc"=> $request->receiver->rfc, + "CfdiUse"=> $request->CfdiUse, + "Name"=> $request->receiver->name, + "FiscalRegime"=> $request->receiver->fiscalRegime, + "TaxZipCode" => $request->receiver->taxZipCode, + /*"Address"=> + [ + "Street" => "Guadalcazar del receptor", + "ExteriorNumber" => "300", + "InteriorNumber" => "A", + "Neighborhood"=> "Las lomas", + "ZipCode" => "32040", + "Municipality" => "San Luis Potosi", + "State" => "San Luis Potosi", + "Country" => "México" + ]*/ + ], + 'Items' => $request->items + //"LogoUrl"=> "https://www.ejemplos.co/wp-content/uploads/2015/11/Logo-Chanel.jpg", + //"Observations"=> "Este es un ejemplo de observaciones", + //"PaymentBankName"=> "BBVA" + ]; + + $response = $facturama->post('api-lite/3/cfdis', $params); + + if ($response->successful()) { + // Manejar la respuesta exitosa + return $response; + + } else { + // Manejar la respuesta fallida + return $response; + //return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } + } + + /** + * Escribe los Invoices en la base de datos + * + * @return \Illuminate\Http\Response + */ + public function setInvoice($invoice_data, $rfc) { + // + $invoice = Invoice::firstOrNew(['id' => $invoice_data['uuid']]); + + $invoice->api_id = $invoice_data['id']; + $invoice->rfc_id = $rfc->id; + $invoice->version = $invoice_data['version']; + $type = InvoiceType::where('id', $invoice_data['type'])->first(); + if (!$type) { + $type = new InvoiceType(); + $type->id = $invoice_data['type']; + $type->save(); + } + $invoice->invoice_type_id = $invoice_data['type']; + if ($invoice_data['usage']) { + $usage = Usage::where('id', strip_tags($invoice_data['usage']))->first(); + if (!$usage) { + $usage = new Usage(); + $usage->id = $invoice_data['usage']; + $usage->save(); + } + } + $invoice->usage_id = $invoice_data['usage']; + if ($invoice_data['paymentType']) { + $payment_type = PaymentType::where('id', strip_tags($invoice_data['paymentType']))->first(); + if (!$payment_type) { + $payment_type = new PaymentType(); + $payment_type->id = $invoice_data['paymentType']; + $payment_type->save(); + } + } + $invoice->payment_type_id = $invoice_data['paymentType']; + if ($invoice_data['paymentMethod']) { + $payment_method = PaymentMethod::where('id', strip_tags($invoice_data['paymentMethod']))->first(); + if (!$payment_method) { + $payment_method = new PaymentMethod(); + $payment_method->id = $invoice_data['paymentMethod']; + $payment_method->save(); + } + } + $invoice->payment_method_id = $invoice_data['paymentMethod']; + $invoice->zip_code = $invoice_data['placeOfIssue']; + if (!empty($invoice_data['currency'])) { + $currency = Currency::where('id', strip_tags($invoice_data['currency']))->first(); + if (!$currency) { + $currency = new Currency(); + $currency->id = $invoice_data['currency']; + $currency->save(); + } + $invoice->currency_id = $invoice_data['currency']; + } else { + $invoice->currency_id = null; + } + $invoice->exchange_rate = $invoice_data['exchangeRate']; + if ($invoice_data['status']) { + $status = Status::where('description', strip_tags($invoice_data['status']))->first(); + if (!$status) { + $status = new Status(); + $status->description = $invoice_data['status']; + $status->save(); + } + } + $invoice->status_id = $status->id; + $invoice->pac = $invoice_data['pac']; + $invoice->issued_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['issuedAt']); + $invoice->certified_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['certifiedAt']); + $cancellationType = CancellationType::where('description', strip_tags($invoice_data['cancellationStatus']))->first(); + if (!$cancellationType) { + $cancellationType = new CancellationType(); + $cancellationType->description = $invoice_data['cancellationStatus']; + $cancellationType->save(); + } + $invoice->cancellation_type_id = $cancellationType->id; + if ($invoice_data['cancellationProcessStatus']) { + $status = Status::where('description', strip_tags($invoice_data['cancellationProcessStatus']))->first(); + if (!$status) { + $status = new Status(); + $status->description = $invoice_data['cancellationProcessStatus']; + $status->save(); + } + } + $invoice->cancellation_status_id = $status->id; + if ($invoice_data['canceledAt']){ + $invoice->cancelled_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['canceledAt']); + } + $invoice->discount = $invoice_data['discount']; + $invoice->tax = $invoice_data['tax']; + $invoice->subtotal = $invoice_data['subtotal']; + $invoice->total = $invoice_data['total']; + $invoice->paid_amount = $invoice_data['paidAmount']; + $invoice->due_amount = $invoice_data['dueAmount']; + if ($invoice_data['fullyPaidAt']){ + $invoice->fully_paid_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['fullyPaidAt']); + } + if ($invoice_data['lastPaymentDate']){ + $invoice->last_payment_date = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['lastPaymentDate']); + } + $rfc = Rfc::where('rfc', strip_tags($invoice_data['issuer']['rfc']))->first(); + if (!$rfc) { + $rfc = new Rfc(); + $rfc->rfc = $invoice_data['issuer']['rfc']; + $rfc->save(); + } + $invoice->issuer_rfc_id = $rfc->id; + $invoice->issuer_name = $invoice_data['issuer']['name']; + $rfc = Rfc::where('rfc', strip_tags($invoice_data['receiver']['rfc']))->first(); + if (!$rfc) { + $rfc = new Rfc(); + $rfc->rfc = $invoice_data['receiver']['rfc']; + $rfc->save(); + } + $invoice->receiver_rfc_id = $rfc->id; + $invoice->receiver_name = $invoice_data['receiver']['name']; + $invoice->is_issuer = $invoice_data['isIssuer']; + $invoice->is_receiver = $invoice_data['isReceiver']; + $invoice->internal_id = $invoice_data['internalIdentifier']; + $invoice->reference = $invoice_data['reference']; + if ($invoice_data['creditedAmount']){ + $invoice->credited_amount = $invoice_data['creditedAmount']; + } + if ($invoice_data['subtotalCreditedAmount']){ + $invoice->subtotal_credited_amount = $invoice_data['subtotalCreditedAmount']; + } + $invoice->applied_taxes = $invoice_data['appliedTaxes']; + $invoice->total_transferred_taxes = $invoice_data['transferredTaxes']['total']; + $invoice->transferred_local_taxes = $invoice_data['transferredTaxes']['localTaxes']; + $invoice->transferred_vat = $invoice_data['transferredTaxes']['valueAddedTax']; + $invoice->transferred_sin_tax = $invoice_data['transferredTaxes']['sinTax']; + $invoice->total_retained_taxes = $invoice_data['retainedTaxes']['total']; + $invoice->retained_local_taxes = $invoice_data['retainedTaxes']['localTaxes']; + $invoice->retained_vat = $invoice_data['retainedTaxes']['valueAddedTax']; + $invoice->retained_income_tax = $invoice_data['retainedTaxes']['incomeTax']; + $invoice->retained_sin_tax = $invoice_data['retainedTaxes']['sinTax']; + $invoice->save(); + } + + public function invoiceEndpoint(Request $request) { + // + $invoice_data = $request['data']['object']; + + $invoice = Invoice::firstOrNew(['id' => $invoice_data['uuid']]); + + $invoice->api_id = $invoice_data['id']; + + $rfc = Rfc::firstOrCreate( + ['rfc' => $request['taxpayer']['id']] + ); + + $invoice->rfc_id = $rfc->id; + $invoice->version = $invoice_data['version']; + $type = InvoiceType::where('id', $invoice_data['type'])->first(); + if (!$type) { + $type = new InvoiceType(); + $type->id = $invoice_data['type']; + $type->save(); + } + $invoice->invoice_type_id = $invoice_data['type']; + if ($invoice_data['usage']) { + $usage = Usage::where('id', strip_tags($invoice_data['usage']))->first(); + if (!$usage) { + $usage = new Usage(); + $usage->id = $invoice_data['usage']; + $usage->save(); + } + } + $invoice->usage_id = $invoice_data['usage']; + if ($invoice_data['paymentType']) { + $payment_type = PaymentType::where('id', strip_tags($invoice_data['paymentType']))->first(); + if (!$payment_type) { + $payment_type = new PaymentType(); + $payment_type->id = $invoice_data['paymentType']; + $payment_type->save(); + } + } + $invoice->payment_type_id = $invoice_data['paymentType']; + if ($invoice_data['paymentMethod']) { + $payment_method = PaymentMethod::where('id', strip_tags($invoice_data['paymentMethod']))->first(); + if (!$payment_method) { + $payment_method = new PaymentMethod(); + $payment_method->id = $invoice_data['paymentMethod']; + $payment_method->save(); + } + } + $invoice->payment_method_id = $invoice_data['paymentMethod']; + $invoice->zip_code = $invoice_data['placeOfIssue']; + if ($invoice_data['currency']) { + $currency = Currency::where('id', strip_tags($invoice_data['currency']))->first(); + if (!$currency) { + $currency = new Currency(); + $currency->id = $invoice_data['currency']; + $currency->save(); + } + } + $invoice->currency_id = $invoice_data['currency']; + $invoice->exchange_rate = $invoice_data['exchangeRate']; + if ($invoice_data['status']) { + $status = Status::where('description', strip_tags($invoice_data['status']))->first(); + if (!$status) { + $status = new Status(); + $status->description = $invoice_data['status']; + $status->save(); + } + } + $invoice->status_id = $status->id; + $invoice->pac = $invoice_data['pac']; + $invoice->issued_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['issuedAt']); + $invoice->certified_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['certifiedAt']); + $cancellationType = CancellationType::where('description', strip_tags($invoice_data['cancellationStatus']))->first(); + if (!$cancellationType) { + $cancellationType = new CancellationType(); + $cancellationType->description = $invoice_data['cancellationStatus']; + $cancellationType->save(); + } + $invoice->cancellation_type_id = $cancellationType->id; + if ($invoice_data['cancellationProcessStatus']) { + $status = Status::where('description', strip_tags($invoice_data['cancellationProcessStatus']))->first(); + if (!$status) { + $status = new Status(); + $status->description = $invoice_data['cancellationProcessStatus']; + $status->save(); + } + } + $invoice->cancellation_status_id = $status->id; + if ($invoice_data['canceledAt']){ + $invoice->cancelled_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['canceledAt']); + } + $invoice->discount = $invoice_data['discount']; + $invoice->tax = $invoice_data['tax']; + $invoice->subtotal = $invoice_data['subtotal']; + $invoice->total = $invoice_data['total']; + $invoice->paid_amount = $invoice_data['paidAmount']; + $invoice->due_amount = $invoice_data['dueAmount']; + if ($invoice_data['fullyPaidAt']){ + $invoice->fully_paid_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['fullyPaidAt']); + } + if ($invoice_data['lastPaymentDate']){ + $invoice->last_payment_date = Carbon::createFromFormat('Y-m-d H:i:s', $invoice_data['lastPaymentDate']); + } + $rfc = Rfc::where('rfc', strip_tags($invoice_data['issuer']['rfc']))->first(); + if (!$rfc) { + $rfc = new Rfc(); + $rfc->rfc = $invoice_data['issuer']['rfc']; + $rfc->save(); + } + $invoice->issuer_rfc_id = $rfc->id; + $invoice->issuer_name = $invoice_data['issuer']['name']; + $rfc = Rfc::where('rfc', strip_tags($invoice_data['receiver']['rfc']))->first(); + if (!$rfc) { + $rfc = new Rfc(); + $rfc->rfc = $invoice_data['receiver']['rfc']; + $rfc->save(); + } + $invoice->receiver_rfc_id = $rfc->id; + $invoice->receiver_name = $invoice_data['receiver']['name']; + $invoice->is_issuer = $invoice_data['isIssuer']; + $invoice->is_receiver = $invoice_data['isReceiver']; + $invoice->internal_id = $invoice_data['internalIdentifier']; + $invoice->reference = $invoice_data['reference']; + if ($invoice_data['creditedAmount']){ + $invoice->credited_amount = $invoice_data['creditedAmount']; + } + if ($invoice_data['subtotalCreditedAmount']){ + $invoice->subtotal_credited_amount = $invoice_data['subtotalCreditedAmount']; + } + $invoice->applied_taxes = $invoice_data['appliedTaxes']; + $invoice->total_transferred_taxes = $invoice_data['transferredTaxes']['total']; + $invoice->transferred_local_taxes = $invoice_data['transferredTaxes']['localTaxes']; + $invoice->transferred_vat = $invoice_data['transferredTaxes']['valueAddedTax']; + $invoice->transferred_sin_tax = $invoice_data['transferredTaxes']['sinTax']; + $invoice->total_retained_taxes = $invoice_data['retainedTaxes']['total']; + $invoice->retained_local_taxes = $invoice_data['retainedTaxes']['localTaxes']; + $invoice->retained_vat = $invoice_data['retainedTaxes']['valueAddedTax']; + $invoice->retained_income_tax = $invoice_data['retainedTaxes']['incomeTax']; + $invoice->retained_sin_tax = $invoice_data['retainedTaxes']['sinTax']; + $invoice->save(); + } + + public function importarFacturas(Request $request) { + // Validar que se ha subido un archivo y que es un Excel + $request->validate([ + 'file' => 'required|mimes:xlsx,xls,csv|max:20480', // Limitar el tamaño del archivo a 10MB + 'rfc' => 'required|string', // Validación para el parámetro adicional + ]); + + $rfc = $request->rfc; + + set_time_limit(1000); + //ini_set('memory_limit', '-1'); + + try { + // Procesar el archivo usando la clase de importación + Excel::import(new InvoicesImport($rfc), $request->file('file')); + + return response()->json([ + 'success' => true, + 'message' => 'Excel importado correctamente' + ], 200); + } catch (\Exception $e) { + // Manejar errores durante la importación + return response()->json([ + 'success' => false, + 'message' => 'Error al importar el archivo: ' . $e->getMessage() + ], 500); + } + } + + /** + * Metricas basadas en las facturas + * + * @return \Illuminate\Http\Response + */ + public function ingresoTipoI(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if(count(array_intersect($naturalPerson, $taxpayer->taxRegimes->pluck('id')->toArray())) > 0) { + if ($request->conciliated) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } else { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } + } else if ($request->conciliated) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } else { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'transferred_sin_tax' => round($invoices->sum('transferred_sin_tax_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'start_date' => $startDateUTC, + 'end_date' => $endDateUTC, + 'invoicesI' => $invoices + ]); + } + } + + public function gastoTipoI(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } else { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'tax' => round($invoices->sum('tax_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'transferred_sin_tax' => round($invoices->sum('transferred_sin_tax_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'retained_income_tax' => round($invoices->sum('retained_income_tax_in_mxn'), 2), + 'invoicesI' => $invoices + ]); + } + } + + public function ingresoTipoE(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if(count(array_intersect($naturalPerson, $taxpayer->taxRegimes->pluck('id')->toArray())) > 0) { + if ($request->conciliated) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } else { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } + } else if ($request->conciliated) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } else { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'transferred_sin_tax' => round($invoices->sum('transferred_sin_tax_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'invoicesE' => $invoices + ]); + } + } + + public function gastoTipoE(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } else { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->whereIn('product_identification', [84121603, 84121600]); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'tax' => round($invoices->sum('tax_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'transferred_sin_tax' => round($invoices->sum('transferred_sin_tax_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'retained_income_tax' => round($invoices->sum('retained_income_tax_in_mxn'), 2), + 'invoicesE' => $invoices + ]); + } + } + + public function gastoTipoN(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'N') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } else { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'N') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'retained_income_tax' => round($invoices->sum('retained_income_tax_in_mxn'), 2), + 'invoicesN' => $invoices + ]); + } + } + + public function adquisicionPue(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->where('usage_id', 'G01') + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } else { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->where('usage_id', 'G01') + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'tax' => round($invoices->sum('tax_in_mxn'), 2), + 'invoicesAPue' => $invoices + ]); + } + } + + public function ivaIngresoTipoI(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } else { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'start_date' => $startDateUTC, + 'end_date' => $endDateUTC, + 'invoicesIiva' => $invoices + ]); + } + } + + public function ivaIngresoTipoE(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } else { + $invoices = Invoice::where('issuer_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'invoicesEiva' => $invoices + ]); + } + } + + public function ivaGastoTipoI(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603) + ->orWhere('product_identification', 93161608); + }) + ->get(); + } else { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'I') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603) + ->orWhere('product_identification', 93161608); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'tax' => round($invoices->sum('tax_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'invoicesI' => $invoices + ]); + } + } + + public function ivaGastoTipoE(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603) + ->orWhere('product_identification', 93161608); + }) + ->get(); + } else { + $invoices = Invoice::where('receiver_rfc_id', $rfc->id) + ->where('invoice_type_id', 'E') + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('payment_type_id', 'PUE') + ->whereBetween('issued_at', [$startDateUTC, $endDateUTC]) + ->whereDoesntHave('invoiceLines', function($query) { + $query->where('product_identification', 84121603) + ->orWhere('product_identification', 93161608); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoices->sum('total_in_mxn'), 2), + 'tax' => round($invoices->sum('tax_in_mxn'), 2), + 'transferred_vat' => round($invoices->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoices->sum('retained_vat_in_mxn'), 2), + 'invoicesE' => $invoices + ]); + } + } + + public function obtenerMetricas(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + $ingresoI = $this->ingresoTipoI($request)->getOriginalContent(); + $ingresoE = $this->ingresoTipoE($request)->getOriginalContent(); + $ingresoPpd = $this->invoicePaymentController->ingresoPpd($request)->getOriginalContent(); + + $gastoI = $this->gastoTipoI($request)->getOriginalContent(); + $gastoE = $this->gastoTipoE($request)->getOriginalContent(); + $gastoN = $this->gastoTipoN($request)->getOriginalContent(); + $gastoPpd = $this->invoicePaymentController->gastoPpd($request)->getOriginalContent(); + + $ivaIngresoI = $this->ivaIngresoTipoI($request)->getOriginalContent(); + $ivaIngresoE = $this->ivaIngresoTipoE($request)->getOriginalContent(); + $ivaIngresoPpd = $this->invoicePaymentController->ivaIngresoPpd($request)->getOriginalContent(); + + $ivaGastoI = $this->ivaGastoTipoI($request)->getOriginalContent(); + $ivaGastoE = $this->ivaGastoTipoE($request)->getOriginalContent(); + + $adquisicionPue = $this->adquisicionPue($request)->getOriginalContent(); + $adquisicionPpd = $this->invoicePaymentController->adquisicionPpd($request)->getOriginalContent(); + + $ingresoIsr = $ingresoI['total'] - $ingresoI['transferred_vat'] + $ingresoI['retained_vat'] - $ingresoI['transferred_sin_tax'] - $ingresoE['total'] + $ingresoE['transferred_vat'] + $ingresoE['transferred_sin_tax'] + $ingresoPpd['amount'] - $ingresoPpd['transferred_vat_ppd']; + $gastoIsr = $gastoI['total'] - $gastoI['transferred_vat'] + $gastoI['retained_vat'] - $gastoI['transferred_sin_tax'] - $gastoE['total'] + $gastoE['transferred_vat'] + $gastoE['transferred_sin_tax'] + + $gastoN['total'] + $gastoPpd['amount'] - $gastoPpd['transferred_vat_ppd']; + $ingresoIva = $ivaIngresoI['total'] - $ivaIngresoI['transferred_vat'] +$ivaIngresoI['retained_vat'] - $ivaIngresoE['total'] + $ivaIngresoE['transferred_vat'] + $ivaIngresoPpd['amount'] - $ivaIngresoPpd['transferred_vat_ppd']; + $gastoIva = $ivaGastoI['total'] - $ivaGastoI['tax'] - $ivaGastoE['total'] + $ivaGastoE['tax'] + $gastoPpd['amount'] - $gastoPpd['transferred_vat_ppd']; + $ivaFavor = $gastoI['transferred_vat'] - $gastoE['transferred_vat'] + $gastoPpd['transferred_vat_ppd']; + $ivaContra = $ivaIngresoI['transferred_vat'] - $ivaIngresoE['transferred_vat'] + $ivaIngresoPpd['transferred_vat_ppd']; + $ivaRetenido = $ivaGastoI['retained_vat'] - $ivaGastoE['retained_vat'] + $ivaIngresoPpd['retained_vat_ppd'] + $gastoPpd['retained_vat_ppd']; + $isrRetenido = $gastoI['retained_income_tax'] - $gastoE['retained_income_tax'] + $gastoPpd['retained_income_tax']; + $utilidadAntesImpuestos = $ingresoIsr - $gastoIsr; + $adquisicionMercancia = ($adquisicionPue['total'] - $adquisicionPue['tax']) + ($adquisicionPpd['total'] - $adquisicionPpd['tax']); + + return response()->json([ + "ingresoISR" => round($ingresoIsr, 2), + "gastoISR" => round($gastoIsr, 2), + "utilidadAntesImpuestos" => round($utilidadAntesImpuestos, 2), + "ingresoIVA" => round($ingresoIva, 2), + "gastoIVA" => round($gastoIva, 2), + "ivaFavor" => round($ivaFavor, 2), + "ivaContra" => round($ivaContra, 2), + "ivaRetenido" => round($ivaRetenido, 2), + "isrRetenido" => round($isrRetenido, 2), + "adquisicionMercancia" => round($adquisicionMercancia, 2), + "ivaIngresoI" => $ivaIngresoI, + "ivaIngresoE" => $ivaIngresoE, + 'ivaIngresoPpd' => $ivaIngresoPpd, + "ivaGastoI" => $ivaGastoI, + "ingresoI" => $ingresoI, + "ingresoE" => $ingresoE, + "ingresoPpd" => $ingresoPpd, + "gastoI" => $gastoI, + "gastoE" => $gastoE, + "gastoN" => $gastoN, + "gastoPpd" => $gastoPpd, + "adquisicionPue" => $adquisicionPue, + "adquisicionPpd" => $adquisicionPpd + ]); + } + } + + public function obtenerMetricasMensuales(Request $request) { + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + + $startDate = Carbon::parse($request->startDate); // Fecha de inicio (ejemplo: 1 enero 2025) + $endDate = Carbon::parse($request->endDate); // Fecha de fin (ejemplo: 31 diciembre 2025) + + // Array donde guardaremos los totales por mes + $monthlyTotals = []; + + // Iteramos desde el inicio del rango hasta el final + $currentDate = $startDate->copy(); + $i = 0; + + while ($currentDate->lessThanOrEqualTo($endDate)) { + // Obtenemos el inicio del mes actual + $monthStart = $currentDate->startOfMonth(); + + $requestData = clone $request; + + $requestData->merge([ + 'rfc' => $request->rfc, // Usamos el valor de id_tienda del Request original + 'date' => Carbon::createFromFormat('Y-m-d H:i:s', $currentDate), // Usamos la fecha actual, o la que se necesite + ]); + + // Llamamos a la función getTotalMonto para ese mes + $totalMonto = $this->obtenerMetricas($requestData)->getOriginalContent(); + $totalMonto["date"] = $monthStart->format('Y-m'); + + // Guardamos el resultado en el array, usando el formato 'Y-m' como índice + $monthlyTotals[$i] = $totalMonto; + + // Avanzamos al siguiente mes + $currentDate->addMonth(); + $i++; + } + + return $monthlyTotals; + } + + + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function index() + { + // + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \App\Models\Invoice $invoice + * @return \Illuminate\Http\Response + */ + public function show(Invoice $invoice) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\Invoice $invoice + * @return \Illuminate\Http\Response + */ + public function edit(Invoice $invoice) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\Invoice $invoice + * @return \Illuminate\Http\Response + */ + public function update(Request $request, Invoice $invoice) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\Invoice $invoice + * @return \Illuminate\Http\Response + */ + public function destroy(Invoice $invoice) + { + // + } +} diff --git a/app/Http/Controllers/InvoiceLineController.php b/app/Http/Controllers/InvoiceLineController.php new file mode 100644 index 0000000..1284a10 --- /dev/null +++ b/app/Http/Controllers/InvoiceLineController.php @@ -0,0 +1,287 @@ +user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $now = Carbon::now(); + $invoice_request = InvoiceRequest::where('rfc_id', $rfc->id)->where('type', 'line')->first(); + if ($invoice_request) { + $last_request = new Carbon($invoice_request->requested_at); + $min_days = ($last_request->diff($now)->days > 1) ? true : null; + } else { + $min_days = true; + $invoice_request = new InvoiceRequest(); + } + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray()) && $min_days == true) { + $dataCounter = 1; + $arrayCount = 999; + $header_id = null; + do { + try { + if (isset($header_id) && $dataCounter >= $arrayCount) { + $dataCounter = 1; + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'. $request->rfc .'/invoices/line-items?id[lt]='. $header_id .'&itemsPerPage=1000'); + } else { + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'. $request->rfc .'/invoices/line-items?itemsPerPage=1000'); + } + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + $invoiceLines = $data['hydra:member']; + $arrayCount = count($invoiceLines); + + foreach ($invoiceLines as $invoiceLine_data) { + // code... + $invoiceLine = $this->setInvoiceLine($invoiceLine_data, $rfc); + $dataCounter++; + if ($dataCounter == 999) { + $header_id = $invoiceLine_data['id']; + } + } + + $time = microtime(true) - $start; + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } + + } while ($arrayCount >= 999); + + $invoice_request->rfc_id = $rfc->id; + $invoice_request->type = 'line'; + $invoice_request->requested_at = Carbon::now(); + $invoice_request->save(); + + return response()->json(['success' => 'Datos almacenados con exito', 'time' => $time]); + } else { + $time = microtime(true) - $start; + return response()->json(['success' => 'Datos almacenados con exito', 'time' => $time]); + } + } + + public function importarLineasFacturas(Request $request) { + // Validar que se ha subido un archivo y que es un Excel + $request->validate([ + 'file' => 'required|mimes:xlsx,xls,csv|max:20480', // Limitar el tamaño del archivo a 10MB + 'rfc' => 'required|string', // Validación para el parámetro adicional + ]); + + $rfc = $request->rfc; + + set_time_limit(1000); + //ini_set('memory_limit', '-1'); + + try { + // Procesar el archivo usando la clase de importación + Excel::import(new LineItemsImport($rfc), $request->file('file')); + + return response()->json([ + 'success' => true, + 'message' => 'Excel importado correctamente' + ], 200); + } catch (\Exception $e) { + // Manejar errores durante la importación + return response()->json([ + 'success' => false, + 'message' => 'Error al importar el archivo: ' . $e->getMessage() + ], 500); + } + } + + public function obtenerFacturasConceptos(Request $request) { + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + return response()->json(Invoice::where('rfc_id', $rfc->id)->with('invoiceLines')->get()); + } + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \App\Models\InvoiceLine $invoiceLine + * @return \Illuminate\Http\Response + */ + public function show(InvoiceLine $invoiceLine) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\InvoiceLine $invoiceLine + * @return \Illuminate\Http\Response + */ + public function edit(InvoiceLine $invoiceLine) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\InvoiceLine $invoiceLine + * @return \Illuminate\Http\Response + */ + public function update(Request $request, InvoiceLine $invoiceLine) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\InvoiceLine $invoiceLine + * @return \Illuminate\Http\Response + */ + public function destroy(InvoiceLine $invoiceLine) + { + // + } + + public function setInvoiceLine($invoiceLine_data, $rfc) + { + // + $invoiceLine = InvoiceLine::firstOrNew(['id' => $invoiceLine_data['id']]); + + $invoiceLine->rfc_id = $rfc->id; + $invoice = Invoice::where('id', $invoiceLine_data['invoice']['uuid'])->first(); + if($invoice) { + $invoiceLine->invoice_id = $invoiceLine_data['invoice']['uuid']; + } else { + $invoiceLine->invoice_id = null; + } + $type = InvoiceType::where('id', $invoiceLine_data['invoice']['type'])->first(); + if (!$type) { + $type = new InvoiceType(); + $type->id = $invoiceLine_data['invoice']['type']; + $type->save(); + } + $invoiceLine->invoice_type_id = $invoiceLine_data['invoice']['type']; + if ($invoiceLine_data['invoice']['paymentType']) { + $payment_method = PaymentType::where('id', strip_tags($invoiceLine_data['invoice']['paymentType']))->first(); + if (!$payment_method) { + $payment_method = new PaymentType(); + $payment_method->id = $invoiceLine_data['invoice']['paymentType']; + $payment_method->save(); + } + } + $invoiceLine->payment_type_id = $invoiceLine_data['invoice']['paymentType']; + if ($invoiceLine_data['invoice']['status']) { + $status = Status::where('description', strip_tags($invoiceLine_data['invoice']['status']))->first(); + if (!$status) { + $status = new Status(); + $status->description = $invoiceLine_data['invoice']['status']; + $status->save(); + } + } + $invoiceLine->status_id = $status->id; + $rfc = Rfc::where('rfc', strip_tags($invoiceLine_data['invoice']['issuer']['rfc']))->first(); + if (!$rfc) { + $rfc = new Rfc(); + $rfc->rfc = $invoiceLine_data['invoice']['issuer']['rfc']; + $rfc->save(); + } + $invoiceLine->issuer_rfc_id = $rfc->id; + $invoiceLine->issuer_name = $invoiceLine_data['invoice']['issuer']['name']; + $rfc = Rfc::where('rfc', strip_tags($invoiceLine_data['invoice']['receiver']['rfc']))->first(); + if (!$rfc) { + $rfc = new Rfc(); + $rfc->rfc = $invoiceLine_data['invoice']['receiver']['rfc']; + $rfc->save(); + } + $invoiceLine->receiver_rfc_id = $rfc->id; + $invoiceLine->receiver_name = $invoiceLine_data['invoice']['receiver']['name']; + $invoiceLine->issued_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoiceLine_data['invoice']['issuedAt']); + $invoiceLine->identification_number = $invoiceLine_data['identificationNumber']; + $invoiceLine->product_identification = $invoiceLine_data['productIdentification']; + $invoiceLine->description = $invoiceLine_data['description']; + $invoiceLine->description = $invoiceLine_data['description']; + $invoiceLine->unit_amount = $invoiceLine_data['unitAmount']; + $invoiceLine->unit_code = $invoiceLine_data['unitCode']; + $invoiceLine->quantity = $invoiceLine_data['quantity']; + $invoiceLine->discount_amount = $invoiceLine_data['discountAmount']; + $invoiceLine->total_amount = $invoiceLine_data['totalAmount']; + $invoiceLine->retained_vat = $invoiceLine_data['retainedTaxes']['valueAddedTax']; + $invoiceLine->retained_income_tax = $invoiceLine_data['retainedTaxes']['incomeTax']; + $invoiceLine->retained_sin_tax = $invoiceLine_data['retainedTaxes']['sinTax']; + $invoiceLine->transferred_vat = $invoiceLine_data['transferredTaxes']['valueAddedTax']; + $invoiceLine->transferred_sin_tax = $invoiceLine_data['transferredTaxes']['sinTax']; + $invoiceLine->save(); + return $invoiceLine; + } +} diff --git a/app/Http/Controllers/InvoicePaymentController.php b/app/Http/Controllers/InvoicePaymentController.php new file mode 100644 index 0000000..7f5b337 --- /dev/null +++ b/app/Http/Controllers/InvoicePaymentController.php @@ -0,0 +1,460 @@ +user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $now = Carbon::now(); + $invoice_request = InvoiceRequest::where('rfc_id', $rfc->id)->where('type', 'payment')->first(); + if ($invoice_request) { + $last_request = new Carbon($invoice_request->requested_at); + $min_days = ($last_request->diff($now)->days > 1) ? true : null; + } else { + $first_time = true; + $min_days = true; + $invoice_request = new InvoiceRequest(); + } + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray()) && $min_days == true) { + $dataCounter = 1; + $arrayCount = 999; + $header_id = null; + do { + try { + if (isset($header_id) && $dataCounter >= $arrayCount) { + $dataCounter = 1; + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'. $request->rfc .'/invoices/payments?id[lt]='. $header_id .'&itemsPerPage=1000'); + } else { + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'. $request->rfc .'/invoices/payments?itemsPerPage=1000'); + } + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + $invoicePayments = $data['hydra:member']; + $arrayCount = count($invoicePayments); + + foreach ($invoicePayments as $invoicePayment_data) { + // code... + $invoicePayment = $this->setInvoicePayment($invoicePayment_data, $rfc); + $dataCounter++; + if ($dataCounter == 999) { + $header_id = $invoicePayment_data['id']; + } + } + + $time = microtime(true) - $start; + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } + + + } while ($arrayCount >= 999); + + $invoice_request->rfc_id = $rfc->id; + $invoice_request->type = 'payment'; + $invoice_request->requested_at = Carbon::now(); + $invoice_request->save(); + + return response()->json(['success' => 'Datos almacenados con exito', 'time' => $time]); + } else { + $time = microtime(true) - $start; + return response()->json(['success' => 'Datos almacenados con exito', 'time' => $time]); + } + } + + public function ingresoPpd(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if(count(array_intersect($naturalPerson, $taxpayer->taxRegimes->pluck('id')->toArray())) > 0) { + if ($request->conciliated) { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereNull('cancelled_at') + ->whereHas('invoice', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('issuer_rfc_id', $rfc->id) + //Para Gasto PPD es cuando es receptor + //->where('receiver_rfc_id', $rfc->id); + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }); + }) + ->get(); + } else { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereNull('cancelled_at') + ->whereBetween('date', [$startDateUTC, $endDateUTC]) + ->whereHas('invoice', function($query) use ($rfc) { + $query->where('issuer_rfc_id', $rfc->id) + //Para Gasto PPD es cuando es receptor + //->where('receiver_rfc_id', $rfc->id); + ->whereIn('cancellation_status_id', ['1', '6', '7']); + }) + ->get(); + } + } else { + return response()->json([ + 'total' => 0, + 'amount' => 0, + 'transferred_vat' => 0, + 'transferred_vat_ppd' => 0, + 'retained_vat' => 0, + 'retained_vat_ppd' => 0, + 'no_natural' => 'No es persona fisica' + ]); + } + + return response()->json([ + 'total' => round($invoicePayments->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoicePayments->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoicePayments->sum('retained_vat_in_mxn'), 2), + 'amount' => round($invoicePayments->sum('amount_in_mxn'), 2), + 'transferred_vat_ppd' => round($invoicePayments->sum('transferred_vat_ppd'), 2), + 'retained_vat_ppd' => round($invoicePayments->sum('retained_vat_ppd'), 2), + 'invoicesPpd' => $invoicePayments + ]); + } + } + + public function gastoPpd(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereHas('invoice', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('receiver_rfc_id', $rfc->id) + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }); + }) + ->get(); + } else { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereBetween('date', [$startDateUTC, $endDateUTC]) + ->whereHas('invoice', function($query) use ($rfc) { + $query->where('receiver_rfc_id', $rfc->id) + ->whereIn('cancellation_status_id', ['1', '6', '7']); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoicePayments->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoicePayments->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoicePayments->sum('retained_vat_in_mxn'), 2), + 'amount' => round($invoicePayments->sum('amount_in_mxn'), 2), + 'transferred_vat_ppd' => round($invoicePayments->sum('transferred_vat_ppd'), 2), + 'retained_vat_ppd' => round($invoicePayments->sum('retained_vat_ppd'), 2), + 'retained_income_tax' => round($invoicePayments->sum('retained_income_tax_in_mxn'), 2), + 'invoicesPpd' => $invoicePayments, + ]); + } + } + + public function adquisicionPpd(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereHas('invoice', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('receiver_rfc_id', $rfc->id) + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('usage_id', 'G01') + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }); + }) + ->get(); + } else { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereBetween('date', [$startDateUTC, $endDateUTC]) + ->whereHas('invoice', function($query) use ($rfc) { + $query->where('receiver_rfc_id', $rfc->id) + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->where('usage_id', 'G01'); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoicePayments->sum('total_in_mxn'), 2), + 'tax' => round($invoicePayments->sum('tax_in_mxn'), 2), + 'transferred_vat' => round($invoicePayments->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoicePayments->sum('retained_vat_in_mxn'), 2), + 'amount' => round($invoicePayments->sum('amount_in_mxn'), 2), + 'vat_ppd' => round($invoicePayments->sum('vat_ppd'), 2), + 'invoicesPpd' => $invoicePayments + ]); + } + } + + public function ivaIngresoPpd(Request $request) { + $start = microtime(true); + set_time_limit(1000); + + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $dateCST = Carbon::createFromFormat('Y-m-d H:i:s', $request->date, 'CST'); + + // Definir inicio y fin en CST (Central Standard Time) + $startDateCST = $dateCST->copy()->firstOfMonth(); + $endDateCST = $dateCST->copy()->endOfMonth(); + // Convertir las fechas a UTC + $startDateUTC = $startDateCST->copy()->setTimezone('UTC'); + $endDateUTC = $endDateCST->copy()->setTimezone('UTC'); + + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + + $naturalPerson = ['612', '621', '626']; + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + if ($request->conciliated) { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereNull('cancelled_at') + ->whereHas('invoice', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('issuer_rfc_id', $rfc->id) + //Para Gasto PPD es cuando es receptor + //->where('receiver_rfc_id', $rfc->id); + ->whereIn('cancellation_status_id', ['1', '6', '7']) + ->whereHas('conciliations', function($query) use ($rfc, $startDateUTC, $endDateUTC) { + $query->where('rfc_id', $rfc->id); + $query->where('is_conciliated', true); + $query->whereBetween('conciliated_at', [$startDateUTC, $endDateUTC]); + }); + }) + ->get(); + } else { + $invoicePayments = InvoicePayment::where('rfc_id', $rfc->id) + ->whereNull('cancelled_at') + ->whereBetween('date', [$startDateUTC, $endDateUTC]) + ->whereHas('invoice', function($query) use($rfc) { + $query->where('issuer_rfc_id', $rfc->id) + //Para Gasto PPD es cuando es receptor + //->where('receiver_rfc_id', $rfc->id); + ->whereIn('cancellation_status_id', ['1', '6', '7']); + }) + ->get(); + } + + return response()->json([ + 'total' => round($invoicePayments->sum('total_in_mxn'), 2), + 'transferred_vat' => round($invoicePayments->sum('transferred_vat_in_mxn'), 2), + 'retained_vat' => round($invoicePayments->sum('retained_vat_in_mxn'), 2), + 'amount' => round($invoicePayments->sum('amount_in_mxn'), 2), + 'transferred_vat_ppd' => round($invoicePayments->sum('transferred_vat_ppd'), 2), + 'retained_vat_ppd' => round($invoicePayments->sum('retained_vat_ppd'), 2) + ]); + } + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \App\Models\InvoicePayment $invoicePayment + * @return \Illuminate\Http\Response + */ + public function show(InvoicePayment $invoicePayment) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\InvoicePayment $invoicePayment + * @return \Illuminate\Http\Response + */ + public function edit(InvoicePayment $invoicePayment) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\InvoicePayment $invoicePayment + * @return \Illuminate\Http\Response + */ + public function update(Request $request, InvoicePayment $invoicePayment) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\InvoicePayment $invoicePayment + * @return \Illuminate\Http\Response + */ + public function destroy(InvoicePayment $invoicePayment) + { + // + } + + public function setInvoicePayment($invoicePayment_data, $rfc) + { + // + $invoicePayment = InvoicePayment::firstOrNew(['id' => $invoicePayment_data['id']]); + + $invoicePayment->rfc_id = $rfc->id; + $invoicePayment->date = $invoicePayment_data['date']; + $invoice = Invoice::where('id', $invoicePayment_data['invoiceUuid'])->first(); + if($invoice) { + $invoicePayment->invoice_id = $invoicePayment_data['invoiceUuid']; + } else { + $invoicePayment->invoice_id = null; + } + if ($invoicePayment_data['paymentMethod']) { + $payment_method = PaymentMethod::where('id', strip_tags($invoicePayment_data['paymentMethod']))->first(); + if (!$payment_method) { + $payment_method = new PaymentMethod(); + $payment_method->id = $invoicePayment_data['paymentMethod']; + $payment_method->save(); + } + } + $invoicePayment->payment_method_id = $invoicePayment_data['paymentMethod']; + if ($invoicePayment_data['currency']) { + $currency = Currency::where('id', strip_tags($invoicePayment_data['currency']))->first(); + if (!$currency) { + $currency = new Currency(); + $currency->id = $invoicePayment_data['currency']; + $currency->save(); + } + } + $invoicePayment->currency_id = $invoicePayment_data['currency']; + $invoicePayment->exchange_rate = $invoicePayment_data['exchangeRate']; + $invoicePayment->installment = $invoicePayment_data['installment']; + $invoicePayment->previous_balance = $invoicePayment_data['previousBalance']; + $invoicePayment->amount = $invoicePayment_data['amount']; + $invoicePayment->outstanding_balance = $invoicePayment_data['outstandingBalance']; + if ($invoicePayment_data['canceledAt']){ + $invoicePayment->cancelled_at = Carbon::createFromFormat('Y-m-d H:i:s', $invoicePayment_data['canceledAt']); + } + $invoicePayment->save(); + return $invoicePayment; + } +} diff --git a/app/Http/Controllers/InvoiceRequestController.php b/app/Http/Controllers/InvoiceRequestController.php new file mode 100644 index 0000000..3181ca4 --- /dev/null +++ b/app/Http/Controllers/InvoiceRequestController.php @@ -0,0 +1,85 @@ +validate([ + 'file' => 'required|mimes:xlsx,xls,csv|max:20480', // Limitar el tamaño del archivo a 10MB + ]); + + set_time_limit(1000); + //ini_set('memory_limit', '-1'); + + try { + // Procesar el archivo usando la clase de importación + Excel::import(new ProdServCodesImport(), $request->file('file')); + + return response()->json([ + 'success' => true, + 'message' => 'Excel importado correctamente' + ], 200); + } catch (\Exception $e) { + // Manejar errores durante la importación + return response()->json([ + 'success' => false, + 'message' => 'Error al importar el archivo: ' . $e->getMessage() + ], 500); + } + } + + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \App\Models\ProdServCode $prodServCode + * @return \Illuminate\Http\Response + */ + public function get(ProdServCode $prodServCode) + { + // + $prodservcodes = ProdServCode::all(); + + return($prodservcodes); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\ProdServCode $prodServCode + * @return \Illuminate\Http\Response + */ + public function edit(ProdServCode $prodServCode) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\ProdServCode $prodServCode + * @return \Illuminate\Http\Response + */ + public function update(Request $request, ProdServCode $prodServCode) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\ProdServCode $prodServCode + * @return \Illuminate\Http\Response + */ + public function destroy(ProdServCode $prodServCode) + { + // + } +} diff --git a/app/Http/Controllers/RfcController.php b/app/Http/Controllers/RfcController.php new file mode 100644 index 0000000..9c421a5 --- /dev/null +++ b/app/Http/Controllers/RfcController.php @@ -0,0 +1,116 @@ +user(); + $rfc = Rfc::where('rfc', $request->rfc)->firstOrCreate([ + 'rfc' => $request->rfc + ], + ); + $user->rfcs()->attach($rfc); + $user->save(); + + return response()->json([ + 'success' => true, + 'message' => 'RFC agregado con exito' + ], 200); + } + + public function obtenerRfcs(Request $request) + { + $user = $request->user(); + $rfcs = $user->rfcs->pluck('rfc'); + + return $rfcs; + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \App\Models\Rfc $rfc + * @return \Illuminate\Http\Response + */ + public function show(Rfc $rfc) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\Rfc $rfc + * @return \Illuminate\Http\Response + */ + public function edit(Rfc $rfc) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\Rfc $rfc + * @return \Illuminate\Http\Response + */ + public function update(Request $request, Rfc $rfc) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\Rfc $rfc + * @return \Illuminate\Http\Response + */ + public function destroy(Rfc $rfc) + { + // + } +} diff --git a/app/Http/Controllers/RiskController.php b/app/Http/Controllers/RiskController.php new file mode 100644 index 0000000..99b8158 --- /dev/null +++ b/app/Http/Controllers/RiskController.php @@ -0,0 +1,107 @@ + 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/insights/'.$request["rfc"].'/risks'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + + // Filtrar los datos y eliminar claves numéricas + + return response()->json([ + 'data' => $data["data"] + ]); + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } +} diff --git a/app/Http/Controllers/RoleController.php b/app/Http/Controllers/RoleController.php new file mode 100644 index 0000000..47d871e --- /dev/null +++ b/app/Http/Controllers/RoleController.php @@ -0,0 +1,85 @@ +id)->get(); + + return($taxRates); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\TaxRate $taxRate + * @return \Illuminate\Http\Response + */ + public function edit(TaxRate $taxRate) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\TaxRate $taxRate + * @return \Illuminate\Http\Response + */ + public function update(Request $request, TaxRate $taxRate) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\TaxRate $taxRate + * @return \Illuminate\Http\Response + */ + public function destroy(TaxRate $taxRate) + { + // + } +} diff --git a/app/Http/Controllers/TaxRegimeController.php b/app/Http/Controllers/TaxRegimeController.php new file mode 100644 index 0000000..8af1156 --- /dev/null +++ b/app/Http/Controllers/TaxRegimeController.php @@ -0,0 +1,88 @@ +user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + $taxpayer = Taxpayer::where('rfc_id', $rfc->id)->first(); + if ($taxpayer) { + $last_request = new Carbon($taxpayer->updated_at); + $now = Carbon::now(); + $min_days = ($last_request->diff($now)->days > 7) ? true : null; + } else { + $min_days = true; + } + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray()) && $min_days == true) { + + try { + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/insights/'. $request->rfc .'/summary'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + $taxpayer_data = $data; + + // code... + $taxpayer = TaxPayer::firstOrNew(['rfc_id' => $rfc->id]); + + $taxpayer->name = $taxpayer_data['name']; + $taxpayer->fiscal_address = $taxpayer_data['fiscalAddress']; + $taxpayer->fiscal_address_status = $taxpayer_data['fiscalAddressStatusRaw']; + + $taxpayer->save(); + + $economic_activities = $taxpayer_data['economicActivities']; + + foreach ($economic_activities as $economic_activity_data) { + $economic_activity = EconomicActivity::where('description', $economic_activity_data['name'])->first(); + if (!$economic_activity) { + $economic_activity = new EconomicActivity(); + $economic_activity->description = $economic_activity_data['name']; + $economic_activity->save(); + } + $taxpayer->economicActivities()->attach($economic_activity, [ + 'order' => $economic_activity_data['order'], + 'percentage' => $economic_activity_data['percentage'], + 'started_at' => $economic_activity_data['startDate'], + 'ended_at' => $economic_activity_data['endDate'] + ]); + $taxpayer->save(); + } + + $tax_regimes = $taxpayer_data['taxRegimes']; + + foreach ($tax_regimes as $tax_regime_data) { + $tax_regime = TaxRegime::where('id', $tax_regime_data['code'])->first(); + if (!$tax_regime) { + $tax_regime = new TaxRegime(); + $tax_regime->id = $tax_regime_data['code']; + $tax_regime->description = $tax_regime_data['name']; + $tax_regime->save(); + } + $taxpayer->taxRegimes()->attach($tax_regime, [ + 'started_at' => $tax_regime_data['startDate'] + ]); + $taxpayer->save(); + } + + $taxpayer->total_employees = $taxpayer_data['totalEmployees']; + $taxpayer->last_year_net_income = $taxpayer_data['lastYearNetIncome']; + $taxpayer->last_year_total_income = $taxpayer_data['lastYearTotalIncome']; + $taxpayer->total_revenue_last_tax_return = $taxpayer_data['totalRevenueLastTaxReturn']; + $taxpayer->total_net_profit_last_tax_return = $taxpayer_data['totalNetProfitLastTaxReturn']; + $taxpayer->last_tax_return_year = $taxpayer_data['lastTaxReturnYear']; + $taxpayer->total_sales_revenue_current_year = $taxpayer_data['totalSalesRevenueCurrentYear']; + $taxpayer->registration_date = Carbon::parse(substr($taxpayer_data['registrationDate'], 0, 21)); + $taxpayer->save(); + + $time = microtime(true) - $start; + return response()->json(Taxpayer::where('rfc_id', $rfc->id)->get()); + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } else if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + return response()->json(Taxpayer::where('rfc_id', $rfc->id)->get()); + } + } + + public function generarCSD(Request $request) + { + $user = $request->user(); + //$user = User::where('email', strip_tags($request->email))->first(); + $rfc = Rfc::where('rfc', strip_tags($request->rfc))->first(); + + if (in_array($rfc->id, $user->rfcs->pluck('id')->toArray())) { + $facturama = new Facturama\Client('pruebas', 'pruebas2011'); + + $params = [ + 'Rfc' => $rfc->rfc, + 'Certificate' => $request->certificate, + 'PrivateKey' => $request->privateKey, + 'PrivateKeyPassword' => $request->privateKeyPassword + ]; + + $result = $facturama->post('api-lite/csds', $params ); + } + } + + //Obtener SalesRevenues/Ingresos y copiarlos a la base de datos + public function ingresos(Request $request){ + try { + $postdate = Carbon::parse($request->date)->addMonth()->format('Y-m'); + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/insights/'. $request->rfc .'/sales-revenue?options[from]='.$request->date.'-01T06%3A00%3A00&options[to]='.$postdate.'-01T05%3A59%3A59&options[periodicity]=monthly&options[type]=total'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $egresos = $this->egresos($request); + $data = $response->json(); + + // Filtrar los datos y eliminar claves numéricas + $filteredData = array_values(collect($data['data']) + ->where('date', $request->date) + ->all()); + + $filteredEgresos = array_values(collect($egresos['data']) + ->where('date', $request->date) + ->all()); + + return response()->json([ + 'ingresos' => $filteredData, + 'egresos' => $filteredEgresos, + 'datos' => $data + ]); + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + + public function egresos(Request $request){ + try { + $postdate = Carbon::parse($request->date)->addMonth()->format('Y-m'); + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/insights/'. $request->rfc .'/expenditures?options[from]='.$request->date.'-01T06%3A00%3A00&options[to]='.$postdate.'-01T05%3A59%3A59&options[periodicity]=monthly&options[type]=total'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + return $data; + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + } + + public function utilidadBrutaVsIndustria(Request $request){ + try { + // Realizar una petición GET con encabezados + $response = Http::withHeaders([ + 'accept' => 'application/ld+json', + 'X-API-Key' => 'b16ec9be960cdf3a8302e92a7aec84d2' + ])->get('https://api.syntage.com/taxpayers/'.$request->rfc.'/invoices?itemsPerPage=20'); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $data = $response->json(); + return $data; + } else { + // Manejar la respuesta fallida + return response()->json(['error' => 'Error al obtener los datos'], $response->status()); + } + } catch (RequestException $e) { + // Manejar excepciones específicas de solicitudes HTTP + return response()->json(['error' => 'Excepción al obtener los datos: ' . $e->getMessage()], 500); + } catch (\Exception $e) { + // Manejar otras excepciones + return response()->json(['error' => 'Error inesperado: ' . $e->getMessage()], 500); + } + return $request; + } + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function index() + { + // + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \App\Models\Taxpayer $taxpayer + * @return \Illuminate\Http\Response + */ + public function show(Taxpayer $taxpayer) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\Taxpayer $taxpayer + * @return \Illuminate\Http\Response + */ + public function edit(Taxpayer $taxpayer) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\Taxpayer $taxpayer + * @return \Illuminate\Http\Response + */ + public function update(Request $request, Taxpayer $taxpayer) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\Taxpayer $taxpayer + * @return \Illuminate\Http\Response + */ + public function destroy(Taxpayer $taxpayer) + { + // + } +} diff --git a/app/Http/Controllers/UnitCodeController.php b/app/Http/Controllers/UnitCodeController.php new file mode 100644 index 0000000..375ff8a --- /dev/null +++ b/app/Http/Controllers/UnitCodeController.php @@ -0,0 +1,117 @@ +validate([ + 'file' => 'required|mimes:xlsx,xls,csv|max:20480', // Limitar el tamaño del archivo a 10MB + ]); + + set_time_limit(1000); + //ini_set('memory_limit', '-1'); + + try { + // Procesar el archivo usando la clase de importación + Excel::import(new UnitCodesImport(), $request->file('file')); + + return response()->json([ + 'success' => true, + 'message' => 'Excel importado correctamente' + ], 200); + } catch (\Exception $e) { + // Manejar errores durante la importación + return response()->json([ + 'success' => false, + 'message' => 'Error al importar el archivo: ' . $e->getMessage() + ], 500); + } + } + + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \App\Models\UnitCode $unitCode + * @return \Illuminate\Http\Response + */ + public function get(UnitCode $unitCode) + { + // + $unitcodes = UnitCode::all(); + + return($unitcodes); + } + + /** + * Show the form for editing the specified resource. + * + * @param \App\Models\UnitCode $unitCode + * @return \Illuminate\Http\Response + */ + public function edit(UnitCode $unitCode) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \App\Models\UnitCode $unitCode + * @return \Illuminate\Http\Response + */ + public function update(Request $request, UnitCode $unitCode) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\UnitCode $unitCode + * @return \Illuminate\Http\Response + */ + public function destroy(UnitCode $unitCode) + { + // + } +} diff --git a/app/Http/Controllers/UsageController.php b/app/Http/Controllers/UsageController.php new file mode 100644 index 0000000..9e8160d --- /dev/null +++ b/app/Http/Controllers/UsageController.php @@ -0,0 +1,88 @@ + + */ + protected $middleware = [ + // \App\Http\Middleware\TrustHosts::class, + \App\Http\Middleware\TrustProxies::class, + \Illuminate\Http\Middleware\HandleCors::class, + \App\Http\Middleware\PreventRequestsDuringMaintenance::class, + \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, + \App\Http\Middleware\TrimStrings::class, + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, + \App\Http\Middleware\Cors::class, + ]; + + /** + * The application's route middleware groups. + * + * @var array> + */ + protected $middlewareGroups = [ + 'web' => [ + \App\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Session\Middleware\StartSession::class, + \Illuminate\View\Middleware\ShareErrorsFromSession::class, + \App\Http\Middleware\VerifyCsrfToken::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, + ], + + 'api' => [ + // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, + 'throttle:api', + \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, + 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::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' => \App\Http\Middleware\ValidateSignature::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + 'throttleEndpoint' => \App\Http\Middleware\ThrottleEndpoint::class, + 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + ]; +} 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/Cors.php b/app/Http/Middleware/Cors.php new file mode 100644 index 0000000..68c78e1 --- /dev/null +++ b/app/Http/Middleware/Cors.php @@ -0,0 +1,24 @@ +header('Access-Control-Allow-Origin', '*') + ->header('Access-Control-Allow-Methods', 'GET, POST, PUT, PATCH, OPTIONS') + ->header('Access-Control-Allow-Headers', 'Content-Type, Authorization, X-Requested-With, X-XSRF-TOKEN'); + } +} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php new file mode 100644 index 0000000..867695b --- /dev/null +++ b/app/Http/Middleware/EncryptCookies.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/app/Http/Middleware/PreventRequestsDuringMaintenance.php new file mode 100644 index 0000000..74cbd9a --- /dev/null +++ b/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000..a2813a0 --- /dev/null +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,32 @@ +check()) { + return redirect(RouteServiceProvider::HOME); + } + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/ThrottleEndpoint.php b/app/Http/Middleware/ThrottleEndpoint.php new file mode 100644 index 0000000..17d43aa --- /dev/null +++ b/app/Http/Middleware/ThrottleEndpoint.php @@ -0,0 +1,33 @@ +header('Origin'), $allowedOrigins)) { + // Si la solicitud proviene de un origen permitido, deshabilitamos el throttle + $request->headers->set('X-RateLimit-Limit', PHP_INT_MAX); // Establece un límite muy alto + $request->headers->set('X-RateLimit-Remaining', 10000); // Establece un límite muy alto + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php new file mode 100644 index 0000000..88cadca --- /dev/null +++ b/app/Http/Middleware/TrimStrings.php @@ -0,0 +1,19 @@ + + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ]; +} diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php new file mode 100644 index 0000000..7186414 --- /dev/null +++ b/app/Http/Middleware/TrustHosts.php @@ -0,0 +1,20 @@ + + */ + public function hosts() + { + return [ + $this->allSubdomainsOfApplicationUrl(), + ]; + } +} diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php new file mode 100644 index 0000000..3391630 --- /dev/null +++ b/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,28 @@ +|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies. + * + * @var int + */ + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; +} diff --git a/app/Http/Middleware/ValidateSignature.php b/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 0000000..093bf64 --- /dev/null +++ b/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,22 @@ + + */ + protected $except = [ + // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium', + // 'utm_source', + // 'utm_term', + ]; +} diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php new file mode 100644 index 0000000..9e86521 --- /dev/null +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/app/Imports/InvoicesImport.php b/app/Imports/InvoicesImport.php new file mode 100644 index 0000000..2978633 --- /dev/null +++ b/app/Imports/InvoicesImport.php @@ -0,0 +1,158 @@ +rfc = $rfc; + } + + /** + * Método para indicar desde qué fila comenzar a leer. + */ + public function startRow(): int + { + return 2; // Si tienes encabezados, comienza en la fila 2 + } + + public function model(array $row) + { + + $rfc = Rfc::where('rfc', $this->rfc)->firstOrCreate([ + 'rfc' => $this->rfc + ]); + $type = InvoiceType::where('id', $this->emptyToNull($row['type']))->firstOrCreate([ + 'id' => $row['type'] + ]); + if ($this->emptyToNull($row['usage'])) { + $usage = Usage::where('id', strip_tags($row['usage']))->firstOrCreate([ + 'id' => $row['usage'] + ]); } + if ($this->emptyToNull($row['paymenttype'])) { + $payment_type = PaymentType::where('id', strip_tags($row['paymenttype']))->firstOrCreate([ + 'id' => $row['paymenttype'] + ]); } + if ($this->emptyToNull($row['paymentmethod'])) { + $payment_method = PaymentMethod::where('id', strip_tags($row['paymentmethod']))->firstOrCreate([ + 'id' => $row['paymentmethod'] + ]); } + if ($this->emptyToNull($row['currency'])) { + $currency = Currency::where('id', strip_tags($row['currency']))->firstOrCreate([ + 'id' => $row['currency'] + ]); } + if ($this->emptyToNull($row['status'])) { + $status = Status::where('description', strip_tags($row['status']))->firstOrCreate([ + 'description' => $row['status'] + ]); } + if ($this->emptyToNull($row['cancellationstatus'])) { + $cancellationType = CancellationType::where('description', strip_tags($row['cancellationstatus']))->firstOrCreate([ + 'description' => $row['cancellationstatus'] + ]); } + if ($this->emptyToNull($row['cancellationprocessstatus'])) { + $cancelStatus = Status::where('description', strip_tags($row['cancellationprocessstatus']))->firstOrCreate([ + 'description' => $row['cancellationprocessstatus'] + ]); } + $issuerRfc = Rfc::where('rfc', strip_tags($row['issuerrfc']))->first(); + if (!$issuerRfc) { + $issuerRfc = new Rfc(); + $issuerRfc->rfc = $row['issuerrfc']; + $issuerRfc->save(); + } + $receiverRfc = Rfc::where('rfc', strip_tags($row['receiverrfc']))->first(); + if (!$receiverRfc) { + $receiverRfc = new Rfc(); + $receiverRfc->rfc = $row['receiverrfc']; + $receiverRfc->save(); + } + + return Invoice::updateOrCreate( + ['id' => $row['uuid']], + [ + 'rfc_id' => $rfc->id, + 'version' => $this->emptyToNull($row['version']), + 'invoice_type_id' => $this->emptyToNull($row['type']), + 'usage_id' => $this->emptyToNull($row['usage']), + 'payment_type_id' => $this->emptyToNull($row['paymenttype']), + 'payment_method_id' => $this->emptyToNull($row['paymentmethod']), + 'zip_code' => $this->emptyToNull($row['placeofissue']), + 'currency_id' => $this->emptyToNull($row['currency']), + 'exchange_rate' => $this->emptyToNull($row['exchangerate']), + 'status_id' => $this->emptyToNull($status->id), + 'pac' => $this->emptyToNull($row['pac']), + 'issued_at' => Carbon::createFromFormat('Y-m-d H:i:s', $row['issuedat']), + 'certified_at' => Carbon::createFromFormat('Y-m-d H:i:s', $row['certifiedat']), + 'cancellation_type_id' => $cancellationType->id, + 'cancellation_status_id' => $this->emptyToNull($row['cancellationprocessstatus'] ? $cancelStatus->id : null), + 'cancelled_at' => $this->emptyToNull($row['canceledat'] ? Carbon::createFromFormat('Y-m-d H:i:s', $row['canceledat']) : null), + 'discount' => $this->emptyToNull($row['discount']), + 'tax' => $this->emptyToNull($row['tax']), + 'subtotal' => $this->emptyToNull($row['subtotal']), + 'total' => $this->emptyToNull($row['total']), + 'paid_amount' => $this->emptyToNull($row['paidamount']), + 'due_amount' => $this->emptyToNull($row['dueamount']), + 'fully_paid_at' => $this->emptyToNull($row['fullypaidat'] ? Carbon::createFromFormat('Y-m-d H:i:s', $row['fullypaidat']) : null), + 'last_payment_date' => $this->emptyToNull($row['lastpaymentdate'] ? Carbon::createFromFormat('Y-m-d H:i:s', $row['lastpaymentdate']) : null), + 'issuer_rfc_id' => $this->emptyToNull($issuerRfc->id), + 'issuer_name' => $this->emptyToNull($row['issuername']), + 'receiver_rfc_id' => $receiverRfc->id, + 'receiver_name' => $this->emptyToNull($row['receivername']), + 'is_issuer' => $this->emptyToNull($row['isissuer']), + 'is_receiver' => $this->emptyToNull($row['isreceiver']), + 'internal_id' => $this->emptyToNull($row['internalidentifier']), + 'reference' => $this->emptyToNull($row['reference']), + 'credited_amount' => $this->emptyToNull($row['creditedamount'] ? $row['creditedamount'] : null), + 'subtotal_credited_amount' => $this->emptyToNull($row['subtotalcreditedamount'] ? $row['subtotalcreditedamount'] : null), + 'applied_taxes' => $this->emptyToNull($row['appliedtaxes']), + 'total_transferred_taxes' => $this->emptyToNull($row['totaltransferredtaxes']), + 'transferred_local_taxes' => $this->emptyToNull($row['transferredlocaltaxes']), + 'transferred_vat' => $this->emptyToNull($row['transferredvalueaddedtax']), + 'transferred_sin_tax' => $this->emptyToNull($row['transferredsintax']), + 'total_retained_taxes' => $this->emptyToNull($row['totalretainedtaxes']), + 'retained_local_taxes' => $this->emptyToNull($row['retainedlocaltaxes']), + 'retained_vat' => $this->emptyToNull($row['retainedvalueaddedtax']), + 'retained_income_tax' => $this->emptyToNull($row['retainedincometax']), + 'retained_sin_tax' => $this->emptyToNull($row['retainedsintax']) + ] + ); + } + + private function emptyToNull($value) + { + return $value === '' ? null : $value; + } + + /** + * Devuelve el tamaño del chunk (en filas) a leer. + */ + public function chunkSize(): int + { + return 5000; // Ajusta el tamaño según tus necesidades + } +} diff --git a/app/Imports/LineItemsImport.php b/app/Imports/LineItemsImport.php new file mode 100644 index 0000000..1cc9bff --- /dev/null +++ b/app/Imports/LineItemsImport.php @@ -0,0 +1,124 @@ +rfc = $rfc; + } + + /** + * Método para indicar desde qué fila comenzar a leer. + */ + public function startRow(): int + { + return 2; // Si tienes encabezados, comienza en la fila 2 + } + + public function model(array $row) + { + + $rfc = Rfc::where('rfc', $this->rfc)->firstOrCreate([ + 'rfc' => $this->rfc + ]); + + $invoice = Invoice::where('id', strip_tags($row['invoice_uuid']))->firstOrCreate([ + 'id' => $row['invoice_uuid'] + ]); + + $type = InvoiceType::where('id', strip_tags($row['invoice_type']))->firstOrCreate([ + 'id' => $row['invoice_type'] + ]); + + if ($this->emptyToNull($row['paymentType'])) { + $paymentType = PaymentType::where('id', strip_tags($row['paymentType']))->firstOrCreate([ + 'id' => $row['paymentType'] + ]); + } + + if ($this->emptyToNull($row['invoice_status'])) { + $status = Status::where('description', strip_tags($row['status']))->firstOrCreatet([ + 'description' => $row['status'] + ]); + } + + $issuerRfc = Rfc::where('rfc', strip_tags($row['issuer_rfc']))->firstOrCreate([ + 'rfc' => $row['issuer_rfc'] + ]); + + $receiverRfc = Rfc::where('rfc', strip_tags($row['receiver_rfc']))->firstOrCreate([ + 'rfc' => $row['receiver_rfc'] + ]); + + return InvoiceLine::updateOrCreate( + ['id' => $invoiceLine_data['id']], + [ + 'rfc_id' => $rfc->id, + 'invoice_id' => $invoice->id, + 'invoice_type_id' => $type->id, + 'payment_type_id' => $paymentType->id, + 'status_id' => $status->id, + 'issuer_rfc_id' => $issuerRfc->id, + 'issuer_name' => $this->emptyToNull($row['issuername']), + 'receiver_rfc_id' => $receiverRfc->id, + 'receiver_name' => $this->emptyToNull($row['receivername']), + 'issued_at' => Carbon::createFromFormat('Y-m-d H:i:s', $row['issuedAt']); + 'identification_number' => $row['identificationNumber']; + 'product_identification' => $row['productIdentification']; + 'description' => $row['description']; + 'unit_amount' => $row['unitAmount']; + 'unit_code' => $row['unitCode']; + 'quantity' => $row['quantity']; + 'discount_amount' => $row['discountAmount']; + 'total_amount' => $row['totalAmount']; + 'retained_vat' => $row['rrowvalueAddedTax']; + 'retained_income_tax' => $row['retainedTaxes']['incomeTax']; + 'retained_sin_tax' => $row['retainedTaxes']['sinTax']; + 'transferred_vat' => $row['transferredTaxes']['valueAddedTax']; + 'transferred_sin_tax' => $row['transferredTaxes']['sinTax']; + ] + ); + + } + + private function emptyToNull($value) + { + return $value === '' ? null : $value; + } + + /** + * Devuelve el tamaño del chunk (en filas) a leer. + */ + public function chunkSize(): int + { + return 5000; // Ajusta el tamaño según tus necesidades + } +} diff --git a/app/Imports/ProdServCodesImport.php b/app/Imports/ProdServCodesImport.php new file mode 100644 index 0000000..5649391 --- /dev/null +++ b/app/Imports/ProdServCodesImport.php @@ -0,0 +1,44 @@ + $row['id']], + ['description' => $this->emptyToNull($row['description'])] + ); + } + + private function emptyToNull($value) + { + return $value === '' ? null : $value; + } + + /** + * Devuelve el tamaño del chunk (en filas) a leer. + */ + public function chunkSize(): int + { + return 5000; // Ajusta el tamaño según tus necesidades + } +} diff --git a/app/Imports/UnitCodesImport.php b/app/Imports/UnitCodesImport.php new file mode 100644 index 0000000..d241137 --- /dev/null +++ b/app/Imports/UnitCodesImport.php @@ -0,0 +1,44 @@ + $row['id']], + ['description' => $this->emptyToNull($row['description'])] + ); + } + + private function emptyToNull($value) + { + return $value === '' ? null : $value; + } + + /** + * Devuelve el tamaño del chunk (en filas) a leer. + */ + public function chunkSize(): int + { + return 5000; // Ajusta el tamaño según tus necesidades + } +} diff --git a/app/Models/CancellationType.php b/app/Models/CancellationType.php new file mode 100644 index 0000000..a5e9d94 --- /dev/null +++ b/app/Models/CancellationType.php @@ -0,0 +1,27 @@ + + */ + protected $fillable = [ + 'description', + ]; + + + public function invoices(): HasMany + { + return $this->hasMany(Invoice::class); + } +} diff --git a/app/Models/Conciliation.php b/app/Models/Conciliation.php new file mode 100644 index 0000000..67082a1 --- /dev/null +++ b/app/Models/Conciliation.php @@ -0,0 +1,30 @@ +belongsTo(Invoice::class); + } + + public function rfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } +} diff --git a/app/Models/Currency.php b/app/Models/Currency.php new file mode 100644 index 0000000..65e9863 --- /dev/null +++ b/app/Models/Currency.php @@ -0,0 +1,35 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + public $incrementing = false; + + protected $keyType = 'string'; + + public function invoices(): HasMany + { + return $this->hasMany(Invoice::class); + } + + public function invoicePayments(): HasMany + { + return $this->hasMany(InvoicePayment::class); + } +} diff --git a/app/Models/Dimension.php b/app/Models/Dimension.php new file mode 100644 index 0000000..0e4ade8 --- /dev/null +++ b/app/Models/Dimension.php @@ -0,0 +1,22 @@ +hasMany(SalesRevenue::class); + } + + public function expenditures(): HasMany + { + return $this->hasMany(Expenditure::class); + } +} diff --git a/app/Models/EconomicActivity.php b/app/Models/EconomicActivity.php new file mode 100644 index 0000000..28da618 --- /dev/null +++ b/app/Models/EconomicActivity.php @@ -0,0 +1,17 @@ +belongsToMany(TaxPayers::class); + } +} diff --git a/app/Models/Expenditure.php b/app/Models/Expenditure.php new file mode 100644 index 0000000..b328095 --- /dev/null +++ b/app/Models/Expenditure.php @@ -0,0 +1,22 @@ +belongsTo(Taxpayer::class); + } + + public function dimension(): BelongsTo + { + return $this->belongsTo(Dimension::class); + } +} diff --git a/app/Models/Industry.php b/app/Models/Industry.php new file mode 100644 index 0000000..ca394af --- /dev/null +++ b/app/Models/Industry.php @@ -0,0 +1,11 @@ +belongsTo(InvoiceType::class); + } + + public function rfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } + + public function usage(): BelongsTo + { + return $this->belongsTo(Usage::class); + } + + public function paymentType(): BelongsTo + { + return $this->belongsTo(PaymentType::class); + } + + public function paymentMethod(): BelongsTo + { + return $this->belongsTo(PaymentMethod::class); + } + + public function currency(): BelongsTo + { + return $this->belongsTo(Currency::class); + } + + public function status(): BelongsTo + { + return $this->belongsTo(Status::class); + } + + public function cancellationType(): BelongsTo + { + return $this->belongsTo(CancellationType::class); + } + + public function cancellationStatus(): BelongsTo + { + return $this->belongsTo(Status::class); + } + + public function issuerRfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } + + public function receiverRfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } + + public function invoiceLines(): HasMany + { + return $this->hasMany(InvoiceLine::class); + } + + public function conciliations(): HasMany + { + return $this->hasMany(Conciliation::class); + } + + public function invoicePayments(): HasMany + { + return $this->hasMany(InvoicePayment::class); + } + + public function getRfcAttribute() + { + return $this->rfc()->first()->rfc; + } + + public function getStatusAttribute() + { + return $this->status()->first()->description; + } + + public function getCancellationTypeAttribute() + { + return $this->cancellationType()->first()->description; + } + + public function getCancellationStatusAttribute() + { + return $this->cancellationStatus()->first()->description; + } + + public function getIssuerRfcAttribute() + { + return $this->issuerRfc()->first()->rfc; + } + + public function getReceiverRfcAttribute() + { + return $this->receiverRfc()->first()->rfc; + } + + public function getTotalInMxnAttribute() + { + if ($this->exchange_rate) { + $totalMXN = $this->total * $this->exchange_rate; + } else { + $totalMXN = $this->total; + } + return $totalMXN; + } + + public function getTaxInMxnAttribute() + { + if ($this->exchange_rate) { + $taxMXN = $this->tax * $this->exchange_rate; + } else { + $taxMXN = $this->tax; + } + return $taxMXN; + } + + public function getTransferredVatInMxnAttribute() + { + if ($this->exchange_rate) { + $transferredVatMXN = $this->transferred_vat * $this->exchange_rate; + } else { + $transferredVatMXN = $this->transferred_vat; + } + return $transferredVatMXN; + } + + public function getTransferredSinTaxInMxnAttribute() + { + if ($this->exchange_rate) { + $transferredSinMXN = $this->transferred_sin_tax * $this->exchange_rate; + } else { + $transferredSinMXN = $this->transferred_sin_tax; + } + return $transferredSinMXN; + } + + public function getRetainedVatInMxnAttribute() + { + if ($this->exchange_rate) { + $retainedVatMXN = $this->retained_vat * $this->exchange_rate; + } else { + $retainedVatMXN = $this->retained_vat; + } + return $retainedVatMXN; + } + + public function getRetainedIncomeTaxInMxnAttribute() + { + if ($this->exchange_rate) { + $retainedIncomeTaxMXN = $this->retained_income_tax * $this->exchange_rate; + } else { + $retainedIncomeTaxMXN = $this->retained_income_tax; + } + return $retainedIncomeTaxMXN; + } + + protected $keyType = 'string'; + + protected $hidden = ['rfc_id', 'status_id', 'cancellation_type_id', 'cancellation_status_id', 'issuer_rfc_id', 'receiver_rfc_id']; + + protected $appends = ['rfc', 'status', 'cancellation_type', 'cancellation_status', 'issuer_rfc', 'receiver_rfc', 'total_in_mxn', + 'tax_in_mxn', 'transferred_vat_in_mxn', 'transferred_sin_tax_in_mxn', 'retained_vat_in_mxn', 'retained_income_tax_in_mxn']; +} diff --git a/app/Models/InvoiceLine.php b/app/Models/InvoiceLine.php new file mode 100644 index 0000000..79c34e5 --- /dev/null +++ b/app/Models/InvoiceLine.php @@ -0,0 +1,62 @@ +belongsTo(Invoice::class); + } + + public function rfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } + + public function invoiceType(): BelongsTo + { + return $this->belongsTo(InvoiceType::class); + } + + public function paymentType(): BelongsTo + { + return $this->belongsTo(PaymentType::class); + } + + public function issuerRfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } + + public function receiverRfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } + + public function getIssuerRfcAttribute() + { + return $this->issuerRfc()->first()->rfc; + } + + public function getReceiverRfcAttribute() + { + return $this->receiverRfc()->first()->rfc; + } + + protected $keyType = 'string'; + + protected $hidden = ['issuer_rfc_id', 'receiver_rfc_id']; + + protected $appends = ['issuer_rfc', 'receiver_rfc']; +} diff --git a/app/Models/InvoicePayment.php b/app/Models/InvoicePayment.php new file mode 100644 index 0000000..787502f --- /dev/null +++ b/app/Models/InvoicePayment.php @@ -0,0 +1,162 @@ +belongsTo(Invoice::class); + } + + public function rfc(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } + + public function paymentMethod(): BelongsTo + { + return $this->belongsTo(PaymentMethod::class); + } + + public function currency(): BelongsTo + { + return $this->belongsTo(Currency::class); + } + + public function getIssuerRfcAttribute() + { + return $this->invoice()->first()->issuer_rfc; + } + + public function getReceiverRfcAttribute() + { + return $this->invoice()->first()->receiver_rfc; + } + + public function getTotalInMxnAttribute() + { + if ($this->invoice()->first()->exchange_rate) { + $totalMXN = $this->invoice()->first()->total * $this->invoice()->first()->exchange_rate; + } else { + $totalMXN = $this->invoice()->first()->total; + } + return $totalMXN; + } + + public function getAmountInMxnAttribute() + { + if ($this->exchange_rate) { + $amountMXN = abs($this->amount * $this->exchange_rate); + } else { + $amountMXN = abs($this->amount); + } + return $amountMXN; + } + + public function getTransferredVatInMxnAttribute() + { + if ($this->invoice()->first()->exchange_rate) { + $transferredVatMXN = $this->invoice()->first()->transferred_vat * $this->invoice()->first()->exchange_rate; + } else { + $transferredVatMXN = $this->invoice()->first()->transferred_vat; + } + return $transferredVatMXN; + } + + public function getRetainedVatInMxnAttribute() + { + if ($this->invoice()->first()->exchange_rate) { + $retainedVatMXN = $this->invoice()->first()->retained_vat * $this->invoice()->first()->exchange_rate; + } else { + $retainedVatMXN = $this->invoice()->first()->retained_vat; + } + return $retainedVatMXN; + } + + public function getRetainedIncomeTaxInMxnAttribute() + { + if ($this->invoice()->first()->exchange_rate) { + $retainedIncomeTaxMXN = $this->invoice()->first()->retained_income_tax * $this->invoice()->first()->exchange_rate; + } else { + $retainedIncomeTaxMXN = $this->invoice()->first()->retained_income_tax; + } + return $retainedIncomeTaxMXN; + } + + public function getTransferredVatPercentageAttribute() + { + $totalMXN = $this->getTotalInMxnAttribute(); + $transferredVatMXN = $this->getTransferredVatInMxnAttribute(); + $retainedVatMXN = $this->getRetainedVatInMxnAttribute(); + + $transferredVatPercentage = round(100*(($transferredVatMXN)/($totalMXN - $transferredVatMXN))); + + return $transferredVatPercentage; + } + + public function getTransferredVatPpdAttribute() + { + $transferredVatPercentage = $this->getTransferredVatPercentageAttribute(); + + if ($this->exchange_rate) { + $transferredVatPPD = round((abs($this->amount*$this->exchange_rate)/(1+($transferredVatPercentage*0.01)))*($transferredVatPercentage*0.01), 2); + } else { + $transferredVatPPD = round((abs($this->amount)/(1+($transferredVatPercentage*0.01)))*($transferredVatPercentage*0.01), 2); + } + + return $transferredVatPPD; + } + + public function getRetainedVatPercentageAttribute() + { + $totalMXN = $this->getTotalInMxnAttribute(); + $transferredVatMXN = $this->getTransferredVatInMxnAttribute(); + $retainedVatMXN = $this->getRetainedVatInMxnAttribute(); + + $retainedVatPercentage = round(100*(($retainedVatMXN)/($totalMXN - $transferredVatMXN))); + + return $retainedVatPercentage; + } + + public function getRetainedVatPpdAttribute() + { + $retainedVatPercentage = $this->getRetainedVatPercentageAttribute(); + $transferredVatPercentage = $this->getTransferredVatPercentageAttribute(); + + if ($this->exchange_rate) { + $retainedVatPPD = round((abs($this->amount*$this->exchange_rate)/(1+($transferredVatPercentage*0.01)))*($retainedVatPercentage*0.01), 2); + } else { + $retainedVatPPD = round((abs($this->amount)/(1+($transferredVatPercentage*0.01)))*($retainedVatPercentage*0.01), 2); + } + + return $retainedVatPPD; + } + + public function getAbsAmountAttribute() + { + $absAmount = abs($this->amount); + + return $absAmount; + } + + protected $appends = [ + 'issuer_rfc', 'receiver_rfc', 'total_in_mxn', + 'transferred_vat_in_mxn', 'retained_vat_in_mxn', + 'retained_income_tax_in_mxn', + 'transferred_vat_percentage', 'transferred_vat_ppd', + 'retained_vat_percentage', 'retained_vat_ppd', + 'abs_amount', 'amount_in_mxn' + ]; +} diff --git a/app/Models/InvoiceRequest.php b/app/Models/InvoiceRequest.php new file mode 100644 index 0000000..3a383bc --- /dev/null +++ b/app/Models/InvoiceRequest.php @@ -0,0 +1,17 @@ +belongsTo(Rfc::class); + } +} diff --git a/app/Models/InvoiceType.php b/app/Models/InvoiceType.php new file mode 100644 index 0000000..5c10efe --- /dev/null +++ b/app/Models/InvoiceType.php @@ -0,0 +1,34 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + protected $keyType = 'string'; + + public function invoices(): HasMany + { + return $this->hasMany(Invoice::class); + } + + public function invoiceLines(): HasMany + { + return $this->hasMany(InvoiceLine::class); + } +} diff --git a/app/Models/LinkedSocialAccount.php b/app/Models/LinkedSocialAccount.php new file mode 100644 index 0000000..bc23c5c --- /dev/null +++ b/app/Models/LinkedSocialAccount.php @@ -0,0 +1,21 @@ +belongsTo(User::class); + } +} diff --git a/app/Models/ManagerOTP.php b/app/Models/ManagerOTP.php new file mode 100644 index 0000000..feb3aa2 --- /dev/null +++ b/app/Models/ManagerOTP.php @@ -0,0 +1,22 @@ +belongsTo(User::class); + } + + public function rfcs(): BelongsTo + { + return $this->belongsTo(Rfc::class); + } +} diff --git a/app/Models/PaymentMethod.php b/app/Models/PaymentMethod.php new file mode 100644 index 0000000..8fa695e --- /dev/null +++ b/app/Models/PaymentMethod.php @@ -0,0 +1,35 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + protected $keyType = 'string'; + + + public function invoices(): HasMany + { + return $this->hasMany(Invoice::class); + } + + public function invoicePayments(): HasMany + { + return $this->hasMany(InvoicePayment::class); + } +} diff --git a/app/Models/PaymentType.php b/app/Models/PaymentType.php new file mode 100644 index 0000000..5838890 --- /dev/null +++ b/app/Models/PaymentType.php @@ -0,0 +1,34 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + protected $keyType = 'string'; + + public function invoices(): HasMany + { + return $this->hasMany(Invoice::class); + } + + public function invoiceLines(): HasMany + { + return $this->hasMany(InvoiceLine::class); + } +} diff --git a/app/Models/PostalCode.php b/app/Models/PostalCode.php new file mode 100644 index 0000000..bef4d48 --- /dev/null +++ b/app/Models/PostalCode.php @@ -0,0 +1,22 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + +} diff --git a/app/Models/ProdServCode.php b/app/Models/ProdServCode.php new file mode 100644 index 0000000..33c5b7f --- /dev/null +++ b/app/Models/ProdServCode.php @@ -0,0 +1,22 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + +} diff --git a/app/Models/Rfc.php b/app/Models/Rfc.php new file mode 100644 index 0000000..c6e2027 --- /dev/null +++ b/app/Models/Rfc.php @@ -0,0 +1,62 @@ + + */ + protected $fillable = [ + 'rfc', + ]; + + public function users(): BelongsToMany + { + return $this->belongsToMany(User::class); + } + + public function managerOTP(): HasMany + { + return $this->hasMany(ManagerOTP::class); + } + + public function invoices(): HasMany + { + return $this->hasMany(Invoice::class); + } + + public function invoiceLines(): HasMany + { + return $this->hasMany(InvoiceLine::class); + } + + public function invoicePayments(): HasMany + { + return $this->hasMany(InvoiceLine::class); + } + + public function invoiceRequest(): HasMany + { + return $this->hasMany(InvoiceRequest::class); + } + + public function taxpayers(): HasMany + { + return $this->hasMany(Taxpayer::class); + } + + public function conciliations(): HasMany + { + return $this->hasMany(Conciliation::class); + } +} diff --git a/app/Models/Risk.php b/app/Models/Risk.php new file mode 100644 index 0000000..c1c0b14 --- /dev/null +++ b/app/Models/Risk.php @@ -0,0 +1,17 @@ +belongsToMany(TaxPayers::class); + } +} diff --git a/app/Models/Role.php b/app/Models/Role.php new file mode 100644 index 0000000..a740b31 --- /dev/null +++ b/app/Models/Role.php @@ -0,0 +1,27 @@ + + */ + protected $fillable = [ + 'description', + ]; + + public function users(): HasMany + { + return $this->hasMany(User::class); + } +} diff --git a/app/Models/SalesRevenue.php b/app/Models/SalesRevenue.php new file mode 100644 index 0000000..17ce82e --- /dev/null +++ b/app/Models/SalesRevenue.php @@ -0,0 +1,22 @@ +belongsTo(Taxpayer::class); + } + + public function dimension(): BelongsTo + { + return $this->belongsTo(Dimension::class); + } +} diff --git a/app/Models/Status.php b/app/Models/Status.php new file mode 100644 index 0000000..cfc7cf8 --- /dev/null +++ b/app/Models/Status.php @@ -0,0 +1,33 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + + public function invoices(): HasMany + { + return $this->hasMany(Invoice::class); + } + + public function invoiceLines(): HasMany + { + return $this->hasMany(InvoiceLine::class); + } +} diff --git a/app/Models/Tax.php b/app/Models/Tax.php new file mode 100644 index 0000000..3800ff7 --- /dev/null +++ b/app/Models/Tax.php @@ -0,0 +1,23 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + protected $keyType = 'string'; +} diff --git a/app/Models/TaxRate.php b/app/Models/TaxRate.php new file mode 100644 index 0000000..b7731ec --- /dev/null +++ b/app/Models/TaxRate.php @@ -0,0 +1,23 @@ + + */ + protected $fillable = [ + 'id', + 'tax_id', + 'description' + ]; + +} diff --git a/app/Models/TaxRegime.php b/app/Models/TaxRegime.php new file mode 100644 index 0000000..c991aa7 --- /dev/null +++ b/app/Models/TaxRegime.php @@ -0,0 +1,17 @@ +belongsToMany(TaxPayers::class); + } +} diff --git a/app/Models/Taxpayer.php b/app/Models/Taxpayer.php new file mode 100644 index 0000000..a616123 --- /dev/null +++ b/app/Models/Taxpayer.php @@ -0,0 +1,48 @@ +belongsTo(Rfc::class); + } + + public function economicActivities(): BelongsToMany + { + return $this->belongsToMany(EconomicActivity::class); + } + + public function taxRegimes(): BelongsToMany + { + return $this->belongsToMany(TaxRegime::class); + } + + public function risks(): BelongsToMany + { + return $this->belongsToMany(Risks::class); + } + + public function salesRevenues(): HasMany + { + return $this->hasMany(SalesRevenue::class); + } + + public function expenditures(): HasMany + { + return $this->hasMany(Expenditure::class); + } +} diff --git a/app/Models/UnitCode.php b/app/Models/UnitCode.php new file mode 100644 index 0000000..066ba8a --- /dev/null +++ b/app/Models/UnitCode.php @@ -0,0 +1,23 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + protected $keyType = 'string'; +} diff --git a/app/Models/Usage.php b/app/Models/Usage.php new file mode 100644 index 0000000..12fa24d --- /dev/null +++ b/app/Models/Usage.php @@ -0,0 +1,23 @@ + + */ + protected $fillable = [ + 'id', + 'description' + ]; + + protected $keyType = 'string'; +} diff --git a/app/Models/User.php b/app/Models/User.php new file mode 100644 index 0000000..0f50119 --- /dev/null +++ b/app/Models/User.php @@ -0,0 +1,70 @@ + + */ + protected $fillable = [ + 'name', + 'email', + 'password', + 'role_id' + ]; + + /** + * The attributes that should be hidden for serialization. + * + * @var array + */ + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * The attributes that should be cast. + * + * @var array + */ + protected $casts = [ + 'email_verified_at' => 'datetime', + ]; + + public function linkedSocialAccounts() + { + return $this->hasMany(LinkedSocialAccount::class); + } + + public function role(): BelongsTo + { + return $this->belongsTo(Role::class); + } + + public function rfcs(): BelongsToMany + { + return $this->belongsToMany(Rfc::class); + } + + public function managerOTPs(): HasMany + { + return $this->hasMany(ManagerOTP::class); + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..4ca79ed --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,42 @@ +extendSocialite('clerk', \SocialiteProviders\Clerk\Provider::class); + }); + } + /** + * All of the container bindings that should be registered. + * + * @var array + */ + public $bindings = [ + SocialUserResolverInterface::class => SocialUserResolver::class, + ]; +} diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php new file mode 100644 index 0000000..33b83f5 --- /dev/null +++ b/app/Providers/AuthServiceProvider.php @@ -0,0 +1,30 @@ + + */ + protected $policies = [ + // 'App\Models\Model' => '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..395c518 --- /dev/null +++ b/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,21 @@ +> + */ + protected $listen = [ + Registered::class => [ + SendEmailVerificationNotification::class, + ], + ]; + + /** + * Register any events for your application. + * + * @return void + */ + public function boot() + { + // + } + + /** + * Determine if events and listeners should be automatically discovered. + * + * @return bool + */ + public function shouldDiscoverEvents() + { + return false; + } +} diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..5732914 --- /dev/null +++ b/app/Providers/RouteServiceProvider.php @@ -0,0 +1,65 @@ +configureRateLimiting(); + + $this->routes(function () { + Route::middleware('api') + ->prefix('api') + ->group(base_path('routes/api.php')); + + Route::middleware('web') + ->group(base_path('routes/web.php')); + }); + } + + /** + * Configure the rate limiters for the application. + * + * @return void + */ + protected function configureRateLimiting() + { + RateLimiter::for('custom-origin', function ($request) { + // Aquí decides qué origen permitir sin límite + $allowedOrigins = ['https://cx1n8n.ext.consultoria-as.com/', 'http://cx1n8n.ext.consultoria-as.com/']; + $origin = $request->header('origin') ?? $request->header('referer'); + + if (in_array($origin, $allowedOrigins)) { + // No limitar + return Limit::none(); + } + + return Limit::perMinute(200)->by($request->ip()); + }); + + RateLimiter::for('api', function (Request $request) { + return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); + }); + } +} diff --git a/app/Services/SocialAccountsService.php b/app/Services/SocialAccountsService.php new file mode 100644 index 0000000..c8a8200 --- /dev/null +++ b/app/Services/SocialAccountsService.php @@ -0,0 +1,47 @@ +where('provider_id', $providerUser->getId()) + ->first(); + if ($linkedSocialAccount) { + return $linkedSocialAccount->user; + } else { + $user = null; + if ($email = $providerUser->getEmail()) { + $user = User::where('email', $email)->first(); + } + if (! $user) { + $user = User::create([ + 'name' => $providerUser->getName(), + 'email' => $providerUser->getEmail(), + //'rfc' = $providerUser->public_metadata->rfc, + 'social_id' => $providerUser->getId() . '_' . $provider + ]); + $user->save(); + } + $user->linkedSocialAccounts()->create([ + 'provider_id' => $providerUser->getId(), + 'provider_name' => $provider + ]); + return $user; + } + } +} diff --git a/app/Services/SocialUserResolver.php b/app/Services/SocialUserResolver.php new file mode 100644 index 0000000..eb145ac --- /dev/null +++ b/app/Services/SocialUserResolver.php @@ -0,0 +1,34 @@ +scopes(['profile email public_metadata'])->userFromToken($accessToken); + } catch (Exception $exception) {} + + if ($providerUser) { + return (new SocialAccountsService())->findOrCreate($providerUser, $provider); + } + return null; + } +} diff --git a/artisan b/artisan new file mode 100644 index 0000000..67a3329 --- /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..b467090 --- /dev/null +++ b/composer.json @@ -0,0 +1,68 @@ +{ + "name": "laravel/laravel", + "type": "project", + "description": "The Laravel Framework.", + "keywords": ["framework", "laravel"], + "license": "MIT", + "require": { + "php": "^8.0.2", + "facturama/facturama-php-sdk": "^2.0", + "guzzlehttp/guzzle": "^7.2", + "laravel/framework": "^9.19", + "laravel/socialite": "^5.15", + "laravel/tinker": "^2.7", + "maatwebsite/excel": "^3.1", + "socialiteproviders/clerk": "^5.0" + }, + "require-dev": { + "fakerphp/faker": "^1.9.1", + "laravel/pint": "^1.0", + "laravel/sail": "^1.0.1", + "mockery/mockery": "^1.4.4", + "nunomaduro/collision": "^6.1", + "phpunit/phpunit": "^9.5.10", + "spatie/laravel-ignition": "^1.0" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } + }, + "minimum-stability": "stable", + "prefer-stable": true +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..f27f72a --- /dev/null +++ b/composer.lock @@ -0,0 +1,9236 @@ +{ + "_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": "f89a5c4a54cb1f12c3362b051d9c3b7d", + "packages": [ + { + "name": "brick/math", + "version": "0.11.0", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478", + "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^9.0", + "vimeo/psalm": "5.0.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "brick", + "math" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.11.0" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2023-01-15T23:15:59+00:00" + }, + { + "name": "carbonphp/carbon-doctrine-types", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", + "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "conflict": { + "doctrine/dbal": "<4.0.0 || >=5.0.0" + }, + "require-dev": { + "doctrine/dbal": "^4.0.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2024-02-09T16:56:22+00:00" + }, + { + "name": "composer/semver", + "version": "3.4.3", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.3" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-09-19T14:15:21+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" + }, + "time": "2024-07-08T12:26:09+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.10", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^11.0", + "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 || ^5.4" + }, + "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.10" + }, + "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": "2024-02-18T20:23:39+00:00" + }, + { + "name": "doctrine/lexer", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "doctrine/coding-standard": "^12", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "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": "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/3.0.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:56:58+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.3.3", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/adfb1f505deb6384dc8b39804c5065dd3c8c8c0a", + "reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "webmozart/assert": "^1.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-webmozart-assert": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.3" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2023-08-10T19:36:49+00:00" + }, + { + "name": "egulias/email-validator", + "version": "4.0.2", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e", + "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^2.0 || ^3.0", + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.26" + }, + "require-dev": { + "phpunit/phpunit": "^10.2", + "vimeo/psalm": "^5.12" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/4.0.2" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2023-10-06T06:47:41+00:00" + }, + { + "name": "ezyang/htmlpurifier", + "version": "v4.17.0", + "source": { + "type": "git", + "url": "https://github.com/ezyang/htmlpurifier.git", + "reference": "bbc513d79acf6691fa9cf10f192c90dd2957f18c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/bbc513d79acf6691fa9cf10f192c90dd2957f18c", + "reference": "bbc513d79acf6691fa9cf10f192c90dd2957f18c", + "shasum": "" + }, + "require": { + "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + }, + "require-dev": { + "cerdic/css-tidy": "^1.7 || ^2.0", + "simpletest/simpletest": "dev-master" + }, + "suggest": { + "cerdic/css-tidy": "If you want to use the filter 'Filter.ExtractStyleBlocks'.", + "ext-bcmath": "Used for unit conversion and imagecrash protection", + "ext-iconv": "Converts text to and from non-UTF-8 encodings", + "ext-tidy": "Used for pretty-printing HTML" + }, + "type": "library", + "autoload": { + "files": [ + "library/HTMLPurifier.composer.php" + ], + "psr-0": { + "HTMLPurifier": "library/" + }, + "exclude-from-classmap": [ + "/library/HTMLPurifier/Language/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Edward Z. Yang", + "email": "admin@htmlpurifier.org", + "homepage": "http://ezyang.com" + } + ], + "description": "Standards compliant HTML filter written in PHP", + "homepage": "http://htmlpurifier.org/", + "keywords": [ + "html" + ], + "support": { + "issues": "https://github.com/ezyang/htmlpurifier/issues", + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.17.0" + }, + "time": "2023-11-17T15:01:25+00:00" + }, + { + "name": "facturama/facturama-php-sdk", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/Facturama/facturama-php-sdk.git", + "reference": "c3ac1614ea12266f1ecbb7e8975e4548a8d76369" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Facturama/facturama-php-sdk/zipball/c3ac1614ea12266f1ecbb7e8975e4548a8d76369", + "reference": "c3ac1614ea12266f1ecbb7e8975e4548a8d76369", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-openssl": "*", + "guzzlehttp/guzzle": "*", + "php": "^5.6|>=7.2|8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.0", + "phpmd/phpmd": "^2.4.3", + "phpunit/phpunit": "^5.4.3|^6.0|^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "psr-4": { + "Facturama\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Facturama", + "email": "dev@facturama.com" + } + ], + "description": "Facturama PHP SDK", + "homepage": "https://www.api.facturama.com.mx/", + "keywords": [ + "Facturama", + "api", + "json", + "php" + ], + "support": { + "issues": "https://github.com/Facturama/facturama-php/issues", + "source": "https://github.com/Facturama/facturama-php-sdk/tree/v2.0.1" + }, + "time": "2021-03-30T17:23:28+00:00" + }, + { + "name": "firebase/php-jwt", + "version": "v6.10.1", + "source": { + "type": "git", + "url": "https://github.com/firebase/php-jwt.git", + "reference": "500501c2ce893c824c801da135d02661199f60c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5", + "reference": "500501c2ce893c824c801da135d02661199f60c5", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.4", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "psr/cache": "^2.0||^3.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.10.1" + }, + "time": "2024-05-18T18:05:11+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/3d158f36e7875e2f040f37bc0573956240a5a38b", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "symfony/http-foundation": "^4.4|^5.4|^6|^7" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.3.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2023-10-12T05:21:21+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.3", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/3ba905c11371512af9d9bdd27d99b782216b6945", + "reference": "3ba905c11371512af9d9bdd27d99b782216b6945", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:45:45+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.9.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0.3", + "guzzlehttp/psr7": "^2.7.0", + "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.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "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.9.2" + }, + "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": "2024-07-24T11:22:20+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", + "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" + }, + "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.3" + }, + "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": "2024-07-18T10:29:17+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.7.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "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.2", + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" + }, + "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.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/psr7", + "type": "tidelift" + } + ], + "time": "2024-07-18T11:15:46+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/ecea8feef63bd4fef1f037ecb288386999ecc11c", + "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.36 || ^9.6.15", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "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" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2023-12-03T19:50:20+00:00" + }, + { + "name": "laravel/framework", + "version": "v9.52.16", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "082345d76fc6a55b649572efe10b11b03e279d24" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/082345d76fc6a55b649572efe10b11b03e279d24", + "reference": "082345d76fc6a55b649572efe10b11b03e279d24", + "shasum": "" + }, + "require": { + "brick/math": "^0.9.3|^0.10.2|^0.11", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.3.2", + "egulias/email-validator": "^3.2.1|^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.2", + "guzzlehttp/uri-template": "^1.0", + "laravel/serializable-closure": "^1.2.2", + "league/commonmark": "^2.2.1", + "league/flysystem": "^3.8.0", + "monolog/monolog": "^2.0", + "nesbot/carbon": "^2.62.1", + "nunomaduro/termwind": "^1.13", + "php": "^8.0.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^6.0.9", + "symfony/error-handler": "^6.0", + "symfony/finder": "^6.0", + "symfony/http-foundation": "^6.0", + "symfony/http-kernel": "^6.0", + "symfony/mailer": "^6.0", + "symfony/mime": "^6.0", + "symfony/process": "^6.0", + "symfony/routing": "^6.0", + "symfony/uid": "^6.0", + "symfony/var-dumper": "^6.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.4.1", + "voku/portable-ascii": "^2.0" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.235.5", + "doctrine/dbal": "^2.13.3|^3.1.4", + "ext-gmp": "*", + "fakerphp/faker": "^1.21", + "guzzlehttp/guzzle": "^7.5", + "league/flysystem-aws-s3-v3": "^3.0", + "league/flysystem-ftp": "^3.0", + "league/flysystem-path-prefixing": "^3.3", + "league/flysystem-read-only": "^3.3", + "league/flysystem-sftp-v3": "^3.0", + "mockery/mockery": "^1.5.1", + "orchestra/testbench-core": "^7.24", + "pda/pheanstalk": "^4.0", + "phpstan/phpdoc-parser": "^1.15", + "phpstan/phpstan": "^1.4.7", + "phpunit/phpunit": "^9.5.8", + "predis/predis": "^1.1.9|^2.0.2", + "symfony/cache": "^6.0", + "symfony/http-client": "^6.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.235.5).", + "brianium/paratest": "Required to run tests in parallel (^6.0).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "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 and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "guzzlehttp/guzzle": "Required to use the HTTP Client and the ping methods on schedules (^7.5).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.0).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.0).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.3).", + "league/flysystem-read-only": "Required to use read-only disks (^3.3)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.0).", + "mockery/mockery": "Required to use mocking (^1.5.1).", + "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^9.5.8).", + "predis/predis": "Required to use the predis connector (^1.1.9|^2.0.2).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^6.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^6.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^6.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^6.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^6.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2023-10-03T13:02:30+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v1.3.4", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "61b87392d986dc49ad5ef64e75b1ff5fee24ef81" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/61b87392d986dc49ad5ef64e75b1ff5fee24ef81", + "reference": "61b87392d986dc49ad5ef64e75b1ff5fee24ef81", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "nesbot/carbon": "^2.61|^3.0", + "pestphp/pest": "^1.21.3", + "phpstan/phpstan": "^1.8.2", + "symfony/var-dumper": "^5.4.11|^6.2.0|^7.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2024-08-02T07:48:17+00:00" + }, + { + "name": "laravel/socialite", + "version": "v5.15.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/socialite.git", + "reference": "cc02625f0bd1f95dc3688eb041cce0f1e709d029" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/socialite/zipball/cc02625f0bd1f95dc3688eb041cce0f1e709d029", + "reference": "cc02625f0bd1f95dc3688eb041cce0f1e709d029", + "shasum": "" + }, + "require": { + "ext-json": "*", + "firebase/php-jwt": "^6.4", + "guzzlehttp/guzzle": "^6.0|^7.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/http": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "league/oauth1-client": "^1.10.1", + "php": "^7.2|^8.0", + "phpseclib/phpseclib": "^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.0|^9.3|^10.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Socialite\\SocialiteServiceProvider" + ], + "aliases": { + "Socialite": "Laravel\\Socialite\\Facades\\Socialite" + } + } + }, + "autoload": { + "psr-4": { + "Laravel\\Socialite\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel wrapper around OAuth 1 & OAuth 2 libraries.", + "homepage": "https://laravel.com", + "keywords": [ + "laravel", + "oauth" + ], + "support": { + "issues": "https://github.com/laravel/socialite/issues", + "source": "https://github.com/laravel/socialite" + }, + "time": "2024-06-28T20:09:34+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.9.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "502e0fe3f0415d06d5db1f83a472f0f3b754bafe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/502e0fe3f0415d06d5db1f83a472f0f3b754bafe", + "reference": "502e0fe3f0415d06d5db1f83a472f0f3b754bafe", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.11.1|^0.12.0", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "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|^11.0)." + }, + "type": "library", + "extra": { + "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.9.0" + }, + "time": "2024-01-04T16:10:04+00:00" + }, + { + "name": "league/commonmark", + "version": "2.5.3", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "b650144166dfa7703e62a22e493b853b58d874b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/b650144166dfa7703e62a22e493b853b58d874b0", + "reference": "b650144166dfa7703e62a22e493b853b58d874b0", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.31.1", + "commonmark/commonmark.js": "0.31.1", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 || ^7.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 || ^7.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.6-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2024-08-16T11:46:16+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/flysystem", + "version": "3.28.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "e611adab2b1ae2e3072fa72d62c62f52c2bf1f0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/e611adab2b1ae2e3072fa72d62c62f52c2bf1f0c", + "reference": "e611adab2b1ae2e3072fa72d62c62f52c2bf1f0c", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.295.10", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-mongodb": "^1.3", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "guzzlehttp/psr7": "^2.6", + "microsoft/azure-storage-blob": "^1.1", + "mongodb/mongodb": "^1.2", + "phpseclib/phpseclib": "^3.0.36", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.28.0" + }, + "time": "2024-05-22T10:09:12+00:00" + }, + { + "name": "league/flysystem-local", + "version": "3.28.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "13f22ea8be526ea58c2ddff9e158ef7c296e4f40" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/13f22ea8be526ea58c2ddff9e158ef7c296e4f40", + "reference": "13f22ea8be526ea58c2ddff9e158ef7c296e4f40", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "source": "https://github.com/thephpleague/flysystem-local/tree/3.28.0" + }, + "time": "2024-05-06T20:05:52+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.15.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301", + "reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "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.15.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-01-28T23:22:08+00:00" + }, + { + "name": "league/oauth1-client", + "version": "v1.10.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/oauth1-client.git", + "reference": "d6365b901b5c287dd41f143033315e2f777e1167" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/oauth1-client/zipball/d6365b901b5c287dd41f143033315e2f777e1167", + "reference": "d6365b901b5c287dd41f143033315e2f777e1167", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-openssl": "*", + "guzzlehttp/guzzle": "^6.0|^7.0", + "guzzlehttp/psr7": "^1.7|^2.0", + "php": ">=7.1||>=8.0" + }, + "require-dev": { + "ext-simplexml": "*", + "friendsofphp/php-cs-fixer": "^2.17", + "mockery/mockery": "^1.3.3", + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5||9.5" + }, + "suggest": { + "ext-simplexml": "For decoding XML-based responses." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev", + "dev-develop": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "League\\OAuth1\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Corlett", + "email": "bencorlett@me.com", + "homepage": "http://www.webcomm.com.au", + "role": "Developer" + } + ], + "description": "OAuth 1.0 Client Library", + "keywords": [ + "Authentication", + "SSO", + "authorization", + "bitbucket", + "identity", + "idp", + "oauth", + "oauth1", + "single sign on", + "trello", + "tumblr", + "twitter" + ], + "support": { + "issues": "https://github.com/thephpleague/oauth1-client/issues", + "source": "https://github.com/thephpleague/oauth1-client/tree/v1.10.1" + }, + "time": "2022-04-15T14:02:14+00:00" + }, + { + "name": "maatwebsite/excel", + "version": "3.1.58", + "source": { + "type": "git", + "url": "https://github.com/SpartnerNL/Laravel-Excel.git", + "reference": "18495a71b112f43af8ffab35111a58b4e4ba4a4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SpartnerNL/Laravel-Excel/zipball/18495a71b112f43af8ffab35111a58b4e4ba4a4d", + "reference": "18495a71b112f43af8ffab35111a58b4e4ba4a4d", + "shasum": "" + }, + "require": { + "composer/semver": "^3.3", + "ext-json": "*", + "illuminate/support": "5.8.*||^6.0||^7.0||^8.0||^9.0||^10.0||^11.0", + "php": "^7.0||^8.0", + "phpoffice/phpspreadsheet": "^1.29.1", + "psr/simple-cache": "^1.0||^2.0||^3.0" + }, + "require-dev": { + "laravel/scout": "^7.0||^8.0||^9.0||^10.0", + "orchestra/testbench": "^6.0||^7.0||^8.0||^9.0", + "predis/predis": "^1.1" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Maatwebsite\\Excel\\ExcelServiceProvider" + ], + "aliases": { + "Excel": "Maatwebsite\\Excel\\Facades\\Excel" + } + } + }, + "autoload": { + "psr-4": { + "Maatwebsite\\Excel\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Patrick Brouwers", + "email": "patrick@spartner.nl" + } + ], + "description": "Supercharged Excel exports and imports in Laravel", + "keywords": [ + "PHPExcel", + "batch", + "csv", + "excel", + "export", + "import", + "laravel", + "php", + "phpspreadsheet" + ], + "support": { + "issues": "https://github.com/SpartnerNL/Laravel-Excel/issues", + "source": "https://github.com/SpartnerNL/Laravel-Excel/tree/3.1.58" + }, + "funding": [ + { + "url": "https://laravel-excel.com/commercial-support", + "type": "custom" + }, + { + "url": "https://github.com/patrickbrouwers", + "type": "github" + } + ], + "time": "2024-09-07T13:53:36+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "6187e9cc4493da94b9b63eb2315821552015fca9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/6187e9cc4493da94b9b63eb2315821552015fca9", + "reference": "6187e9cc4493da94b9b63eb2315821552015fca9", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-zlib": "*", + "php-64bit": "^8.1" + }, + "require-dev": { + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.16", + "guzzlehttp/guzzle": "^7.5", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "phpunit/phpunit": "^10.0", + "vimeo/psalm": "^5.0" + }, + "suggest": { + "guzzlehttp/psr7": "^2.4", + "psr/http-message": "^2.0" + }, + "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/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/maennchen", + "type": "github" + } + ], + "time": "2024-10-10T12:33:01+00:00" + }, + { + "name": "markbaker/complex", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "reference": "95c56caa1cf5c766ad6d65b6344b807c1e8405b9", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/3.0.2" + }, + "time": "2022-12-06T16:21:08+00:00" + }, + { + "name": "markbaker/matrix", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/728434227fe21be27ff6d86621a1b13107a2562c", + "reference": "728434227fe21be27ff6d86621a1b13107a2562c", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-master", + "phpcompatibility/php-compatibility": "^9.3", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/3.0.1" + }, + "time": "2022-12-02T22:17:43+00:00" + }, + { + "name": "monolog/monolog", + "version": "2.9.3", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "a30bfe2e142720dfa990d0a7e573997f5d884215" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/a30bfe2e142720dfa990d0a7e573997f5d884215", + "reference": "a30bfe2e142720dfa990d0a7e573997f5d884215", + "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": "^1.10", + "phpunit/phpunit": "^8.5.38 || ^9.6.19", + "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.3" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2024-04-12T20:52:51+00:00" + }, + { + "name": "nesbot/carbon", + "version": "2.72.5", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "afd46589c216118ecd48ff2b95d77596af1e57ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/afd46589c216118ecd48ff2b95d77596af1e57ed", + "reference": "afd46589c216118ecd48ff2b95d77596af1e57ed", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "*", + "ext-json": "*", + "php": "^7.1.8 || ^8.0", + "psr/clock": "^1.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^2.0 || ^3.1.4 || ^4.0", + "doctrine/orm": "^2.7 || ^3.0", + "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-master": "3.x-dev", + "dev-2.x": "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": "2024-06-03T19:18:41+00:00" + }, + { + "name": "nette/schema", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "a6d3a6d1f545f01ef38e60f375d1cf1f4de98188" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/a6d3a6d1f545f01ef38e60f375d1cf1f4de98188", + "reference": "a6d3a6d1f545f01ef38e60f375d1cf1f4de98188", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.3" + }, + "require-dev": { + "nette/tester": "^2.4", + "phpstan/phpstan-nette": "^1.0", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-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.3.0" + }, + "time": "2023-12-11T11:54:22+00:00" + }, + { + "name": "nette/utils", + "version": "v4.0.5", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "736c567e257dbe0fcf6ce81b4d6dbe05c6899f96" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/736c567e257dbe0fcf6ce81b4d6dbe05c6899f96", + "reference": "736c567e257dbe0fcf6ce81b4d6dbe05c6899f96", + "shasum": "" + }, + "require": { + "php": "8.0 - 8.4" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "dev-master", + "nette/tester": "^2.5", + "phpstan/phpstan": "^1.0", + "tracy/tracy": "^2.9" + }, + "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()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-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/v4.0.5" + }, + "time": "2024-08-07T15:39:19+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.1.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-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/v5.1.0" + }, + "time": "2024-07-01T20:03:41+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v1.15.1", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/8ab0b32c8caa4a2e09700ea32925441385e4a5dc", + "reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.0", + "symfony/console": "^5.3.0|^6.0.0" + }, + "require-dev": { + "ergebnis/phpstan-rules": "^1.0.", + "illuminate/console": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0", + "laravel/pint": "^1.0.0", + "pestphp/pest": "^1.21.0", + "pestphp/pest-plugin-mock": "^1.0", + "phpstan/phpstan": "^1.4.6", + "phpstan/phpstan-strict-rules": "^1.1.0", + "symfony/var-dumper": "^5.2.7|^6.0.0", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v1.15.1" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2023-02-08T01:06:31+00:00" + }, + { + "name": "paragonie/constant_time_encoding", + "version": "v3.0.0", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "df1e7fde177501eee2037dd159cf04f5f301a512" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/df1e7fde177501eee2037dd159cf04f5f301a512", + "reference": "df1e7fde177501eee2037dd159cf04f5f301a512", + "shasum": "" + }, + "require": { + "php": "^8" + }, + "require-dev": { + "phpunit/phpunit": "^9", + "vimeo/psalm": "^4|^5" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2024-05-08T12:36:18+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": "phpoffice/phpspreadsheet", + "version": "1.29.2", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "3a5a818d7d3e4b5bd2e56fb9de44dbded6eae07f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/3a5a818d7d3e4b5bd2e56fb9de44dbded6eae07f", + "reference": "3a5a818d7d3e4b5bd2e56fb9de44dbded6eae07f", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "ezyang/htmlpurifier": "^4.15", + "maennchen/zipstream-php": "^2.1 || ^3.0", + "markbaker/complex": "^3.0", + "markbaker/matrix": "^3.0", + "php": "^7.4 || ^8.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "dev-main", + "dompdf/dompdf": "^1.0 || ^2.0", + "friendsofphp/php-cs-fixer": "^3.2", + "mitoteam/jpgraph": "^10.3", + "mpdf/mpdf": "^8.1.1", + "phpcompatibility/php-compatibility": "^9.3", + "phpstan/phpstan": "^1.1", + "phpstan/phpstan-phpunit": "^1.0", + "phpunit/phpunit": "^8.5 || ^9.0", + "squizlabs/php_codesniffer": "^3.7", + "tecnickcom/tcpdf": "^6.5" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer", + "ext-intl": "PHP Internationalization Functions", + "mitoteam/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer" + }, + "type": "library", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.29.2" + }, + "time": "2024-09-29T07:04:47+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.3", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/e3fac8b24f56113f7cb96af14958c0dd16330f54", + "reference": "e3fac8b24f56113f7cb96af14958c0dd16330f54", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.39 || ^9.6.20 || ^10.5.28" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "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.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:41:07+00:00" + }, + { + "name": "phpseclib/phpseclib", + "version": "3.0.41", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "621c73f7dcb310b61de34d1da4c4204e8ace6ceb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/621c73f7dcb310b61de34d1da4c4204e8ace6ceb", + "reference": "621c73f7dcb310b61de34d1da4c4204e8ace6ceb", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1|^2|^3", + "paragonie/random_compat": "^1.4|^2.0|^9.99.99", + "php": ">=5.6.1" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-dom": "Install the DOM extension to load XML formatted public keys.", + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." + }, + "type": "library", + "autoload": { + "files": [ + "phpseclib/bootstrap.php" + ], + "psr-4": { + "phpseclib3\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "support": { + "issues": "https://github.com/phpseclib/phpseclib/issues", + "source": "https://github.com/phpseclib/phpseclib/tree/3.0.41" + }, + "funding": [ + { + "url": "https://github.com/terrafrost", + "type": "github" + }, + { + "url": "https://www.patreon.com/phpseclib", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", + "type": "tidelift" + } + ], + "time": "2024-08-12T00:13:54+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "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" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "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": "PSR-17: 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" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.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 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/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.0" + }, + "time": "2021-07-14T16:46:02+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.12.4", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "2fd717afa05341b4f8152547f142cd2f130f6818" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/2fd717afa05341b4f8152547f142cd2f130f6818", + "reference": "2fd717afa05341b4f8152547f142cd2f130f6818", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^7.0 || ^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." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.12.x-dev" + }, + "bamarni-bin": { + "bin-links": false, + "forward-command": false + } + }, + "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.12.4" + }, + "time": "2024-06-10T01:18:23+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": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "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/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2022-12-31T21:50:55+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.7.6", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.7.6" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2024-04-27T21:32:50+00:00" + }, + { + "name": "socialiteproviders/clerk", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/SocialiteProviders/Clerk.git", + "reference": "41e123036001ff37851b9622a910010c0e487d6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SocialiteProviders/Clerk/zipball/41e123036001ff37851b9622a910010c0e487d6a", + "reference": "41e123036001ff37851b9622a910010c0e487d6a", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^8.0", + "socialiteproviders/manager": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "SocialiteProviders\\Clerk\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignacio Cano", + "email": "dev@nacho.sh" + } + ], + "description": "Clerk OAuth2 Provider for Laravel Socialite", + "keywords": [ + "clerk", + "laravel", + "oauth", + "provider", + "socialite" + ], + "support": { + "docs": "https://socialiteproviders.com/clerk", + "issues": "https://github.com/socialiteproviders/providers/issues", + "source": "https://github.com/socialiteproviders/providers" + }, + "time": "2024-02-19T12:17:59+00:00" + }, + { + "name": "socialiteproviders/manager", + "version": "v4.6.0", + "source": { + "type": "git", + "url": "https://github.com/SocialiteProviders/Manager.git", + "reference": "dea5190981c31b89e52259da9ab1ca4e2b258b21" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SocialiteProviders/Manager/zipball/dea5190981c31b89e52259da9ab1ca4e2b258b21", + "reference": "dea5190981c31b89e52259da9ab1ca4e2b258b21", + "shasum": "" + }, + "require": { + "illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0", + "laravel/socialite": "^5.5", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.2", + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "SocialiteProviders\\Manager\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "SocialiteProviders\\Manager\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andy Wendt", + "email": "andy@awendt.com" + }, + { + "name": "Anton Komarev", + "email": "a.komarev@cybercog.su" + }, + { + "name": "Miguel Piedrafita", + "email": "soy@miguelpiedrafita.com" + }, + { + "name": "atymic", + "email": "atymicq@gmail.com", + "homepage": "https://atymic.dev" + } + ], + "description": "Easily add new or override built-in providers in Laravel Socialite.", + "homepage": "https://socialiteproviders.com", + "keywords": [ + "laravel", + "manager", + "oauth", + "providers", + "socialite" + ], + "support": { + "issues": "https://github.com/socialiteproviders/manager/issues", + "source": "https://github.com/socialiteproviders/manager" + }, + "time": "2024-05-04T07:57:39+00:00" + }, + { + "name": "symfony/console", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/504974cbe43d05f83b201d6498c206f16fc0cdbc", + "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^5.4|^6.0|^7.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0|^7.0", + "symfony/dependency-injection": "^5.4|^6.0|^7.0", + "symfony/event-dispatcher": "^5.4|^6.0|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/lock": "^5.4|^6.0|^7.0", + "symfony/messenger": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "symfony/stopwatch": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v6.4.10" + }, + "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": "2024-07-26T12:30:32+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v7.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "1c7cee86c6f812896af54434f8ce29c8d94f9ff4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/1c7cee86c6f812896af54434f8ce29c8d94f9ff4", + "reference": "1c7cee86c6f812896af54434f8ce29c8d94f9ff4", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "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/v7.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:57:53+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.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/v3.5.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": "2024-04-18T09:32:20+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "231f1b2ee80f72daa1972f7340297d67439224f0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/231f1b2ee80f72daa1972f7340297d67439224f0", + "reference": "231f1b2ee80f72daa1972f7340297d67439224f0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "conflict": { + "symfony/deprecation-contracts": "<2.5", + "symfony/http-kernel": "<6.4" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/serializer": "^5.4|^6.0|^7.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v6.4.10" + }, + "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": "2024-07-26T12:30:32+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v7.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7", + "reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/error-handler": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^6.4|^7.0" + }, + "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/v7.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:57:53+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/8f93aec25d41b72493c6ddff14e916177c9efc50", + "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.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/v3.5.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": "2024-04-18T09:32:20+00:00" + }, + { + "name": "symfony/finder", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "af29198d87112bebdd397bd7735fbd115997824c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/af29198d87112bebdd397bd7735fbd115997824c", + "reference": "af29198d87112bebdd397bd7735fbd115997824c", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v6.4.10" + }, + "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": "2024-07-24T07:06:38+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "117f1f20a7ade7bcea28b861fb79160a21a1e37b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/117f1f20a7ade7bcea28b861fb79160a21a1e37b", + "reference": "117f1f20a7ade7bcea28b861fb79160a21a1e37b", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.1", + "symfony/polyfill-php83": "^1.27" + }, + "conflict": { + "symfony/cache": "<6.3" + }, + "require-dev": { + "doctrine/dbal": "^2.13.1|^3|^4", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^6.3|^7.0", + "symfony/dependency-injection": "^5.4|^6.0|^7.0", + "symfony/expression-language": "^5.4|^6.0|^7.0", + "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4|^7.0", + "symfony/mime": "^5.4|^6.0|^7.0", + "symfony/rate-limiter": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v6.4.10" + }, + "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": "2024-07-26T12:36:27+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "147e0daf618d7575b5007055340d09aece5cf068" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/147e0daf618d7575b5007055340d09aece5cf068", + "reference": "147e0daf618d7575b5007055340d09aece5cf068", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/error-handler": "^6.4|^7.0", + "symfony/event-dispatcher": "^5.4|^6.0|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<5.4", + "symfony/cache": "<5.4", + "symfony/config": "<6.1", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<6.4", + "symfony/doctrine-bridge": "<5.4", + "symfony/form": "<5.4", + "symfony/http-client": "<5.4", + "symfony/http-client-contracts": "<2.5", + "symfony/mailer": "<5.4", + "symfony/messenger": "<5.4", + "symfony/translation": "<5.4", + "symfony/translation-contracts": "<2.5", + "symfony/twig-bridge": "<5.4", + "symfony/validator": "<6.4", + "symfony/var-dumper": "<6.3", + "twig/twig": "<2.13" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^5.4|^6.0|^7.0", + "symfony/clock": "^6.2|^7.0", + "symfony/config": "^6.1|^7.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/css-selector": "^5.4|^6.0|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/dom-crawler": "^5.4|^6.0|^7.0", + "symfony/expression-language": "^5.4|^6.0|^7.0", + "symfony/finder": "^5.4|^6.0|^7.0", + "symfony/http-client-contracts": "^2.5|^3", + "symfony/process": "^5.4|^6.0|^7.0", + "symfony/property-access": "^5.4.5|^6.0.5|^7.0", + "symfony/routing": "^5.4|^6.0|^7.0", + "symfony/serializer": "^6.4.4|^7.0.4", + "symfony/stopwatch": "^5.4|^6.0|^7.0", + "symfony/translation": "^5.4|^6.0|^7.0", + "symfony/translation-contracts": "^2.5|^3", + "symfony/uid": "^5.4|^6.0|^7.0", + "symfony/validator": "^6.4|^7.0", + "symfony/var-dumper": "^5.4|^6.4|^7.0", + "symfony/var-exporter": "^6.2|^7.0", + "twig/twig": "^2.13|^3.0.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v6.4.10" + }, + "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": "2024-07-26T14:52:04+00:00" + }, + { + "name": "symfony/mailer", + "version": "v6.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "e2d56f180f5b8c5e7c0fbea872bb1f529b6d6d45" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/e2d56f180f5b8c5e7c0fbea872bb1f529b6d6d45", + "reference": "e2d56f180f5b8c5e7c0fbea872bb1f529b6d6d45", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.1", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^5.4|^6.0|^7.0", + "symfony/mime": "^6.2|^7.0", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<5.4", + "symfony/messenger": "<6.2", + "symfony/mime": "<6.2", + "symfony/twig-bridge": "<6.2.1" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/http-client": "^5.4|^6.0|^7.0", + "symfony/messenger": "^6.2|^7.0", + "symfony/twig-bridge": "^6.2|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v6.4.9" + }, + "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": "2024-06-28T07:59:05+00:00" + }, + { + "name": "symfony/mime", + "version": "v6.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "7d048964877324debdcb4e0549becfa064a20d43" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/7d048964877324debdcb4e0549becfa064a20d43", + "reference": "7d048964877324debdcb4e0549becfa064a20d43", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<5.4", + "symfony/serializer": "<6.4.3|>7.0,<7.0.3" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "league/html-to-markdown": "^5.0", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.4|^7.0", + "symfony/property-access": "^5.4|^6.0|^7.0", + "symfony/property-info": "^5.4|^6.0|^7.0", + "symfony/serializer": "^6.4.3|^7.0.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v6.4.9" + }, + "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": "2024-06-28T09:49:33+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "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.30.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": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "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.30.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": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "a6e83bdeb3c84391d1dfe16f42e40727ce524a5c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a6e83bdeb3c84391d1dfe16f42e40727ce524a5c", + "reference": "a6e83bdeb3c84391d1dfe16f42e40727ce524a5c", + "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": { + "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.30.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": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "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.30.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": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "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.30.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": "2024-06-19T12:30:46+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "10112722600777e02d2745716b70c5db4ca70442" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/10112722600777e02d2745716b70c5db4ca70442", + "reference": "10112722600777e02d2745716b70c5db4ca70442", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "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.30.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": "2024-06-19T12:30:46+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "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.30.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": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-php83", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9", + "reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php83\\": "" + }, + "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.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php83/tree/v1.30.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": "2024-06-19T12:35:24+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "2ba1f33797470debcda07fe9dce20a0003df18e9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/2ba1f33797470debcda07fe9dce20a0003df18e9", + "reference": "2ba1f33797470debcda07fe9dce20a0003df18e9", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.30.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": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/process", + "version": "v6.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/8d92dd79149f29e89ee0f480254db595f6a6a2c5", + "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v6.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:49:08+00:00" + }, + { + "name": "symfony/routing", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "aad19fe10753ba842f0d653a8db819c4b3affa87" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/aad19fe10753ba842f0d653a8db819c4b3affa87", + "reference": "aad19fe10753ba842f0d653a8db819c4b3affa87", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "doctrine/annotations": "<1.12", + "symfony/config": "<6.2", + "symfony/dependency-injection": "<5.4", + "symfony/yaml": "<5.4" + }, + "require-dev": { + "doctrine/annotations": "^1.12|^2", + "psr/log": "^1|^2|^3", + "symfony/config": "^6.2|^7.0", + "symfony/dependency-injection": "^5.4|^6.0|^7.0", + "symfony/expression-language": "^5.4|^6.0|^7.0", + "symfony/http-foundation": "^5.4|^6.0|^7.0", + "symfony/yaml": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v6.4.10" + }, + "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": "2024-07-15T09:26:24+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.5.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": "2024-04-18T09:32:20+00:00" + }, + { + "name": "symfony/string", + "version": "v7.1.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "ea272a882be7f20cad58d5d78c215001617b7f07" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/ea272a882be7f20cad58d5d78c215001617b7f07", + "reference": "ea272a882be7f20cad58d5d78c215001617b7f07", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/emoji": "^7.1", + "symfony/error-handler": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^6.4|^7.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/v7.1.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-07-22T10:25:37+00:00" + }, + { + "name": "symfony/translation", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "94041203f8ac200ae9e7c6a18fa6137814ccecc9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/94041203f8ac200ae9e7c6a18fa6137814ccecc9", + "reference": "94041203f8ac200ae9e7c6a18fa6137814ccecc9", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.5|^3.0" + }, + "conflict": { + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<5.4", + "symfony/service-contracts": "<2.5", + "symfony/twig-bundle": "<5.4", + "symfony/yaml": "<5.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^4.18|^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0|^7.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/dependency-injection": "^5.4|^6.0|^7.0", + "symfony/finder": "^5.4|^6.0|^7.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^5.4|^6.0|^7.0", + "symfony/intl": "^5.4|^6.0|^7.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^5.4|^6.0|^7.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v6.4.10" + }, + "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": "2024-07-26T12:30:32+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "b9d2189887bb6b2e0367a9fc7136c5239ab9b05a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/b9d2189887bb6b2e0367a9fc7136c5239ab9b05a", + "reference": "b9d2189887bb6b2e0367a9fc7136c5239ab9b05a", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.5.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": "2024-04-18T09:32:20+00:00" + }, + { + "name": "symfony/uid", + "version": "v6.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "35904eca37a84bb764c560cbfcac9f0ac2bcdbdf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/35904eca37a84bb764c560cbfcac9f0ac2bcdbdf", + "reference": "35904eca37a84bb764c560cbfcac9f0ac2bcdbdf", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v6.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:49:08+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "a71cc3374f5fb9759da1961d28c452373b343dd4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/a71cc3374f5fb9759da1961d28c452373b343dd4", + "reference": "a71cc3374f5fb9759da1961d28c452373b343dd4", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<5.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/error-handler": "^6.3|^7.0", + "symfony/http-kernel": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "symfony/uid": "^5.4|^6.0|^7.0", + "twig/twig": "^2.13|^3.0.4" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v6.4.10" + }, + "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": "2024-07-26T12:30:32+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "v2.2.7", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/83ee6f38df0a63106a9e4536e3060458b74ccedb", + "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb", + "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 || ^7.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/v2.2.7" + }, + "time": "2023-12-08T13:03:43+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.1", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/a59a13791077fe3d44f90e7133eb68e7d22eaff2", + "reference": "a59a13791077fe3d44f90e7133eb68e7d22eaff2", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.3", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.3", + "symfony/polyfill-ctype": "^1.24", + "symfony/polyfill-mbstring": "^1.24", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2024-07-20T21:52:34+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b56450eed252f6801410d810c8e1727224ae0743" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", + "reference": "b56450eed252f6801410d810c8e1727224ae0743", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2022-03-08T17:03:00+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "doctrine/coding-standard": "^11", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^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/2.0.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:23:10+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.23.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "bfb4fe148adbf78eff521199619b93a52ae3554b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/bfb4fe148adbf78eff521199619b93a52ae3554b", + "reference": "bfb4fe148adbf78eff521199619b93a52ae3554b", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.23.1" + }, + "time": "2024-01-02T13:46:09+00:00" + }, + { + "name": "filp/whoops", + "version": "2.15.4", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/a139776fa3f5985a50b509f2a02ff0f709d2a546", + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546", + "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.4" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2023-11-03T12:00:00+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": "laravel/pint", + "version": "v1.17.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "e8a88130a25e3f9d4d5785e6a1afca98268ab110" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/e8a88130a25e3f9d4d5785e6a1afca98268ab110", + "reference": "e8a88130a25e3f9d4d5785e6a1afca98268ab110", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.1.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.61.1", + "illuminate/view": "^10.48.18", + "larastan/larastan": "^2.9.8", + "laravel-zero/framework": "^10.4.0", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^1.15.1", + "pestphp/pest": "^2.35.0" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2024-08-06T15:11:54+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.31.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "3d06dd18cee8059baa7b388af00ba47f6d96bd85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/3d06dd18cee8059baa7b388af00ba47f6d96bd85", + "reference": "3d06dd18cee8059baa7b388af00ba47f6d96bd85", + "shasum": "" + }, + "require": { + "illuminate/console": "^9.52.16|^10.0|^11.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0", + "illuminate/support": "^9.52.16|^10.0|^11.0", + "php": "^8.0", + "symfony/console": "^6.0|^7.0", + "symfony/yaml": "^6.0|^7.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0", + "phpstan/phpstan": "^1.10" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2024-08-02T07:45:47+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.12", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" + }, + "type": "library", + "autoload": { + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" + } + ], + "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": { + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" + }, + "time": "2024-05-16T03:13:13+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.12.0", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "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", + "phpspec/prophecy": "^1.10", + "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.12.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2024-06-12T14:39:25+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v6.4.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "f05978827b9343cba381ca05b8c7deee346b6015" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/f05978827b9343cba381ca05b8c7deee346b6015", + "reference": "f05978827b9343cba381ca05b8c7deee346b6015", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.14.5", + "php": "^8.0.0", + "symfony/console": "^6.0.2" + }, + "require-dev": { + "brianium/paratest": "^6.4.1", + "laravel/framework": "^9.26.1", + "laravel/pint": "^1.1.1", + "nunomaduro/larastan": "^1.0.3", + "nunomaduro/mock-final-classes": "^1.1.0", + "orchestra/testbench": "^7.7", + "phpunit/phpunit": "^9.5.23", + "spatie/ignition": "^1.4.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-develop": "6.x-dev" + }, + "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/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2023-01-03T12:54:54+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "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.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "9.2.31", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/48c34b5d8d983006bd2adc2d0de92963b9155965", + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.31" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:37:42+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "3.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-12-02T12:48:52+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "9.6.20", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "49d7820565836236411f5dc002d16dd689cde42f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/49d7820565836236411f5dc002d16dd689cde42f", + "reference": "49d7820565836236411f5dc002d16dd689cde42f", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.5.0 || ^2", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.12.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2.31", + "phpunit/php-file-iterator": "^3.0.6", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.4", + "phpunit/php-timer": "^5.0.3", + "sebastian/cli-parser": "^1.0.2", + "sebastian/code-unit": "^1.0.8", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.6", + "sebastian/environment": "^5.1.5", + "sebastian/exporter": "^4.0.6", + "sebastian/global-state": "^5.0.7", + "sebastian/object-enumerator": "^4.0.4", + "sebastian/resource-operations": "^3.0.4", + "sebastian/type": "^3.2.1", + "sebastian/version": "^3.0.2" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.6-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.20" + }, + "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": "2024-07-10T11:45:39+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:27:43+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" + }, + { + "name": "sebastian/comparator", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2022-09-14T12:41:17+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-22T06:19:30+00:00" + }, + { + "name": "sebastian/diff", + "version": "4.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:30:58+00:00" + }, + { + "name": "sebastian/environment", + "version": "5.1.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:03:51+00:00" + }, + { + "name": "sebastian/exporter", + "version": "4.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:33:00+00:00" + }, + { + "name": "sebastian/global-state", + "version": "5.0.7", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:35:11+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-22T06:20:34+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "4.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:07:39+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-14T16:00:52+00:00" + }, + { + "name": "sebastian/type", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:13:03+00:00" + }, + { + "name": "sebastian/version", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c6c1022351a901512170118436c764e473f6de8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" + }, + { + "name": "spatie/backtrace", + "version": "1.6.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "1a9a145b044677ae3424693f7b06479fc8c137a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/1a9a145b044677ae3424693f7b06479fc8c137a9", + "reference": "1a9a145b044677ae3424693f7b06479fc8c137a9", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "ext-json": "*", + "laravel/serializable-closure": "^1.3", + "phpunit/phpunit": "^9.3", + "spatie/phpunit-snapshot-assertions": "^4.2", + "symfony/var-dumper": "^5.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/backtrace/tree/1.6.2" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2024-07-22T08:21:24+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.8.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122", + "reference": "180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0", + "php": "^8.0", + "spatie/backtrace": "^1.6.1", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/pest-plugin-snapshots": "^1.0|^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.8.0" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-08-01T08:27:26+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.14.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "5e11c11f675bb5251f061491a493e04a1a571532" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/5e11c11f675bb5251f061491a493e04a1a571532", + "reference": "5e11c11f675bb5251f061491a493e04a1a571532", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.0", + "spatie/backtrace": "^1.5.3", + "spatie/flare-client-php": "^1.4.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "require-dev": { + "illuminate/cache": "^9.52|^10.0|^11.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/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/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-05-29T08:10:20+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb", + "reference": "b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^8.77|^9.27", + "monolog/monolog": "^2.3", + "php": "^8.0", + "spatie/flare-client-php": "^1.0.1", + "spatie/ignition": "<= 1.14.2", + "symfony/console": "^5.0|^6.0", + "symfony/var-dumper": "^5.0|^6.0" + }, + "require-dev": { + "filp/whoops": "^2.14", + "livewire/livewire": "^2.8|dev-develop", + "mockery/mockery": "^1.4", + "nunomaduro/larastan": "^1.0", + "orchestra/testbench": "^6.23|^7.0", + "pestphp/pest": "^1.20", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/laravel-ray": "^1.27" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ], + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/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/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-06-13T07:21:06+00:00" + }, + { + "name": "symfony/yaml", + "version": "v7.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "fa34c77015aa6720469db7003567b9f772492bf2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/fa34c77015aa6720469db7003567b9f772492bf2", + "reference": "fa34c77015aa6720469db7003567b9f772492bf2", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "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": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v7.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:57:53+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "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.3" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:36:25+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.0.2" + }, + "platform-dev": [], + "plugin-api-version": "2.6.0" +} diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..75d67ab --- /dev/null +++ b/config/app.php @@ -0,0 +1,221 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | your application so that it is used when running Artisan tasks. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + 'asset_url' => env('ASSET_URL'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. We have gone + | ahead and set this to a sensible default for you out of the box. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by the translation service provider. You are free to set this value + | to any of the locales which will be supported by the application. + | + */ + + 'locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Application Fallback Locale + |-------------------------------------------------------------------------- + | + | The fallback locale determines the locale to use when the current one + | is not available. You may change the value to correspond to any of + | the language folders that are provided through your application. + | + */ + + 'fallback_locale' => 'en', + + /* + |-------------------------------------------------------------------------- + | Faker Locale + |-------------------------------------------------------------------------- + | + | This locale will be used by the Faker PHP library when generating fake + | data for your database seeds. For example, this will be used to get + | localized telephone numbers, street address information and more. + | + */ + + 'faker_locale' => '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', + + 'client_id' => env('CLIENT_ID'), + + 'client_secret' => env('CLIENT_SECRET'), + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => 'file', + // 'store' => 'redis', + ], + + /* + |-------------------------------------------------------------------------- + | Autoloaded Service Providers + |-------------------------------------------------------------------------- + | + | The service providers listed here will be automatically loaded on the + | request to your application. Feel free to add your own services to + | this array to grant expanded functionality to your applications. + | + */ + + 'providers' => [ + + /* + * Laravel Framework Service Providers... + */ + Illuminate\Auth\AuthServiceProvider::class, + Illuminate\Broadcasting\BroadcastServiceProvider::class, + Illuminate\Bus\BusServiceProvider::class, + Illuminate\Cache\CacheServiceProvider::class, + Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, + Illuminate\Cookie\CookieServiceProvider::class, + Illuminate\Database\DatabaseServiceProvider::class, + Illuminate\Encryption\EncryptionServiceProvider::class, + Illuminate\Filesystem\FilesystemServiceProvider::class, + Illuminate\Foundation\Providers\FoundationServiceProvider::class, + Illuminate\Hashing\HashServiceProvider::class, + Illuminate\Mail\MailServiceProvider::class, + Illuminate\Notifications\NotificationServiceProvider::class, + Illuminate\Pagination\PaginationServiceProvider::class, + Illuminate\Pipeline\PipelineServiceProvider::class, + Illuminate\Queue\QueueServiceProvider::class, + Illuminate\Redis\RedisServiceProvider::class, + Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, + Illuminate\Session\SessionServiceProvider::class, + Illuminate\Translation\TranslationServiceProvider::class, + Illuminate\Validation\ValidationServiceProvider::class, + Illuminate\View\ViewServiceProvider::class, + + /* + * Package Service Providers... + */ + Maatwebsite\Excel\ExcelServiceProvider::class, + + /* + * Application Service Providers... + */ + App\Providers\AppServiceProvider::class, + App\Providers\AuthServiceProvider::class, + // App\Providers\BroadcastServiceProvider::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' => Facade::defaultAliases()->merge([ + // 'ExampleClass' => App\Example\ExampleClass::class, + 'Excel' => Maatwebsite\Excel\Facades\Excel::class, + ])->toArray(), + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..85fd15b --- /dev/null +++ b/config/auth.php @@ -0,0 +1,115 @@ + [ + '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" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + 'api' => [ + 'driver' => 'passport', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | 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\Models\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 each reset token will 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/broadcasting.php b/config/broadcasting.php new file mode 100644 index 0000000..9e4d4aa --- /dev/null +++ b/config/broadcasting.php @@ -0,0 +1,70 @@ + 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' => [ + 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), + 'encrypted' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', + ], + 'client_options' => [ + // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html + ], + ], + + 'ably' => [ + 'driver' => 'ably', + 'key' => env('ABLY_KEY'), + ], + + '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..33bb295 --- /dev/null +++ b/config/cache.php @@ -0,0 +1,110 @@ + 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. + | + | Supported drivers: "apc", "array", "database", "file", + | "memcached", "redis", "dynamodb", "octane", "null" + | + */ + + 'stores' => [ + + 'apc' => [ + 'driver' => 'apc', + ], + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'table' => 'cache', + 'connection' => null, + 'lock_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', + 'lock_connection' => 'default', + ], + + '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'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, or DynamoDB cache + | stores there might be other applications using the same cache. For + | that reason, you may prefix every cache key to 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..8a39e6d --- /dev/null +++ b/config/cors.php @@ -0,0 +1,34 @@ + ['api/*', 'sanctum/csrf-cookie'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => ['*'], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..137ad18 --- /dev/null +++ b/config/database.php @@ -0,0 +1,151 @@ + 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, + 'search_path' => '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, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | 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'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + '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..e9d9dbd --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,76 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | 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 set up for each driver as an example of the required values. + | + | Supported Drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + 'throw' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + 'throw' => false, + ], + + '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'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | 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..bcd3be4 --- /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' => 65536, + 'threads' => 1, + 'time' => 4, + ], + +]; diff --git a/config/logging.php b/config/logging.php new file mode 100644 index 0000000..5aa1dbb --- /dev/null +++ b/config/logging.php @@ -0,0 +1,122 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => false, + ], + + /* + |-------------------------------------------------------------------------- + | 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' => env('LOG_LEVEL', 'debug'), + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => 14, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => 'Laravel Log', + 'emoji' => ':boom:', + 'level' => env('LOG_LEVEL', 'critical'), + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..534395a --- /dev/null +++ b/config/mail.php @@ -0,0 +1,118 @@ + 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", "failover" + | + */ + + '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, + 'local_domain' => env('MAIL_EHLO_DOMAIN'), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'mailgun' => [ + 'transport' => 'mailgun', + ], + + 'postmark' => [ + 'transport' => 'postmark', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + ], + ], + + /* + |-------------------------------------------------------------------------- + | 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/passport.php b/config/passport.php new file mode 100644 index 0000000..9aa5fe8 --- /dev/null +++ b/config/passport.php @@ -0,0 +1,62 @@ + 'web', + + /* + |-------------------------------------------------------------------------- + | Encryption Keys + |-------------------------------------------------------------------------- + | + | Passport uses encryption keys while generating secure access tokens for + | your application. By default, the keys are stored as local files but + | can be set via environment variables when that is more convenient. + | + */ + + 'private_key' => env('PASSPORT_PRIVATE_KEY'), + + 'public_key' => env('PASSPORT_PUBLIC_KEY'), + + /* + |-------------------------------------------------------------------------- + | Client UUIDs + |-------------------------------------------------------------------------- + | + | By default, Passport uses auto-incrementing primary keys when assigning + | IDs to clients. However, if Passport is installed using the provided + | --uuids switch, this will be set to "true" and UUIDs will be used. + | + */ + + 'client_uuids' => true, + + /* + |-------------------------------------------------------------------------- + | Personal Access Client + |-------------------------------------------------------------------------- + | + | If you enable client hashing, you should set the personal access client + | ID and unhashed secret within your environment file. The values will + | get used while issuing fresh personal access tokens to your users. + | + */ + + 'personal_access_client' => [ + 'id' => env('PASSPORT_PERSONAL_ACCESS_CLIENT_ID'), + 'secret' => env('PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET'), + ], + +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..25ea5a8 --- /dev/null +++ b/config/queue.php @@ -0,0 +1,93 @@ + 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, + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => 'localhost', + 'queue' => 'default', + 'retry_after' => 90, + 'block_for' => 0, + 'after_commit' => false, + ], + + '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', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => 'default', + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => 90, + 'block_for' => null, + 'after_commit' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | 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-uuids'), + 'database' => env('DB_CONNECTION', 'mysql'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..c9c8914 --- /dev/null +++ b/config/services.php @@ -0,0 +1,41 @@ + [ + 'domain' => env('MAILGUN_DOMAIN'), + 'secret' => env('MAILGUN_SECRET'), + 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), + 'scheme' => 'https', + ], + + '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'), + ], + + 'clerk' => [ + 'client_id' => env('CLERK_CLIENT_ID'), + 'client_secret' => env('CLERK_CLIENT_SECRET'), + 'redirect' => env('CLERK_CALLBACK_URL'), + 'base_url' => env('CLERK_BASE_URL'), + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..8fed97c --- /dev/null +++ b/config/session.php @@ -0,0 +1,201 @@ + 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'), + + /* + |-------------------------------------------------------------------------- + | 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 + |-------------------------------------------------------------------------- + | + | While using one of the framework's cache driven session backends 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". + | + | Affects: "apc", "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | 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'), + + /* + |-------------------------------------------------------------------------- + | 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 when it can't 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 + | will set this value to "lax" since this is a secure default value. + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => 'lax', + +]; 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/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..41f8ae8 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,40 @@ + + */ +class UserFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition() + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password + 'remember_token' => Str::random(10), + ]; + } + + /** + * Indicate that the model's email address should be unverified. + * + * @return static + */ + public function unverified() + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/database/migrations/2014_08_15_233326_create_roles_table.php b/database/migrations/2014_08_15_233326_create_roles_table.php new file mode 100644 index 0000000..4841cd5 --- /dev/null +++ b/database/migrations/2014_08_15_233326_create_roles_table.php @@ -0,0 +1,31 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('roles'); + } +}; 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..0e6f5d4 --- /dev/null +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -0,0 +1,41 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->foreignId('role_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->nullOnDelete(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password')->nullable(); + $table->rememberToken(); + $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..296adc4 --- /dev/null +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -0,0 +1,32 @@ +string('email')->primary(); + $table->string('token'); + $table->dateTime('created_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('password_resets'); + } +}; diff --git a/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php b/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php new file mode 100644 index 0000000..247a167 --- /dev/null +++ b/database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php @@ -0,0 +1,31 @@ +string('id', 100)->primary(); + $table->unsignedBigInteger('user_id')->index(); + $table->uuid('client_id'); + $table->text('scopes')->nullable(); + $table->boolean('revoked'); + $table->dateTime('expires_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('oauth_auth_codes'); + } +}; diff --git a/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php b/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php new file mode 100644 index 0000000..eef9c33 --- /dev/null +++ b/database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php @@ -0,0 +1,33 @@ +string('id', 100)->primary(); + $table->unsignedBigInteger('user_id')->nullable()->index(); + $table->uuid('client_id'); + $table->string('name')->nullable(); + $table->text('scopes')->nullable(); + $table->boolean('revoked'); + $table->timestamps(); + $table->dateTime('expires_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('oauth_access_tokens'); + } +}; diff --git a/database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php b/database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php new file mode 100644 index 0000000..b007904 --- /dev/null +++ b/database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php @@ -0,0 +1,29 @@ +string('id', 100)->primary(); + $table->string('access_token_id', 100)->index(); + $table->boolean('revoked'); + $table->dateTime('expires_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('oauth_refresh_tokens'); + } +}; diff --git a/database/migrations/2016_06_01_000004_create_oauth_clients_table.php b/database/migrations/2016_06_01_000004_create_oauth_clients_table.php new file mode 100644 index 0000000..8e437ea --- /dev/null +++ b/database/migrations/2016_06_01_000004_create_oauth_clients_table.php @@ -0,0 +1,35 @@ +uuid('id')->primary(); + $table->unsignedBigInteger('user_id')->nullable()->index(); + $table->string('name'); + $table->string('secret', 100)->nullable(); + $table->string('provider')->nullable(); + $table->text('redirect'); + $table->boolean('personal_access_client'); + $table->boolean('password_client'); + $table->boolean('revoked'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('oauth_clients'); + } +}; diff --git a/database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php b/database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php new file mode 100644 index 0000000..15398c9 --- /dev/null +++ b/database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php @@ -0,0 +1,28 @@ +bigIncrements('id'); + $table->uuid('client_id'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('oauth_personal_access_clients'); + } +}; diff --git a/database/migrations/2024_07_07_022404_create_linked_social_accounts_table.php b/database/migrations/2024_07_07_022404_create_linked_social_accounts_table.php new file mode 100644 index 0000000..a9c24fd --- /dev/null +++ b/database/migrations/2024_07_07_022404_create_linked_social_accounts_table.php @@ -0,0 +1,38 @@ +id(); + $table->string('provider_id'); + $table->string('provider_name'); + $table->foreignId('user_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->nullOnDelete(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('linked_social_accounts'); + } +}; diff --git a/database/migrations/2024_08_15_233453_create_rfcs_table.php b/database/migrations/2024_08_15_233453_create_rfcs_table.php new file mode 100644 index 0000000..2a553e7 --- /dev/null +++ b/database/migrations/2024_08_15_233453_create_rfcs_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('rfc')->unique(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('rfcs'); + } +}; diff --git a/database/migrations/2024_08_15_234436_create_rfc_user_table.php b/database/migrations/2024_08_15_234436_create_rfc_user_table.php new file mode 100644 index 0000000..1cdb39b --- /dev/null +++ b/database/migrations/2024_08_15_234436_create_rfc_user_table.php @@ -0,0 +1,41 @@ +id(); + $table->foreignId('user_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('rfc_user'); + } +}; diff --git a/database/migrations/2024_08_15_235720_create_invoice_types_table.php b/database/migrations/2024_08_15_235720_create_invoice_types_table.php new file mode 100644 index 0000000..6cb99ad --- /dev/null +++ b/database/migrations/2024_08_15_235720_create_invoice_types_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('invoice_types'); + } +}; diff --git a/database/migrations/2024_08_15_235747_create_usages_table.php b/database/migrations/2024_08_15_235747_create_usages_table.php new file mode 100644 index 0000000..e296850 --- /dev/null +++ b/database/migrations/2024_08_15_235747_create_usages_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('usages'); + } +}; diff --git a/database/migrations/2024_08_15_235817_create_payment_types_table.php b/database/migrations/2024_08_15_235817_create_payment_types_table.php new file mode 100644 index 0000000..49496f2 --- /dev/null +++ b/database/migrations/2024_08_15_235817_create_payment_types_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('payment_types'); + } +}; diff --git a/database/migrations/2024_08_15_235836_create_payment_methods_table.php b/database/migrations/2024_08_15_235836_create_payment_methods_table.php new file mode 100644 index 0000000..fae9c53 --- /dev/null +++ b/database/migrations/2024_08_15_235836_create_payment_methods_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('payment_methods'); + } +}; diff --git a/database/migrations/2024_08_15_235915_create_currencies_table.php b/database/migrations/2024_08_15_235915_create_currencies_table.php new file mode 100644 index 0000000..b5298a9 --- /dev/null +++ b/database/migrations/2024_08_15_235915_create_currencies_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('currencies'); + } +}; diff --git a/database/migrations/2024_08_16_000014_create_statuses_table.php b/database/migrations/2024_08_16_000014_create_statuses_table.php new file mode 100644 index 0000000..47bfc31 --- /dev/null +++ b/database/migrations/2024_08_16_000014_create_statuses_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('statuses'); + } +}; diff --git a/database/migrations/2024_08_16_002228_create_cancellation_types_table.php b/database/migrations/2024_08_16_002228_create_cancellation_types_table.php new file mode 100644 index 0000000..41012e3 --- /dev/null +++ b/database/migrations/2024_08_16_002228_create_cancellation_types_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('cancellation_types'); + } +}; diff --git a/database/migrations/2024_08_16_180040_create_taxpayers_table.php b/database/migrations/2024_08_16_180040_create_taxpayers_table.php new file mode 100644 index 0000000..0616eec --- /dev/null +++ b/database/migrations/2024_08_16_180040_create_taxpayers_table.php @@ -0,0 +1,47 @@ +id(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->string('name')->nullable(); + $table->string('fiscal_address')->nullable(); + $table->string('fiscal_address_status')->nullable(); + $table->unsignedBigInteger('total_employees')->nullable(); + $table->float('last_year_net_income', 16, 2)->nullable(); + $table->float('last_year_total_income', 16, 2)->nullable(); + $table->float('total_revenue_last_tax_return', 16, 2)->nullable(); + $table->float('total_net_profit_last_tax_return', 16, 2)->nullable(); + $table->unsignedBigInteger('last_tax_return_year')->nullable(); + $table->float('total_sales_revenue_current_year', 16, 2)->nullable(); + $table->dateTime('registration_date')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('taxpayers'); + } +}; diff --git a/database/migrations/2024_08_16_180412_create_risks_table.php b/database/migrations/2024_08_16_180412_create_risks_table.php new file mode 100644 index 0000000..6aaa2aa --- /dev/null +++ b/database/migrations/2024_08_16_180412_create_risks_table.php @@ -0,0 +1,42 @@ +id(); + $table->string('tax_compliance')->nullable(); + $table->boolean('blacklist_status')->nullable(); + $table->unsignedBigInteger('blacklisted_counterparts')->nullable(); + $table->unsignedBigInteger('intercompany_transactions')->nullable(); + $table->unsignedBigInteger('customer_concentration')->nullable(); + $table->unsignedBigInteger('supplier_concentration')->nullable(); + $table->unsignedBigInteger('foreign_exchange_risk')->nullable(); + $table->float('cash_transaction_risk')->nullable(); + $table->float('accounting_insolvency')->nullable(); + $table->float('cancelled_issued_invoices')->nullable(); + $table->float('cancelled_received_invoices')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('risks'); + } +}; diff --git a/database/migrations/2024_08_16_180444_create_economic_activities_table.php b/database/migrations/2024_08_16_180444_create_economic_activities_table.php new file mode 100644 index 0000000..38f83e3 --- /dev/null +++ b/database/migrations/2024_08_16_180444_create_economic_activities_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('economic_activities'); + } +}; diff --git a/database/migrations/2024_08_16_180527_create_tax_regimes_table.php b/database/migrations/2024_08_16_180527_create_tax_regimes_table.php new file mode 100644 index 0000000..b6ccc73 --- /dev/null +++ b/database/migrations/2024_08_16_180527_create_tax_regimes_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tax_regimes'); + } +}; diff --git a/database/migrations/2024_08_16_180635_create_economic_activity_taxpayer_table.php b/database/migrations/2024_08_16_180635_create_economic_activity_taxpayer_table.php new file mode 100644 index 0000000..6a9aff0 --- /dev/null +++ b/database/migrations/2024_08_16_180635_create_economic_activity_taxpayer_table.php @@ -0,0 +1,45 @@ +id(); + $table->foreignId('taxpayer_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignId('economic_activity_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->integer('order')->nullable(); + $table->float('percentage')->nullable(); + $table->dateTime('started_at')->nullable(); + $table->dateTime('ended_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('economic_activity_taxpayer'); + } +}; diff --git a/database/migrations/2024_08_16_180658_create_tax_regime_taxpayer_table.php b/database/migrations/2024_08_16_180658_create_tax_regime_taxpayer_table.php new file mode 100644 index 0000000..6254b8e --- /dev/null +++ b/database/migrations/2024_08_16_180658_create_tax_regime_taxpayer_table.php @@ -0,0 +1,42 @@ +id(); + $table->foreignId('taxpayer_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignId('tax_regime_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->dateTime('started_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tax_regime_taxpayer'); + } +}; diff --git a/database/migrations/2024_08_16_180718_create_risk_taxpayer_table.php b/database/migrations/2024_08_16_180718_create_risk_taxpayer_table.php new file mode 100644 index 0000000..a70773f --- /dev/null +++ b/database/migrations/2024_08_16_180718_create_risk_taxpayer_table.php @@ -0,0 +1,42 @@ +id(); + $table->foreignId('taxpayer_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignId('risk_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->boolean('risky'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('risk_taxpayer'); + } +}; diff --git a/database/migrations/2024_08_16_180734_create_industries_table.php b/database/migrations/2024_08_16_180734_create_industries_table.php new file mode 100644 index 0000000..0d553df --- /dev/null +++ b/database/migrations/2024_08_16_180734_create_industries_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('name')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('industries'); + } +}; diff --git a/database/migrations/2024_08_16_184641_create_invoices_table.php b/database/migrations/2024_08_16_184641_create_invoices_table.php new file mode 100644 index 0000000..3f7b1d0 --- /dev/null +++ b/database/migrations/2024_08_16_184641_create_invoices_table.php @@ -0,0 +1,96 @@ +uuid('id')->primary()->unique(); + $table->uuid('api_id')->unique(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->float('version')->nullable(); + $table->string('invoice_type_id')->nullable(); + $table->string('usage_id')->nullable(); + $table->string('payment_type_id')->nullable(); + $table->string('payment_method_id')->nullable(); + $table->integer('zip_code')->nullable(); + $table->string('currency_id')->nullable(); + $table->float('exchange_rate', 16, 4)->nullable(); + $table->foreignId('status_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->string('pac'); + $table->timestamp('issued_at')->nullable(); + $table->timestamp('certified_at')->nullable(); + $table->foreignId('cancellation_type_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->unsignedBigInteger('cancellation_status_id')->nullable(); + $table->dateTime('cancelled_at')->nullable(); + $table->float('discount', 16, 2)->nullable(); + $table->float('tax', 16, 2)->nullable(); + $table->float('subtotal', 16, 2)->nullable(); + $table->float('total', 16, 2)->nullable(); + $table->float('paid_amount', 16, 2)->nullable(); + $table->float('due_amount', 16, 2)->nullable(); + $table->dateTime('fully_paid_at')->nullable(); + $table->dateTime('last_payment_date')->nullable(); + $table->unsignedBigInteger('issuer_rfc_id')->nullable(); + $table->string('issuer_name')->nullable(); + $table->unsignedBigInteger('receiver_rfc_id')->nullable(); + $table->string('receiver_name')->nullable(); + $table->boolean('is_issuer')->nullable(); + $table->boolean('is_receiver')->nullable(); + $table->string('internal_id')->nullable(); + $table->string('reference')->nullable(); + $table->float('credited_amount', 16, 2)->nullable(); + $table->float('subtotal_credited_amount', 16, 2)->nullable(); + $table->float('applied_taxes', 16, 2)->nullable(); + $table->float('total_transferred_taxes', 16, 2)->nullable(); + $table->float('transferred_local_taxes', 16, 2)->nullable(); + $table->float('transferred_vat', 16, 2)->nullable(); + $table->float('transferred_sin_tax', 16, 2)->nullable(); + $table->float('total_retained_taxes', 16, 2)->nullable(); + $table->float('retained_local_taxes', 16, 2)->nullable(); + $table->float('retained_vat', 16, 2)->nullable(); + $table->float('retained_income_tax', 16, 2)->nullable(); + $table->float('retained_sin_tax', 16, 2)->nullable(); + $table->timestamps(); + $table->foreign('invoice_type_id')->references('id')->on('invoice_types')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('usage_id')->references('id')->on('usages')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('payment_type_id')->references('id')->on('payment_types')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('payment_method_id')->references('id')->on('payment_methods')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('currency_id')->references('id')->on('currencies')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('cancellation_status_id')->references('id')->on('statuses')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('issuer_rfc_id')->references('id')->on('rfcs')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('receiver_rfc_id')->references('id')->on('rfcs')->onUpdate('cascade')->onDelete('set null'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('invoices'); + } +}; diff --git a/database/migrations/2024_08_16_184840_create_invoice_payments_table.php b/database/migrations/2024_08_16_184840_create_invoice_payments_table.php new file mode 100644 index 0000000..4e18e4c --- /dev/null +++ b/database/migrations/2024_08_16_184840_create_invoice_payments_table.php @@ -0,0 +1,52 @@ +uuid('id')->primary()->unique(); + $table->dateTime('date')->nullable(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignUuid('invoice_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->string('payment_method_id')->nullable(); + $table->string('currency_id')->nullable(); + $table->float('exchange_rate')->nullable(); + $table->integer('installment')->nullable(); + $table->float('previous_balance', 16, 2)->nullable(); + $table->float('amount', 16, 2)->nullable(); + $table->float('outstanding_balance', 16, 2)->nullable(); + $table->dateTime('cancelled_at')->nullable(); + $table->timestamps(); + $table->foreign('payment_method_id')->references('id')->on('payment_methods')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('currency_id')->references('id')->on('currencies')->onUpdate('cascade')->onDelete('set null'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('invoice_payments'); + } +}; diff --git a/database/migrations/2024_08_16_184855_create_industry_taxpayer_table.php b/database/migrations/2024_08_16_184855_create_industry_taxpayer_table.php new file mode 100644 index 0000000..e2fb414 --- /dev/null +++ b/database/migrations/2024_08_16_184855_create_industry_taxpayer_table.php @@ -0,0 +1,43 @@ +id(); + $table->foreignId('taxpayer_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignId('industry_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->float('gross_margin')->nullable(); + $table->float('net_margin')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('industry_taxpayer'); + } +}; diff --git a/database/migrations/2024_08_16_185025_create_invoice_lines_table.php b/database/migrations/2024_08_16_185025_create_invoice_lines_table.php new file mode 100644 index 0000000..26d3902 --- /dev/null +++ b/database/migrations/2024_08_16_185025_create_invoice_lines_table.php @@ -0,0 +1,70 @@ +uuid('id')->primary()->unique(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignUuid('invoice_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->string('invoice_type_id')->nullable(); + $table->string('payment_type_id')->nullable(); + $table->foreignId('status_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->unsignedBigInteger('issuer_rfc_id')->nullable(); + $table->string('issuer_name')->nullable(); + $table->unsignedBigInteger('receiver_rfc_id')->nullable(); + $table->string('receiver_name')->nullable(); + $table->dateTime('issued_at')->nullable(); + $table->string('identification_number')->nullable(); + $table->string('product_identification')->nullable(); + $table->longText('description')->nullable(); + $table->float('unit_amount', 16, 2)->nullable(); + $table->string('unit_code')->nullable(); + $table->unsignedBigInteger('quantity')->nullable(); + $table->float('discount_amount', 16, 2)->nullable(); + $table->float('total_amount', 16, 2)->nullable(); + $table->float('retained_vat', 16, 2)->nullable(); + $table->float('retained_income_tax', 16, 2)->nullable(); + $table->float('retained_sin_tax', 16, 2)->nullable(); + $table->float('transferred_vat', 16, 2)->nullable(); + $table->float('transferred_sin_tax', 16, 2)->nullable(); + $table->timestamps(); + $table->foreign('invoice_type_id')->references('id')->on('invoice_types')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('payment_type_id')->references('id')->on('payment_types')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('issuer_rfc_id')->references('id')->on('rfcs')->onUpdate('cascade')->onDelete('set null'); + $table->foreign('receiver_rfc_id')->references('id')->on('rfcs')->onUpdate('cascade')->onDelete('set null'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('invoice_lines'); + } +}; diff --git a/database/migrations/2024_08_17_163140_create_manager_o_t_p_s_table.php b/database/migrations/2024_08_17_163140_create_manager_o_t_p_s_table.php new file mode 100644 index 0000000..e0520d2 --- /dev/null +++ b/database/migrations/2024_08_17_163140_create_manager_o_t_p_s_table.php @@ -0,0 +1,45 @@ +id(); + $table->foreignId('user_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->unsignedBigInteger('manager_id')->nullable(); + $table->string('otp')->nullable(); + $table->boolean('status')->nullable(); + $table->timestamps(); + $table->foreign('manager_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('manager_o_t_p_s'); + } +}; diff --git a/database/migrations/2024_08_17_163203_create_invoice_requests_table.php b/database/migrations/2024_08_17_163203_create_invoice_requests_table.php new file mode 100644 index 0000000..3c40621 --- /dev/null +++ b/database/migrations/2024_08_17_163203_create_invoice_requests_table.php @@ -0,0 +1,38 @@ +id(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->string('type'); + $table->timestamp('requested_at'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('invoice_requests'); + } +}; diff --git a/database/migrations/2024_08_17_163228_create_dimensions_table.php b/database/migrations/2024_08_17_163228_create_dimensions_table.php new file mode 100644 index 0000000..16e2298 --- /dev/null +++ b/database/migrations/2024_08_17_163228_create_dimensions_table.php @@ -0,0 +1,32 @@ +id(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('dimensions'); + } +}; diff --git a/database/migrations/2024_08_17_163246_create_sales_revenues_table.php b/database/migrations/2024_08_17_163246_create_sales_revenues_table.php new file mode 100644 index 0000000..9cd5455 --- /dev/null +++ b/database/migrations/2024_08_17_163246_create_sales_revenues_table.php @@ -0,0 +1,43 @@ +id(); + $table->foreignId('taxpayer_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->dateTime('start_date')->nullable(); + $table->foreignId('dimension_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->float('amount')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('sales_revenues'); + } +}; diff --git a/database/migrations/2024_08_17_163300_create_expenditures_table.php b/database/migrations/2024_08_17_163300_create_expenditures_table.php new file mode 100644 index 0000000..707cff5 --- /dev/null +++ b/database/migrations/2024_08_17_163300_create_expenditures_table.php @@ -0,0 +1,43 @@ +id(); + $table->foreignId('taxpayer_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->dateTime('start_date')->nullable(); + $table->foreignId('dimension_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->float('amount')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('expenditures'); + } +}; diff --git a/database/migrations/2025_01_04_010614_create_conciliations_table.php b/database/migrations/2025_01_04_010614_create_conciliations_table.php new file mode 100644 index 0000000..6baa9b4 --- /dev/null +++ b/database/migrations/2025_01_04_010614_create_conciliations_table.php @@ -0,0 +1,45 @@ +id(); + $table->foreignUuid('invoice_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->foreignId('rfc_id') + ->nullable() + ->constrained() + ->cascadeOnUpdate() + ->cascadeOnDelete(); + $table->string('payment_description')->nullable(); + $table->dateTime('payment_at')->nullable(); + $table->boolean('is_conciliated')->nullable(); + $table->dateTime('conciliated_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('conciliations'); + } +}; diff --git a/database/migrations/2025_01_17_154958_create_prod_serv_codes_table.php b/database/migrations/2025_01_17_154958_create_prod_serv_codes_table.php new file mode 100644 index 0000000..8237ce0 --- /dev/null +++ b/database/migrations/2025_01_17_154958_create_prod_serv_codes_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('prod_serv_codes'); + } +}; diff --git a/database/migrations/2025_01_17_155249_create_unit_codes_table.php b/database/migrations/2025_01_17_155249_create_unit_codes_table.php new file mode 100644 index 0000000..b2a55e7 --- /dev/null +++ b/database/migrations/2025_01_17_155249_create_unit_codes_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('unit_codes'); + } +}; diff --git a/database/migrations/2025_01_17_155304_create_postal_codes_table.php b/database/migrations/2025_01_17_155304_create_postal_codes_table.php new file mode 100644 index 0000000..c71c2de --- /dev/null +++ b/database/migrations/2025_01_17_155304_create_postal_codes_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('postal_codes'); + } +}; diff --git a/database/migrations/2025_01_17_155352_create_taxes_table.php b/database/migrations/2025_01_17_155352_create_taxes_table.php new file mode 100644 index 0000000..ff98caa --- /dev/null +++ b/database/migrations/2025_01_17_155352_create_taxes_table.php @@ -0,0 +1,32 @@ +string('id')->primary()->unique(); + $table->string('description')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('taxes'); + } +}; diff --git a/database/migrations/2025_01_17_170350_create_tax_rates_table.php b/database/migrations/2025_01_17_170350_create_tax_rates_table.php new file mode 100644 index 0000000..8289294 --- /dev/null +++ b/database/migrations/2025_01_17_170350_create_tax_rates_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('tax_id')->nullable(); + $table->float('rate', 16, 4)->nullable(); + $table->timestamps(); + $table->foreign('tax_id')->references('id')->on('taxes')->onUpdate('cascade')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tax_rates'); + } +}; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..76d96dc --- /dev/null +++ b/database/seeders/DatabaseSeeder.php @@ -0,0 +1,24 @@ +create(); + + // \App\Models\User::factory()->create([ + // 'name' => 'Test User', + // 'email' => 'test@example.com', + // ]); + } +} diff --git a/docs/API.md b/docs/API.md new file mode 100644 index 0000000..972788d --- /dev/null +++ b/docs/API.md @@ -0,0 +1,592 @@ +# Documentacion de API - Horux Backend + +Esta documentacion describe todos los endpoints disponibles en la API de Horux. + +## Base URL + +``` +Produccion: https://horuxfin.com/api +Desarrollo: http://localhost:8000/api +``` + +## Autenticacion + +La API utiliza OAuth 2.0 mediante Laravel Passport. Todos los endpoints protegidos requieren un token Bearer en el header: + +``` +Authorization: Bearer {access_token} +``` + +--- + +## Endpoints Publicos + +### POST /auth +Autenticacion mediante Clerk OAuth. + +**Request Body:** +```json +{ + "code": "authorization_code_from_clerk" +} +``` + +**Response:** +```json +{ + "token_type": "Bearer", + "expires_in": 31536000, + "access_token": "eyJ0...", + "refresh_token": "def50..." +} +``` + +--- + +### GET /retenciones +Obtener retenciones fiscales. + +**Response:** +```json +{ + "data": [...] +} +``` + +--- + +### POST /invoice-endpoint +Endpoint para recibir facturas (rate limited). + +**Middleware:** `throttle:custom-origin` + +--- + +### GET /obtener-ingresos +Obtener ingresos desde Syntage API. + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| rfc | string | Si | RFC del contribuyente | +| year | integer | No | Ano fiscal | + +--- + +### POST /obtener-egresos +Obtener egresos desde Syntage API. + +**Request Body:** +```json +{ + "rfc": "RFC123456789", + "year": 2024 +} +``` + +--- + +### GET /ivaAFavor +Calcular IVA a favor. + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| rfc | string | Si | RFC del contribuyente | + +--- + +### GET /utilidadBrutaVsIndustria +Comparar utilidad bruta vs industria. + +--- + +### GET /risk +Consultar riesgos fiscales del contribuyente. + +--- + +### POST /consultarmetrica +Consultar metricas almacenadas. + +--- + +### POST /insertmetrica +Insertar nuevas metricas. + +--- + +### POST /consultarcomparativo +Consultar comparativo mensual. + +--- + +### POST /insertcomparativo +Insertar comparativo mensual. + +--- + +### POST /usuariosat +Registrar usuario SAT. + +--- + +## Endpoints Protegidos + +Todos estos endpoints requieren autenticacion (`middleware: auth:api`). + +--- + +## Gestion de RFCs + +### POST /insertar-rfc +Asociar un RFC al usuario autenticado. + +**Request Body:** +```json +{ + "rfc": "RFC123456789", + "razon_social": "Empresa SA de CV" +} +``` + +**Response:** +```json +{ + "success": true, + "message": "RFC insertado correctamente", + "data": { + "id": 1, + "rfc": "RFC123456789", + "razon_social": "Empresa SA de CV" + } +} +``` + +--- + +### GET /obtener-rfcs +Obtener todos los RFCs asociados al usuario. + +**Response:** +```json +{ + "data": [ + { + "id": 1, + "rfc": "RFC123456789", + "razon_social": "Empresa SA de CV" + } + ] +} +``` + +--- + +## Catalogos Fiscales + +### GET /tipos-factura +Obtener catalogo de tipos de factura. + +**Response:** +```json +{ + "data": [ + {"id": 1, "code": "I", "name": "Ingreso"}, + {"id": 2, "code": "E", "name": "Egreso"}, + {"id": 3, "code": "T", "name": "Traslado"}, + {"id": 4, "code": "N", "name": "Nomina"}, + {"id": 5, "code": "P", "name": "Pago"} + ] +} +``` + +--- + +### GET /uso-factura +Obtener catalogo de usos de factura (CFDI). + +--- + +### GET /tipos-pago +Obtener catalogo de tipos de pago. + +--- + +### GET /metodos-pago +Obtener catalogo de metodos de pago. + +**Response:** +```json +{ + "data": [ + {"id": 1, "code": "PUE", "name": "Pago en una sola exhibicion"}, + {"id": 2, "code": "PPD", "name": "Pago en parcialidades o diferido"} + ] +} +``` + +--- + +### GET /monedas +Obtener catalogo de monedas. + +--- + +### GET /regimenes-fiscales +Obtener catalogo de regimenes fiscales. + +--- + +### GET /codigos-prod-serv +Obtener catalogo de codigos de productos/servicios SAT. + +--- + +### GET /codigos-unidad +Obtener catalogo de codigos de unidad SAT. + +--- + +### GET /impuestos +Obtener catalogo de impuestos. + +--- + +### GET /tasas-impuesto +Obtener catalogo de tasas de impuesto. + +--- + +## Gestion de Facturas + +### GET /obtener-facturas +Obtener todas las facturas del RFC. + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| rfc | string | Si | RFC del contribuyente | +| fecha_inicio | date | No | Fecha inicio (YYYY-MM-DD) | +| fecha_fin | date | No | Fecha fin (YYYY-MM-DD) | +| tipo | string | No | Tipo de factura (I, E, T, N, P) | + +**Response:** +```json +{ + "data": [ + { + "id": 1, + "uuid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", + "serie": "A", + "folio": "123", + "fecha": "2024-01-15", + "subtotal": 1000.00, + "total": 1160.00, + "emisor_rfc": "RFC123456789", + "emisor_nombre": "Empresa Emisora", + "receptor_rfc": "RFC987654321", + "receptor_nombre": "Empresa Receptora", + "tipo_comprobante": "I", + "metodo_pago": "PUE" + } + ] +} +``` + +--- + +### GET /endpoint-facturas +Endpoint alternativo para obtener facturas. + +--- + +### GET /facturas-emitidas +Obtener facturas emitidas por el RFC. + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| rfc | string | Si | RFC del emisor | +| year | integer | No | Ano fiscal | +| month | integer | No | Mes (1-12) | + +--- + +### GET /facturas-emitidas-conciliadas +Obtener facturas emitidas ya conciliadas. + +--- + +### GET /facturas-recibidas +Obtener facturas recibidas por el RFC. + +--- + +### GET /facturas-recibidas-conciliadas +Obtener facturas recibidas ya conciliadas. + +--- + +### POST /conciliar-facturas +Marcar facturas como conciliadas. + +**Request Body:** +```json +{ + "invoice_ids": [1, 2, 3], + "rfc": "RFC123456789" +} +``` + +--- + +### GET /descargar-factura +Descargar CFDI en formato XML. + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| uuid | string | Si | UUID de la factura | + +**Response:** Archivo XML del CFDI. + +--- + +## Complementos de Pago + +### GET /obtener-complementos-pago +Obtener complementos de pago (facturas PPD). + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| rfc | string | Si | RFC del contribuyente | + +--- + +## Contribuyentes + +### GET /obtener-contribuyente +Obtener informacion del contribuyente desde Syntage. + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| rfc | string | Si | RFC a consultar | + +**Response:** +```json +{ + "data": { + "rfc": "RFC123456789", + "razon_social": "Empresa SA de CV", + "regimen_fiscal": "601", + "actividades_economicas": [...], + "riesgos": [...] + } +} +``` + +--- + +## Lineas de Facturas + +### GET /obtener-lineas-facturas +Obtener lineas/conceptos de facturas. + +--- + +### GET /obtener-facturas-conceptos +Obtener facturas con sus conceptos. + +--- + +## Calculos Financieros + +### GET /ingreso-tipo-i +Calcular ingresos tipo I (facturas de ingreso). + +--- + +### GET /gasto-tipo-i +Calcular gastos tipo I. + +--- + +### GET /ingreso-tipo-e +Calcular ingresos tipo E (notas de credito). + +--- + +### GET /gasto-tipo-e +Calcular gastos tipo E. + +--- + +### GET /gasto-tipo-n +Calcular gastos tipo N (nomina). + +--- + +### GET /ingreso-ppd +Calcular ingresos PPD (pagos en parcialidades). + +--- + +### GET /gasto-ppd +Calcular gastos PPD. + +--- + +### GET /adquisicion-pue +Calcular adquisiciones PUE. + +--- + +### GET /adquisicion-ppd +Calcular adquisiciones PPD. + +--- + +## Metricas + +### GET /obtener-metricas +Obtener metricas globales del RFC. + +**Query Parameters:** +| Parametro | Tipo | Requerido | Descripcion | +|-----------|------|-----------|-------------| +| rfc | string | Si | RFC del contribuyente | +| year | integer | No | Ano fiscal | + +**Response:** +```json +{ + "data": { + "ingresos_totales": 1000000.00, + "egresos_totales": 600000.00, + "iva_trasladado": 160000.00, + "iva_acreditable": 96000.00, + "iva_a_favor": 64000.00, + "isr_retenido": 50000.00 + } +} +``` + +--- + +### GET /obtener-metricas-mensuales +Obtener metricas desglosadas por mes. + +--- + +## Importacion Masiva + +### POST /importar-facturas +Importar facturas desde archivo Excel. + +**Request:** +- Content-Type: `multipart/form-data` +- Campo: `file` (archivo .xlsx o .xls) + +**Response:** +```json +{ + "success": true, + "message": "Se importaron 150 facturas correctamente", + "imported": 150, + "errors": 0 +} +``` + +--- + +### POST /importar-lineas-facturas +Importar lineas de facturas desde Excel. + +--- + +### POST /importar-codigos-prod-serv +Importar catalogo de codigos de productos/servicios. + +--- + +### POST /importar-codigos-unidad +Importar catalogo de codigos de unidad. + +--- + +## Codigos de Error + +| Codigo | Descripcion | +|--------|-------------| +| 200 | Exito | +| 201 | Recurso creado | +| 400 | Solicitud invalida | +| 401 | No autenticado | +| 403 | No autorizado | +| 404 | Recurso no encontrado | +| 422 | Error de validacion | +| 429 | Demasiadas solicitudes (rate limit) | +| 500 | Error interno del servidor | + +--- + +## Rate Limiting + +Algunos endpoints tienen rate limiting configurado: +- `/invoice-endpoint`: Limitado por origen (middleware `throttle:custom-origin`) + +--- + +## Ejemplos de Uso + +### Autenticacion con cURL + +```bash +# 1. Obtener token +curl -X POST https://horuxfin.com/api/auth \ + -H "Content-Type: application/json" \ + -d '{"code": "clerk_authorization_code"}' + +# 2. Usar token en peticiones +curl -X GET https://horuxfin.com/api/obtener-rfcs \ + -H "Authorization: Bearer {access_token}" +``` + +### Obtener facturas con JavaScript + +```javascript +const response = await fetch('https://horuxfin.com/api/obtener-facturas?rfc=RFC123456789', { + method: 'GET', + headers: { + 'Authorization': `Bearer ${accessToken}`, + 'Content-Type': 'application/json' + } +}); + +const data = await response.json(); +console.log(data); +``` + +### Importar facturas con PHP + +```php +$client = new GuzzleHttp\Client(); + +$response = $client->post('https://horuxfin.com/api/importar-facturas', [ + 'headers' => [ + 'Authorization' => 'Bearer ' . $accessToken, + ], + 'multipart' => [ + [ + 'name' => 'file', + 'contents' => fopen('/path/to/facturas.xlsx', 'r'), + 'filename' => 'facturas.xlsx' + ] + ] +]); + +$result = json_decode($response->getBody(), true); +``` diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md new file mode 100644 index 0000000..d9f86a8 --- /dev/null +++ b/docs/ARCHITECTURE.md @@ -0,0 +1,434 @@ +# Arquitectura - Horux Backend + +Documentacion de la arquitectura y diseno del sistema Horux. + +## Vision General + +Horux es una API REST que actua como intermediario entre aplicaciones cliente y servicios fiscales mexicanos. La arquitectura sigue el patron MVC de Laravel con una capa de servicios adicional. + +``` +┌─────────────────────────────────────────────────────────────────┐ +│ CLIENTES │ +│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ +│ │ Web │ │ Mobile │ │ API │ │ +│ │ App │ │ App │ │ Client │ │ +│ └────┬────┘ └────┬────┘ └────┬────┘ │ +└───────┼────────────┼────────────┼───────────────────────────────┘ + │ │ │ + └────────────┼────────────┘ + │ HTTPS + ▼ +┌─────────────────────────────────────────────────────────────────┐ +│ HORUX BACKEND (Laravel) │ +│ ┌─────────────────────────────────────────────────────────┐ │ +│ │ MIDDLEWARE │ │ +│ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ +│ │ │ CORS │ │ Auth │ │ Throttle │ │ Custom │ │ │ +│ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │ │ +│ └─────────────────────────────────────────────────────────┘ │ +│ │ │ +│ ┌─────────────────────────────────────────────────────────┐ │ +│ │ CONTROLLERS │ │ +│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │ +│ │ │ Invoice │ │ Rfc │ │ Taxpayer │ │ │ +│ │ │ Controller │ │ Controller │ │ Controller │ │ │ +│ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │ +│ └─────────────────────────────────────────────────────────┘ │ +│ │ │ +│ ┌─────────────────────────────────────────────────────────┐ │ +│ │ SERVICES │ │ +│ │ ┌─────────────────┐ ┌─────────────────────────┐ │ │ +│ │ │ SocialAccounts │ │ SocialUserResolver │ │ │ +│ │ │ Service │ │ Service │ │ │ +│ │ └─────────────────┘ └─────────────────────────┘ │ │ +│ └─────────────────────────────────────────────────────────┘ │ +│ │ │ +│ ┌─────────────────────────────────────────────────────────┐ │ +│ │ MODELS │ │ +│ │ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ │ │ +│ │ │ User │ │ Rfc │ │Invoice │ │Taxpayer│ ... │ │ +│ │ └────────┘ └────────┘ └────────┘ └────────┘ │ │ +│ └─────────────────────────────────────────────────────────┘ │ +│ │ │ +│ ┌─────────────────────────────────────────────────────────┐ │ +│ │ DATABASE │ │ +│ │ ┌──────────────┐ │ │ +│ │ │ MySQL │ │ │ +│ │ │ horux360bd │ │ │ +│ │ └──────────────┘ │ │ +│ └─────────────────────────────────────────────────────────┘ │ +└─────────────────────────────────────────────────────────────────┘ + │ + │ HTTP Requests + ▼ +┌─────────────────────────────────────────────────────────────────┐ +│ SERVICIOS EXTERNOS │ +│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ +│ │ Syntage │ │ Clerk │ │ Facturama │ │ +│ │ API │ │ OAuth │ │ SDK │ │ +│ └─────────────┘ └─────────────┘ └─────────────┘ │ +└─────────────────────────────────────────────────────────────────┘ +``` + +--- + +## Capas de la Aplicacion + +### 1. Capa de Routing + +**Ubicacion:** `routes/` + +Define los endpoints de la API y asocia rutas con controladores. + +```php +// routes/api.php +Route::group(['middleware' => 'auth:api'], function() { + Route::get('/obtener-facturas', [InvoiceController::class, 'obtenerFacturas']); +}); +``` + +**Grupos de rutas:** +- Rutas publicas (sin autenticacion) +- Rutas protegidas (requieren `auth:api`) +- Rutas con rate limiting (`throttle:custom-origin`) + +--- + +### 2. Capa de Middleware + +**Ubicacion:** `app/Http/Middleware/` + +Procesa las solicitudes antes de llegar al controlador. + +| Middleware | Proposito | +|------------|-----------| +| Authenticate | Verificar token OAuth | +| ThrottleEndpoint | Rate limiting personalizado | +| Cors | Manejo de CORS | +| EncryptCookies | Encriptar cookies | +| VerifyCsrfToken | Proteccion CSRF | + +--- + +### 3. Capa de Controllers + +**Ubicacion:** `app/Http/Controllers/` + +Manejan la logica de las solicitudes HTTP. + +**Patron utilizado:** Controller con logica de negocio embebida. + +```php +class InvoiceController extends Controller +{ + public function obtenerFacturas(Request $request) + { + // Validacion + // Logica de negocio + // Llamadas a APIs externas + // Persistencia + // Respuesta + } +} +``` + +**Controladores principales:** +- `InvoiceController` - Gestion de facturas (1811 lineas) +- `InvoicePaymentController` - Pagos de facturas +- `TaxpayerController` - Informacion de contribuyentes +- `RfcController` - Gestion de RFCs + +--- + +### 4. Capa de Services + +**Ubicacion:** `app/Services/` + +Encapsula logica reutilizable. + +```php +// app/Services/SocialAccountsService.php +class SocialAccountsService +{ + public function findOrCreate($providerUser, $provider) + { + // Logica para manejar cuentas sociales + } +} +``` + +--- + +### 5. Capa de Models + +**Ubicacion:** `app/Models/` + +Modelos Eloquent que representan las tablas de la base de datos. + +```php +class Invoice extends Model +{ + protected $fillable = ['uuid', 'serie', 'folio', ...]; + + public function rfc() + { + return $this->belongsTo(Rfc::class); + } + + public function lines() + { + return $this->hasMany(InvoiceLine::class); + } +} +``` + +--- + +### 6. Capa de Imports + +**Ubicacion:** `app/Imports/` + +Maneja la importacion de datos desde archivos Excel. + +```php +class InvoicesImport implements ToModel, WithHeadingRow, WithChunkReading +{ + public function model(array $row) + { + return new Invoice([...]); + } + + public function chunkSize(): int + { + return 1000; + } +} +``` + +--- + +## Flujos de Datos + +### Flujo de Autenticacion + +``` +1. Cliente -> POST /api/auth (code de Clerk) +2. Backend -> POST Clerk API (intercambio de codigo) +3. Clerk API -> access_token +4. Backend -> Crear/buscar usuario +5. Backend -> Generar token Passport +6. Backend -> Cliente (token Passport) +``` + +### Flujo de Obtencion de Facturas + +``` +1. Cliente -> GET /api/obtener-facturas (Bearer token) +2. Middleware -> Validar token +3. Controller -> Obtener RFC del usuario +4. Controller -> GET Syntage API (facturas) +5. Controller -> Procesar y guardar en BD +6. Controller -> Response JSON al cliente +``` + +### Flujo de Calculo de Metricas + +``` +1. Cliente -> GET /api/obtener-metricas +2. Controller -> Query facturas desde BD +3. Controller -> Calcular: + - Ingresos (tipo I) + - Egresos (tipo E) + - IVA trasladado/retenido + - ISR retenido +4. Controller -> Response con metricas +``` + +--- + +## Integraciones Externas + +### Syntage API + +**Proposito:** Obtener datos fiscales del SAT. + +**Endpoints utilizados:** +- `/invoices` - Obtener facturas +- `/insights` - Metricas financieras +- `/taxpayer` - Informacion del contribuyente +- `/risks` - Riesgos fiscales + +**Autenticacion:** API Key en header. + +```php +$response = Http::withHeaders([ + 'Authorization' => 'Bearer ' . $apiKey +])->get('https://api.syntage.com/invoices', $params); +``` + +--- + +### Clerk OAuth + +**Proposito:** Autenticacion de usuarios. + +**Flujo:** +1. Usuario se autentica en Clerk (frontend) +2. Frontend obtiene authorization code +3. Backend intercambia code por access token +4. Backend crea sesion local + +--- + +### Facturama SDK + +**Proposito:** Generar y timbrar CFDIs. + +```php +$facturama = new Facturama(['sandbox' => true]); +$cfdi = $facturama->post('Cfdi', $invoiceData); +``` + +--- + +## Patrones de Diseno + +### Repository Pattern (Parcial) + +Aunque no hay repositorios explicitos, los modelos Eloquent actuan como repositories. + +### Service Pattern + +Los servicios encapsulan logica de negocio reutilizable. + +### Strategy Pattern (Imports) + +Los importadores implementan interfaces de Maatwebsite Excel. + +--- + +## Seguridad + +### Autenticacion + +- OAuth 2.0 con Laravel Passport +- Tokens de acceso con expiracion +- Refresh tokens para renovacion + +### Autorizacion + +- Middleware `auth:api` para rutas protegidas +- Validacion de pertenencia de RFCs a usuarios + +### Protecciones + +- CORS configurado +- Rate limiting con middleware personalizado +- Validacion de entrada en controllers +- Prepared statements (Eloquent ORM) + +--- + +## Escalabilidad + +### Actual + +- Servidor unico +- Base de datos MySQL +- Cache en archivos + +### Mejoras Recomendadas + +``` +┌─────────────┐ +│ Load Balancer│ +└──────┬──────┘ + │ +┌──────┴──────┐ +│ │ +▼ ▼ +┌─────┐ ┌─────┐ +│App 1│ │App 2│ +└──┬──┘ └──┬──┘ + │ │ + └────┬─────┘ + │ + ┌────┴────┐ + │ Redis │ (Cache/Sessions) + └────┬────┘ + │ + ┌────┴────┐ + │ MySQL │ (Master-Slave) + └─────────┘ +``` + +- Redis para cache y sesiones +- Queue workers para tareas pesadas +- Replica de base de datos + +--- + +## Estructura de Directorios Detallada + +``` +app/ +├── Console/ +│ └── Kernel.php # Comandos programados +├── Exceptions/ +│ └── Handler.php # Manejo global de excepciones +├── Http/ +│ ├── Controllers/ +│ │ ├── Controller.php # Base controller +│ │ ├── InvoiceController.php +│ │ ├── RfcController.php +│ │ └── ... +│ ├── Middleware/ +│ │ ├── Authenticate.php +│ │ ├── ThrottleEndpoint.php +│ │ └── ... +│ └── Kernel.php # Registro de middleware +├── Imports/ +│ ├── InvoicesImport.php +│ └── LineItemsImport.php +├── Models/ +│ ├── Invoice.php +│ ├── User.php +│ └── ... +├── Providers/ +│ ├── AppServiceProvider.php +│ ├── AuthServiceProvider.php +│ └── ... +└── Services/ + ├── SocialAccountsService.php + └── SocialUserResolver.php +``` + +--- + +## Consideraciones de Rendimiento + +### Queries Optimizadas + +```php +// Eager loading para evitar N+1 +$invoices = Invoice::with(['lines', 'payments'])->get(); +``` + +### Importacion en Chunks + +```php +// Procesar Excel en lotes de 1000 +public function chunkSize(): int +{ + return 1000; +} +``` + +### Cache + +```php +// Cachear catalogos estaticos +$regimes = Cache::remember('tax_regimes', 3600, function() { + return TaxRegime::all(); +}); +``` diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md new file mode 100644 index 0000000..5e45132 --- /dev/null +++ b/docs/INSTALLATION.md @@ -0,0 +1,383 @@ +# Guia de Instalacion - Horux Backend + +Guia completa para instalar y configurar el proyecto Horux Backend. + +## Requisitos Previos + +### Software Requerido + +| Software | Version Minima | Comando de verificacion | +|----------|---------------|------------------------| +| PHP | 8.0.2 | `php -v` | +| Composer | 2.0 | `composer -V` | +| MySQL/MariaDB | 5.7 / 10.3 | `mysql --version` | +| Node.js | 16.0 | `node -v` | +| NPM | 8.0 | `npm -v` | +| Git | 2.0 | `git --version` | + +### Extensiones PHP Requeridas + +``` +- BCMath +- Ctype +- cURL +- DOM +- Fileinfo +- JSON +- Mbstring +- OpenSSL +- PDO +- PDO_MySQL +- Tokenizer +- XML +``` + +Verificar extensiones instaladas: +```bash +php -m +``` + +--- + +## Instalacion Paso a Paso + +### 1. Clonar Repositorio + +```bash +git clone https://git.consultoria-as.com/tu-usuario/Horux_back.git +cd Horux_back +``` + +### 2. Instalar Dependencias PHP + +```bash +composer install +``` + +Si hay problemas de memoria: +```bash +COMPOSER_MEMORY_LIMIT=-1 composer install +``` + +### 3. Instalar Dependencias NPM + +```bash +npm install +``` + +### 4. Configurar Archivo de Entorno + +```bash +# Copiar archivo de ejemplo +cp .env.example .env + +# Generar clave de aplicacion +php artisan key:generate +``` + +### 5. Editar Configuracion + +Editar el archivo `.env` con los valores apropiados: + +```env +# Aplicacion +APP_NAME=Horux +APP_ENV=local +APP_KEY=base64:GENERADA_AUTOMATICAMENTE +APP_DEBUG=true +APP_URL=http://localhost:8000 + +# Base de Datos +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=horux360bd +DB_USERNAME=tu_usuario +DB_PASSWORD=tu_password + +# Logging +LOG_CHANNEL=stack +LOG_LEVEL=debug +``` + +### 6. Crear Base de Datos + +```bash +# Conectar a MySQL +mysql -u root -p + +# Crear base de datos +CREATE DATABASE horux360bd CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; + +# Crear usuario (opcional) +CREATE USER 'horux_user'@'localhost' IDENTIFIED BY 'password_seguro'; +GRANT ALL PRIVILEGES ON horux360bd.* TO 'horux_user'@'localhost'; +FLUSH PRIVILEGES; + +# Salir +exit +``` + +### 7. Ejecutar Migraciones + +```bash +php artisan migrate +``` + +O importar el dump existente: +```bash +mysql -u usuario -p horux360bd < horux360bd.sql +``` + +### 8. Configurar Laravel Passport + +```bash +# Instalar Passport +php artisan passport:install + +# Esto generara Client ID y Client Secret +# Copiar estos valores al archivo .env o config/app.php +``` + +Agregar al `.env`: +```env +PASSPORT_CLIENT_ID=1 +PASSPORT_CLIENT_SECRET=XXXXXXXXXXXXXXXXXXXXX +``` + +### 9. Configurar Permisos de Directorios + +```bash +# Linux/Mac +chmod -R 775 storage +chmod -R 775 bootstrap/cache + +# Si hay problemas de permisos +sudo chown -R www-data:www-data storage bootstrap/cache +``` + +### 10. Compilar Assets (Opcional) + +```bash +# Desarrollo +npm run dev + +# Produccion +npm run build +``` + +### 11. Iniciar Servidor de Desarrollo + +```bash +php artisan serve +``` + +La aplicacion estara disponible en: `http://localhost:8000` + +--- + +## Configuracion Avanzada + +### Configurar Clerk (Autenticacion) + +1. Crear cuenta en [Clerk](https://clerk.com) +2. Crear aplicacion y obtener credenciales +3. Configurar redirect URIs: + - Desarrollo: `http://localhost:3000/callback` + - Produccion: `https://tu-dominio.com/callback` + +### Configurar Syntage API + +La API key de Syntage se configura en `routes/api.php`. Para produccion, mover a variables de entorno: + +```env +SYNTAGE_API_KEY=tu_api_key +``` + +### Configurar Facturama + +```env +FACTURAMA_USER=tu_usuario +FACTURAMA_PASSWORD=tu_password +FACTURAMA_SANDBOX=true # false para produccion +``` + +--- + +## Configuracion para Produccion + +### 1. Optimizar Autoloader + +```bash +composer install --optimize-autoloader --no-dev +``` + +### 2. Cachear Configuracion + +```bash +php artisan config:cache +php artisan route:cache +php artisan view:cache +``` + +### 3. Configurar Variables de Produccion + +```env +APP_ENV=production +APP_DEBUG=false +APP_URL=https://tu-dominio.com + +LOG_LEVEL=error +``` + +### 4. Configurar HTTPS + +Asegurarse de que el servidor web (Nginx/Apache) tenga SSL configurado. + +### 5. Configurar Cola de Trabajos (Opcional) + +```bash +# En .env +QUEUE_CONNECTION=database + +# Ejecutar migraciones de cola +php artisan queue:table +php artisan migrate + +# Iniciar worker +php artisan queue:work +``` + +--- + +## Configuracion de Servidor Web + +### Nginx + +```nginx +server { + listen 80; + server_name tu-dominio.com; + root /var/www/Horux_back/public; + + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-Content-Type-Options "nosniff"; + + index index.php; + + charset utf-8; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location = /favicon.ico { access_log off; log_not_found off; } + location = /robots.txt { access_log off; log_not_found off; } + + error_page 404 /index.php; + + location ~ \.php$ { + fastcgi_pass unix:/var/run/php/php8.0-fpm.sock; + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + include fastcgi_params; + } + + location ~ /\.(?!well-known).* { + deny all; + } +} +``` + +### Apache + +Crear archivo `.htaccess` en `/public`: + +```apache + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + +``` + +--- + +## Solucion de Problemas + +### Error: SQLSTATE[HY000] [2002] + +No se puede conectar a MySQL. Verificar: +- MySQL esta corriendo: `sudo systemctl status mysql` +- Credenciales en `.env` son correctas +- Host y puerto son correctos + +### Error: Permission denied + +```bash +sudo chown -R $USER:www-data storage bootstrap/cache +sudo chmod -R 775 storage bootstrap/cache +``` + +### Error: Class not found + +```bash +composer dump-autoload +php artisan clear-compiled +``` + +### Error: The Mix manifest does not exist + +```bash +npm run dev +# o +npm run build +``` + +### Limpiar Cache + +```bash +php artisan cache:clear +php artisan config:clear +php artisan route:clear +php artisan view:clear +``` + +--- + +## Comandos Utiles + +```bash +# Ver rutas disponibles +php artisan route:list + +# Ejecutar tests +php artisan test + +# Ejecutar tinker (REPL) +php artisan tinker + +# Crear nuevo controlador +php artisan make:controller NombreController + +# Crear nuevo modelo +php artisan make:model Nombre -m + +# Ver logs +tail -f storage/logs/laravel.log +``` diff --git a/docs/MODELS.md b/docs/MODELS.md new file mode 100644 index 0000000..e2e939c --- /dev/null +++ b/docs/MODELS.md @@ -0,0 +1,447 @@ +# Modelos y Base de Datos - Horux Backend + +Documentacion de los modelos Eloquent y estructura de la base de datos. + +## Diagrama de Relaciones + +``` +┌─────────────┐ ┌─────────────┐ ┌─────────────┐ +│ User │◄─────►│ Rfc │◄─────►│ Invoice │ +└─────────────┘ M:N └─────────────┘ 1:N └─────────────┘ + │ │ │ + │ 1:N │ 1:N │ 1:N + ▼ ▼ ▼ +┌─────────────────┐ ┌─────────────┐ ┌─────────────┐ +│LinkedSocialAcct │ │ Taxpayer │ │ InvoiceLine │ +└─────────────────┘ └─────────────┘ └─────────────┘ + │ + │ M:N + ▼ + ┌─────────────┐ ┌─────────────────┐ + │ TaxRegime │ │ InvoicePayment │ + └─────────────┘ └─────────────────┘ +``` + +--- + +## Modelos Principales + +### User +Usuario del sistema. + +**Tabla:** `users` + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| name | string | Nombre del usuario | +| email | string | Correo electronico | +| email_verified_at | timestamp | Fecha verificacion | +| password | string | Contrasena hasheada | +| remember_token | string | Token de sesion | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +**Relaciones:** +- `rfcs()` - BelongsToMany con Rfc +- `linkedSocialAccounts()` - HasMany con LinkedSocialAccount + +--- + +### Rfc +RFC (Registro Federal de Contribuyentes) asociado a usuarios. + +**Tabla:** `rfcs` + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| rfc | string(13) | RFC del contribuyente | +| razon_social | string | Razon social | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +**Relaciones:** +- `users()` - BelongsToMany con User +- `invoices()` - HasMany con Invoice +- `taxpayers()` - HasMany con Taxpayer + +--- + +### Invoice +Factura electronica (CFDI). + +**Tabla:** `invoices` + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| uuid | string(36) | UUID unico del CFDI | +| serie | string | Serie de la factura | +| folio | string | Folio de la factura | +| fecha | datetime | Fecha de emision | +| subtotal | decimal(18,2) | Subtotal | +| descuento | decimal(18,2) | Descuento aplicado | +| total | decimal(18,2) | Total de la factura | +| moneda | string(3) | Codigo de moneda | +| tipo_cambio | decimal(10,4) | Tipo de cambio | +| emisor_rfc | string(13) | RFC del emisor | +| emisor_nombre | string | Nombre del emisor | +| receptor_rfc | string(13) | RFC del receptor | +| receptor_nombre | string | Nombre del receptor | +| tipo_comprobante | string(1) | Tipo (I, E, T, N, P) | +| metodo_pago | string(3) | Metodo de pago | +| forma_pago | string(2) | Forma de pago | +| uso_cfdi | string(4) | Uso del CFDI | +| iva_trasladado | decimal(18,2) | IVA trasladado | +| iva_retenido | decimal(18,2) | IVA retenido | +| isr_retenido | decimal(18,2) | ISR retenido | +| rfc_id | bigint | FK a rfcs | +| conciliado | boolean | Estado de conciliacion | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +**Relaciones:** +- `rfc()` - BelongsTo con Rfc +- `lines()` - HasMany con InvoiceLine +- `payments()` - HasMany con InvoicePayment +- `invoiceType()` - BelongsTo con InvoiceType +- `conciliations()` - HasMany con Conciliation + +--- + +### InvoiceLine +Linea/concepto de una factura. + +**Tabla:** `invoice_lines` + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| invoice_id | bigint | FK a invoices | +| clave_prod_serv | string(8) | Codigo SAT producto/servicio | +| clave_unidad | string(6) | Codigo SAT unidad | +| descripcion | text | Descripcion del concepto | +| cantidad | decimal(18,6) | Cantidad | +| valor_unitario | decimal(18,6) | Valor unitario | +| importe | decimal(18,2) | Importe | +| descuento | decimal(18,2) | Descuento | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +**Relaciones:** +- `invoice()` - BelongsTo con Invoice +- `prodServCode()` - BelongsTo con ProdServCode +- `unitCode()` - BelongsTo con UnitCode + +--- + +### InvoicePayment +Pago de factura (complemento de pago PPD). + +**Tabla:** `invoice_payments` + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| invoice_id | bigint | FK a invoice (CFDI de pago) | +| doc_relacionado_uuid | string(36) | UUID factura pagada | +| fecha_pago | datetime | Fecha del pago | +| monto | decimal(18,2) | Monto pagado | +| num_parcialidad | integer | Numero de parcialidad | +| imp_saldo_ant | decimal(18,2) | Saldo anterior | +| imp_pagado | decimal(18,2) | Importe pagado | +| imp_saldo_insoluto | decimal(18,2) | Saldo insoluto | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +**Relaciones:** +- `invoice()` - BelongsTo con Invoice + +--- + +### Taxpayer +Informacion del contribuyente. + +**Tabla:** `taxpayers` + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| rfc_id | bigint | FK a rfcs | +| nombre | string | Nombre o razon social | +| tipo_persona | string | Fisica o Moral | +| situacion | string | Situacion fiscal | +| fecha_inicio_operaciones | date | Inicio de operaciones | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +**Relaciones:** +- `rfc()` - BelongsTo con Rfc +- `taxRegimes()` - BelongsToMany con TaxRegime +- `economicActivities()` - BelongsToMany con EconomicActivity +- `risks()` - BelongsToMany con Risk + +--- + +### LinkedSocialAccount +Cuenta social vinculada al usuario. + +**Tabla:** `linked_social_accounts` + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| user_id | bigint | FK a users | +| provider | string | Proveedor (clerk, google, etc) | +| provider_id | string | ID en el proveedor | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +**Relaciones:** +- `user()` - BelongsTo con User + +--- + +## Modelos de Catalogos + +### InvoiceType +Tipos de comprobante fiscal. + +| Codigo | Nombre | +|--------|--------| +| I | Ingreso | +| E | Egreso | +| T | Traslado | +| N | Nomina | +| P | Pago | + +--- + +### PaymentMethod +Metodos de pago. + +| Codigo | Nombre | +|--------|--------| +| PUE | Pago en una sola exhibicion | +| PPD | Pago en parcialidades o diferido | + +--- + +### PaymentType +Formas de pago (30+ tipos). + +| Codigo | Nombre | +|--------|--------| +| 01 | Efectivo | +| 02 | Cheque nominativo | +| 03 | Transferencia electronica | +| 04 | Tarjeta de credito | +| ... | ... | + +--- + +### Currency +Monedas. + +| Codigo | Nombre | +|--------|--------| +| MXN | Peso Mexicano | +| USD | Dolar Americano | +| EUR | Euro | +| ... | ... | + +--- + +### TaxRegime +Regimenes fiscales. + +| Codigo | Nombre | +|--------|--------| +| 601 | General de Ley Personas Morales | +| 603 | Personas Morales con Fines no Lucrativos | +| 605 | Sueldos y Salarios | +| 606 | Arrendamiento | +| 612 | Personas Fisicas con Actividades Empresariales | +| 621 | Incorporacion Fiscal | +| 626 | Regimen Simplificado de Confianza | +| ... | ... | + +--- + +### Tax +Impuestos. + +| Codigo | Nombre | +|--------|--------| +| 001 | ISR | +| 002 | IVA | +| 003 | IEPS | + +--- + +### TaxRate +Tasas de impuestos. + +| Impuesto | Tasa | +|----------|------| +| IVA | 0.16 (16%) | +| IVA | 0.08 (8% frontera) | +| IVA | 0.00 (0%) | +| ISR | Variable | +| IEPS | Variable | + +--- + +### Status +Estados de factura. + +| Codigo | Nombre | +|--------|--------| +| 1 | Vigente | +| 0 | Cancelado | + +--- + +### CancellationType +Tipos de cancelacion. + +| Codigo | Nombre | +|--------|--------| +| 01 | Con relacion | +| 02 | Sin relacion | + +--- + +### EconomicActivity +Actividades economicas. + +--- + +### Industry +Industrias/sectores. + +--- + +### Risk +Riesgos fiscales. + +--- + +### Dimension +Dimensiones de empresa. + +--- + +## Modelos de Codigos SAT + +### ProdServCode +Catalogo de productos y servicios SAT. + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| code | string(8) | Codigo SAT | +| description | string | Descripcion | + +--- + +### UnitCode +Catalogo de unidades SAT. + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| code | string(6) | Codigo SAT | +| name | string | Nombre de la unidad | + +--- + +### PostalCode +Codigos postales. + +--- + +## Modelos Financieros + +### SalesRevenue +Ingresos por ventas. + +--- + +### Expenditure +Egresos/gastos. + +--- + +### Conciliation +Conciliaciones de facturas. + +| Campo | Tipo | Descripcion | +|-------|------|-------------| +| id | bigint | ID primario | +| invoice_id | bigint | FK a invoices | +| fecha_conciliacion | datetime | Fecha de conciliacion | +| usuario_id | bigint | Usuario que concilio | +| created_at | timestamp | Fecha creacion | +| updated_at | timestamp | Fecha actualizacion | + +--- + +## Modelos Auxiliares + +### ManagerOTP +Gestion de One-Time Passwords. + +--- + +### InvoiceRequest +Solicitudes de facturas. + +--- + +### Usage +Usos de CFDI. + +--- + +### Role +Roles de usuario. + +--- + +## Migraciones + +El proyecto incluye 41 migraciones que crean toda la estructura de base de datos. Para ejecutarlas: + +```bash +# Ejecutar todas las migraciones +php artisan migrate + +# Revertir migraciones +php artisan migrate:rollback + +# Refrescar base de datos (elimina y recrea) +php artisan migrate:fresh + +# Ver estado de migraciones +php artisan migrate:status +``` + +## Seeders + +```bash +# Ejecutar todos los seeders +php artisan db:seed + +# Ejecutar seeder especifico +php artisan db:seed --class=InvoiceTypeSeeder +``` + +## Dump de Base de Datos + +El archivo `horux360bd.sql` contiene un dump completo de la base de datos para importar: + +```bash +mysql -u usuario -p horux360bd < horux360bd.sql +``` diff --git a/lang/en/auth.php b/lang/en/auth.php new file mode 100644 index 0000000..6598e2c --- /dev/null +++ b/lang/en/auth.php @@ -0,0 +1,20 @@ + 'These credentials do not match our records.', + 'password' => 'The provided password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + +]; diff --git a/lang/en/pagination.php b/lang/en/pagination.php new file mode 100644 index 0000000..d481411 --- /dev/null +++ b/lang/en/pagination.php @@ -0,0 +1,19 @@ + '« Previous', + 'next' => 'Next »', + +]; diff --git a/lang/en/passwords.php b/lang/en/passwords.php new file mode 100644 index 0000000..2345a56 --- /dev/null +++ b/lang/en/passwords.php @@ -0,0 +1,22 @@ + 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => "We can't find a user with that email address.", + +]; diff --git a/lang/en/validation.php b/lang/en/validation.php new file mode 100644 index 0000000..70407c9 --- /dev/null +++ b/lang/en/validation.php @@ -0,0 +1,184 @@ + 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute must only contain letters.', + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute must only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'ascii' => 'The :attribute must only contain single-byte alphanumeric characters and symbols.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'current_password' => 'The password is incorrect.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'decimal' => 'The :attribute must have :decimal decimal places.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute may not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'enum' => 'The selected :attribute is invalid.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', + ], + 'gte' => [ + 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', + ], + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lowercase' => 'The :attribute must be lowercase.', + 'lt' => [ + 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', + ], + 'lte' => [ + 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', + ], + 'max_digits' => 'The :attribute must not have more than :max digits.', + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', + ], + 'min_digits' => 'The :attribute must have at least :min digits.', + 'missing' => 'The :attribute field must be missing.', + 'missing_if' => 'The :attribute field must be missing when :other is :value.', + 'missing_unless' => 'The :attribute field must be missing unless :other is :value.', + 'missing_with' => 'The :attribute field must be missing when :values is present.', + 'missing_with_all' => 'The :attribute field must be missing when :values are present.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => [ + 'letters' => 'The :attribute must contain at least one letter.', + 'mixed' => 'The :attribute must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute must contain at least one number.', + 'symbols' => 'The :attribute must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'The :attribute field must be present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid timezone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'uppercase' => 'The :attribute must be uppercase.', + 'url' => 'The :attribute must be a valid URL.', + 'ulid' => 'The :attribute must be a valid ULID.', + 'uuid' => 'The :attribute must be a valid UUID.', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap our attribute placeholder + | with something more reader friendly such as "E-Mail Address" instead + | of "email". This simply helps us make our message more expressive. + | + */ + + 'attributes' => [], + +]; diff --git a/package.json b/package.json new file mode 100644 index 0000000..0b32ba6 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "private": true, + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.1.2", + "laravel-vite-plugin": "^0.7.2", + "lodash": "^4.17.19", + "postcss": "^8.1.14", + "vite": "^4.0.0" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..2ac86a1 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,31 @@ + + + + + ./tests/Unit + + + ./tests/Feature + + + + + ./app + + + + + + + + + + + + + + diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..3aec5e2 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..1d69f3a --- /dev/null +++ b/public/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/resources/css/app.css b/resources/css/app.css new file mode 100644 index 0000000..e69de29 diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..e59d6a0 --- /dev/null +++ b/resources/js/app.js @@ -0,0 +1 @@ +import './bootstrap'; diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js new file mode 100644 index 0000000..a5b3edd --- /dev/null +++ b/resources/js/bootstrap.js @@ -0,0 +1,35 @@ +import _ from 'lodash'; +window._ = _; + +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ + +import axios from 'axios'; +window.axios = axios; + +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +/** + * Echo exposes an expressive API for subscribing to channels and listening + * for events that are broadcast by Laravel. Echo and event broadcasting + * allows your team to easily build robust real-time web applications. + */ + +// import Echo from 'laravel-echo'; + +// import Pusher from 'pusher-js'; +// window.Pusher = Pusher; + +// window.Echo = new Echo({ +// broadcaster: 'pusher', +// key: import.meta.env.VITE_PUSHER_APP_KEY, +// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', +// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, +// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, +// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, +// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', +// enabledTransports: ['ws', 'wss'], +// }); diff --git a/resources/views/mi_vista.blade.php b/resources/views/mi_vista.blade.php new file mode 100644 index 0000000..b2a3b3a --- /dev/null +++ b/resources/views/mi_vista.blade.php @@ -0,0 +1,10 @@ + + + + Datos obtenidos + + +

Datos obtenidos de la API

+
{{ print_r($data, true) }}
+ + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php new file mode 100644 index 0000000..9faad4e --- /dev/null +++ b/resources/views/welcome.blade.php @@ -0,0 +1,132 @@ + + + + + + + Laravel + + + + + + + + + + +
+ @if (Route::has('login')) + + @endif + +
+
+ + + + + +
+ +
+
+
+ + +
+
+ Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. +
+
+
+ +
+
+ + +
+ +
+
+ Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. +
+
+
+ +
+
+ + +
+ +
+
+ Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. +
+
+
+ +
+
+ +
Vibrant Ecosystem
+
+ +
+
+ Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. +
+
+
+
+
+ +
+
+
+ + + + + + Shop + + + + + + + + Sponsor + +
+
+ +
+ Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) +
+
+
+
+ + diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..95dc4f8 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,142 @@ + 'application/x-www-form-urlencoded', + 'Authorization' => 'Basic RXlhZlNidnIyZWNYQTh5azpza190ZXN0X1ZpVng2T3hxQ2RkTkZOckdhaDQyTTM5dDhCTVFIY2l4RWxWRDYwNGRXTw==' + ])->asForm()->post('https://exact-trout-82.clerk.accounts.dev/oauth/token', [ + 'grant_type' => 'authorization_code', + 'code' => $request->code, + 'redirect_uri' => 'https://horuxfin.com/callback' + ]); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $requestToken = Request::create("/oauth/token", "POST", [ + 'grant_type' => 'social', + 'client_id' => config('app.client_id'), + 'client_secret' => config('app.client_secret'), + 'provider' => 'clerk', + 'access_token' => $response['access_token'] + ]); + $oauth = app()->handle($requestToken); + return $oauth; + } else { + $response = Http::withHeaders([ + 'Content-Type' => 'application/x-www-form-urlencoded', + 'Authorization' => 'Basic T0JlRk1lRzYwVVJHenFjVTpza190ZXN0X1ZpVng2T3hxQ2RkTkZOckdhaDQyTTM5dDhCTVFIY2l4RWxWRDYwNGRXTw==' + ])->asForm()->post('https://exact-trout-82.clerk.accounts.dev/oauth/token', [ + 'grant_type' => 'authorization_code', + 'code' => $request->code, + 'redirect_uri' => 'http://localhost:3000/callback' + ]); + + // Verificar si la petición fue exitosa + if ($response->successful()) { + // Manejar la respuesta exitosa + $requestToken = Request::create("/oauth/token", "POST", [ + 'grant_type' => 'social', + 'client_id' => config('app.client_id'), + 'client_secret' => config('app.client_secret'), + 'provider' => 'clerk', + 'access_token' => $response['access_token'] + ]); + $oauth = app()->handle($requestToken); + return $oauth; + } else { + // Manejar la respuesta fallida + return response()->json(); + } + } +}); + +Route::get('/retenciones', [Controllers\InvoiceController::class, 'retenciones']); +Route::group([ + 'middleware' => 'throttle:custom-origin' +], function() { + Route::post('/invoice-endpoint', [Controllers\InvoiceController::class, 'invoiceEndpoint']); +}); + +Route::group([ + 'middleware' => 'auth:api' +], function() { + Route::post('/insertar-rfc', [Controllers\RfcController::class, 'insertarRfc']); + Route::get('/obtener-rfcs', [Controllers\RfcController::class, 'obtenerRfcs']); + + Route::get('/tipos-factura', [Controllers\InvoiceTypeController::class, 'get']); + Route::get('/uso-factura', [Controllers\UsageController::class, 'get']); + Route::get('/tipos-pago', [Controllers\PaymentTypeController::class, 'get']); + Route::get('/metodos-pago', [Controllers\PaymentMethodController::class, 'get']); + Route::get('/monedas', [Controllers\CurrencyController::class, 'get']); + Route::get('/regimenes-fiscales', [Controllers\TaxRegimeController::class, 'get']); + Route::get('/codigos-prod-serv', [Controllers\ProdServCodeController::class, 'get']); + Route::get('/codigos-unidad', [Controllers\UnitCodeController::class, 'get']); + Route::get('/impuestos', [Controllers\TaxController::class, 'get']); + Route::get('/tasas-impuesto', [Controllers\TaxRateController::class, 'get']); + + Route::get('/obtener-facturas', [Controllers\InvoiceController::class, 'obtenerFacturas']); + Route::get('/endpoint-facturas', [Controllers\InvoiceController::class, 'endpointObtenerFacturas']); + Route::get('/facturas-emitidas', [Controllers\InvoiceController::class, 'facturasEmitidas']); + Route::get('/facturas-emitidas-conciliadas', [Controllers\InvoiceController::class, 'facturasEmitidasConciliadas']); + Route::get('/facturas-recibidas', [Controllers\InvoiceController::class, 'facturasRecibidas']); + Route::get('/facturas-recibidas-conciliadas', [Controllers\InvoiceController::class, 'facturasRecibidasConciliadas']); + Route::post('/conciliar-facturas', [Controllers\InvoiceController::class, 'conciliarFacturas']); + Route::get('/descargar-factura', [Controllers\InvoiceController::class, 'descargarFactura']); + Route::get('/obtener-complementos-pago', [Controllers\InvoicePaymentController::class, 'obtenerComplementosPago']); + Route::get('/obtener-contribuyente', [Controllers\TaxpayerController::class, 'obtenerContribuyente']); + Route::get('/obtener-lineas-facturas', [Controllers\InvoiceLineController::class, 'obtenerLineasFacturas']); + Route::get('/obtener-facturas-conceptos', [Controllers\InvoiceLineController::class, 'obtenerFacturasConceptos']); + + Route::get('/ingreso-tipo-i', [Controllers\InvoiceController::class, 'ingresoTipoI']); + Route::get('/gasto-tipo-i', [Controllers\InvoiceController::class, 'gastoTipoI']); + Route::get('/ingreso-tipo-e', [Controllers\InvoiceController::class, 'ingresoTipoE']); + Route::get('/gasto-tipo-e', [Controllers\InvoiceController::class, 'gastoTipoE']); + Route::get('/gasto-tipo-n', [Controllers\InvoiceController::class, 'gastoTipoN']); + Route::get('/ingreso-ppd', [Controllers\InvoicePaymentController::class, 'ingresoPpd']); + Route::get('/gasto-ppd', [Controllers\InvoicePaymentController::class, 'gastoPpd']); + Route::get('/adquisicion-pue', [Controllers\InvoiceController::class, 'adquisicionPue']); + Route::get('/adquisicion-ppd', [Controllers\InvoicePaymentController::class, 'adquisicionPpd']); + Route::get('/obtener-metricas', [Controllers\InvoiceController::class, 'obtenerMetricas']); + Route::get('/obtener-metricas-mensuales', [Controllers\InvoiceController::class, 'obtenerMetricasMensuales']); + + Route::post('/importar-facturas', [Controllers\InvoiceController::class, 'importarFacturas']); + Route::post('/importar-lineas-facturas', [Controllers\InvoiceLineController::class, 'importarLineasFacturas']); + Route::post('/importar-codigos-prod-serv', [Controllers\ProdServCodeController::class, 'importarCodigosProdServ']); + Route::post('/importar-codigos-unidad', [Controllers\UnitCodeController::class, 'importarCodigosUnidad']); + +}); + +Route::post('/consultarmetrica', [Controllers\MetricasController::class, 'consultarMetricas']); +Route::post('/insertmetrica', [Controllers\MetricasController::class, 'store']); + +Route::post('/consultarcomparativo', [Controllers\ComparativomensualController::class, 'consultarComparativo']); +Route::post('/insertcomparativo', [Controllers\ComparativomensualController::class, 'store']); + +Route::get('/obtener-ingresos', [Controllers\InvoiceController::class, 'ingresos']); +Route::post('/obtener-egresos', [Controllers\InvoiceController::class, 'egresos']); +Route::get('/ivaAFavor', [Controllers\InvoiceController::class, 'ivaAFavor']); +Route::get('/utilidadBrutaVsIndustria', [Controllers\TaxpayerController::class, 'utilidadBrutaVsIndustria']); + + +Route::post('/usuariosat', [Controllers\usuariossatController::class, 'store']); + +Route::get('/risk', [Controllers\RiskController::class, 'consultarRisk']); diff --git a/routes/channels.php b/routes/channels.php new file mode 100644 index 0000000..5d451e1 --- /dev/null +++ b/routes/channels.php @@ -0,0 +1,18 @@ +id === (int) $id; +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..e05f4c9 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,19 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..b130397 --- /dev/null +++ b/routes/web.php @@ -0,0 +1,18 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..1eafba6 --- /dev/null +++ b/tests/Feature/ExampleTest.php @@ -0,0 +1,21 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..421b569 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,11 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + }), + ], +});