Download the PHP package andrey-helldar/blacklist-server without Composer
On this page you can find all versions of the php package andrey-helldar/blacklist-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package blacklist-server
Blacklist server
Content
- Installation
- Using
- License
Installation
To get the latest version of Laravel Blacklist Server, simply require the project using Composer:
Instead, you may of course manually update your require block and run composer update
if you so choose:
Now, you can also publish the config file to change implementations (ie. interface to specific class):
Using
First look at the config.
After installation, your application will accept incoming requests for the creation and verification of spammers in stop lists. To do this, you can use packet andrey-helldar/blacklist-client or simply send a POST or GET request to address https://<your-site.com>/api/blacklist
, passing the necessary parameters:
field | required | comment |
---|---|---|
type | sometimes | available is: "email", "url", "ip", "phone" |
value | yes | string |
In order for the server part to be able to add or check spammers on its own, you can install package andrey-helldar/blacklist-client on it or go the more complicated way using facades:
However, we recommend using the client.
store
When sending a POST request to the address of server https://<your-site>/api/blacklist
with the correct data.
Foe example:
It will return a JSON object:
If the data being sent is filled incorrectly, the server will return an error with code 400 and the following JSON object:
For example:
exists
If the requested data is not found in the database, the site will return a 200 code:
If the requested data is found in the database, the site will return the code 423 (Locked):
If the data being sent is filled incorrectly, the server will return an error with code 400 and the following JSON object. For example:
License
This package is released under the MIT License.
All versions of blacklist-server with dependencies
ext-json Version *
andrey-helldar/api-response Version ^4.3
andrey-helldar/blacklist-core Version ^2.0
illuminate/contracts Version ^5.6|^6.0|^7.0|^8.0
illuminate/database Version ^5.6|^6.0|^7.0|^8.0
illuminate/support Version ^5.6|^6.0|^7.0|^8.0
illuminate/validation Version ^5.6|^6.0|^7.0|^8.0