wizz / api-client-helpers
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
dev-prod
2022-01-25 12:23 UTC
Requires
- php: >=7.0.0
- hisorange/browser-detect: 3.1.4
- illuminate/cache: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/config: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- illuminate/http: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
- intervention/httpauth: ^2.0
- spatie/url: 1.3.0
- symfony/dom-crawler: ^4.3
Requires (Dev)
- fzaninotto/faker: ~1.4
- orchestra/testbench: ~3.0
- phpunit/phpunit: 6.*
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-04-27 07:41:52 UTC
README
This is pack of helper class to make speedy api client work
Instalation
Edit composer.json, add
"minimum-stability": "dev",
Install package.
composer require wizz/api-client-helpers
edit config/app.php, add
Wizz\ApiClientHelpers\ApiClientHelpersServiceProvider::class,
to providers array.
use php artisan vendor:publish to publish api_configs.php file.
create upload and documents folders in public directory
Usage
it will just work
That's all.
All routes with prefix api will be proxy redirected to secret_url from .env file.
Funcs:
- Receive and cache pages from remote page server.
- proxy all requests to secret API
- handles redirects
- can work in multi site mode. (serve many websites from 1 client)
- can block users with certain utm_marks or user_agents
- can store all configs in db