Download the PHP package dskripchenko/laravel-api without Composer
On this page you can find all versions of the php package dskripchenko/laravel-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dskripchenko/laravel-api
More information about dskripchenko/laravel-api
Files in dskripchenko/laravel-api
Download dskripchenko/laravel-api
More information about dskripchenko/laravel-api
Files in dskripchenko/laravel-api
Vendor dskripchenko
Package laravel-api
Short Description The Laravel Api Module.
License MIT
Homepage https://github.com/dskripchenko/laravel-api
Package laravel-api
Short Description The Laravel Api Module.
License MIT
Homepage https://github.com/dskripchenko/laravel-api
Please rate this library. Is it a good library?
Informations about the package laravel-api
Installation
Run
or add
to the section of your composer.json
file.
Usage
See
- make
ApiModule
extended fromDskripchenko\LaravelApi\Components\BaseModule
- make
Api
extended fromDskripchenko\LaravelApi\Components\BaseApi
- define
getMethods
method - override
getApiVersionList
inApiModule
, return array of['version' => Api::class]
- make
ApiServiceProvider
extended fromDskripchenko\LaravelApi\Providers\ApiServiceProvider
- override
getApiModule
in newApiServiceProvider
- register
ApiServiceProvider
Api methods template
AutoDoc comments to swagger
Available types
Components
- BaseApi
- getMethods
- getSwaggerTemplates
- beforeCallAction
- afterCallAction
- getDefaultEmptyResponse
- getMiddleware
- registerApiComponent
- BaseModule
- makeApi
- getApiMiddleware
- getApiPrefix
- getAvailableApiMethods
- getApiUriPattern
- getApiVersionList
- Meta
- action
- create
- read
- update
- delete
- crud
- column
- string
- boolean
- number
- integer
- hidden
- select
- file
- getSwaggerInputs
- toArray
- action
Console
Commands
- ApiInstall
- getEnvConfig
- fillEnvironment
- reloadEnvironment
- onBeginSetup
- onEndSetup
- BaseCommand
- askValid
- validateInput
Controllers
- ApiController
- success
- error
- validationError
- ApiDocumentationController
- index
- CrudController
- meta
- search
- create
- read
- update
- delete
- getSwaggerMetaInputs
Exceptions
- ApiErrorHandler
- addErrorHandler
- handle
- ApiException
- getErrorKey
- Handler
- render
Facades
- ApiRequest
- getApiVersion
- getApiMethod
- getApiControllerKey
- getApiActionKey
- ApiModule
- getApiPrefix
- getAvailableApiMethods
- getApiUriPattern
- getApiMiddleware
- getApiVersionList
- makeApi
- ApiErrorHandler
- addErrorHandler
- handle
Middlewares
- ApiMiddleware
- run
Providers
- ApiServiceProvider
- getApiModule
- getApiErrorHandler
- getApiRequest
- makeApiRoutes
- BaseServiceProvider
- mergeConfigFrom
Requests
- BaseApiRequest
- validateApiUriPattern
- prepareApi
- CrudSearchRequest
Resources
- BaseJsonResource
- BaseJsonResourceCollection
Services
- ApiResponseHelper
- say
- sayError
- CrudService
- meta
- query
- resource
- collection
- search
- create
- read
- update
- delete
Traits
- SwaggerApiTrait
- getSwaggerApiConfig
Interfaces
- CrudServiceInterface
- meta
- query
- resource
- collection
- search
- create
- read
- update
- delete
Example
- register
Dskripchenko\LaravelApiExample\ExampleApiServiceProvider
- run
php artisan vendor:publish
- run
php artisan storage:link
- open web
/api/doc
All versions of laravel-api with dependencies
PHP Build Version
Package Version
Requires
ext-json Version
*
dskripchenko/php-array-helper Version ^1.0
laravel/framework Version 6.*|7.*|8.*|9.*|10.*|11.*
phpdocumentor/reflection-docblock Version *
dskripchenko/php-array-helper Version ^1.0
laravel/framework Version 6.*|7.*|8.*|9.*|10.*|11.*
phpdocumentor/reflection-docblock Version *
The package dskripchenko/laravel-api contains the following files
Loading the files please wait ....