PHP Classes

File: config/api.example.php

Recommend this page to a friend!
  Classes of Adrian M   PHP CRUD API Generator   config/api.example.php   Download  
File: config/api.example.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP CRUD API Generator
Create an API to access MySQL database record
Author: By
Last change:
Date: 1 month ago
Size: 451 bytes
 

Contents

Class file image Download
<?php
return [
   
'auth_enabled' => false, // true to require authentication
   
'auth_method' => 'apikey', // 'apikey', 'basic', 'jwt', 'oauth'
   
'api_keys' => ['changeme123'],
   
'basic_users' => ['admin' => 'secret'],
   
'jwt_secret' => 'YourSuperSecretKey',
   
'jwt_issuer' => 'yourdomain.com',
   
'jwt_audience' => 'yourdomain.com',
   
'oauth_providers' => [
       
// 'google' => ['client_id' => '', 'client_secret' => '', ...]
   
]
];