PHP code example of nastuzzi-samy / api-tester
1. Go to this page and download the library: Download nastuzzi-samy/api-tester library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nastuzzi-samy / api-tester example snippets
'extensions' => [
'api-tester' => [
// route prefix for APIs
'prefix' => 'api',
// auth guard for api
'guard' => 'api',
// If you are not using the default user model as the authentication model, set it up
'user_retriever' => function ($id) {
return \App\User::find($id);
},
]
]
$ composer isan vendor:publish --tag=api-tester