Download the PHP package fake-fakers/laravel-api-components without Composer
On this page you can find all versions of the php package fake-fakers/laravel-api-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fake-fakers/laravel-api-components
More information about fake-fakers/laravel-api-components
Files in fake-fakers/laravel-api-components
Download fake-fakers/laravel-api-components
More information about fake-fakers/laravel-api-components
Files in fake-fakers/laravel-api-components
Vendor fake-fakers
Package laravel-api-components
Short Description Set of useful Laravel components
License MIT
Package laravel-api-components
Short Description Set of useful Laravel components
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-api-components
Laravel Api Components
Components list
Middleware
PreferJson
- a simple middleware that can be used in api routes, to prefer JSON-responses instead of default HTML. Also has an option to force JSON output even if Accept header is present.
Helper functions
formatValidationErrors
- transforms ValidationException to array.escapeStringForSqlLike
- escape string to use it in SQL LIKE queries.
Exceptions handler
Provides a simple way to define application exception handlers.
Usage:
-
Inherit
app/Exception/Handler.php
class from exception handler from this package: - Define your own exception handlers:
Service provider
-
RoutingServiceProvider
- overriding Laravel's default Router and ResponseFactory to return JSON responses withJSON_UNESCAPED_UNICODE
.
Usage:-
Create
Application
class in your app folder: - Patch
bootstrap/app.php
file to create newApplication
class instead of Laravel's default:
-
All versions of laravel-api-components with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-json Version *
laravel/framework Version 5.6.*|5.7.*|5.8.*|6.*|7.*|8.*
symfony/psr-http-message-bridge Version ~1.0
ext-json Version *
laravel/framework Version 5.6.*|5.7.*|5.8.*|6.*|7.*|8.*
symfony/psr-http-message-bridge Version ~1.0
The package fake-fakers/laravel-api-components contains the following files
Loading the files please wait ....