API

Pckg / API

Package pckg-app/api provides abstract implementation for building APIs.

Installation

Require Composer package.

$ composer require pckg-app/api

Migrations

Available migrations:

  • Pckg\Api\Migration\CreateApiTables - creates apps and app_keys tables

  • Pckg\Api\Migration\CreateApiLogsTable - creates api_logs table for usage with LogRequests middleware and LogResponses afterware

Config

  • pckg-app.api.log.response.include (string[]) - prefixes for URLs that should be logged

  • pckg-app.api.log.request.include (string[]) - prefixes for URLs that should be logged

Read more

Read more about authentication.

Last updated

Was this helpful?