sil2 / vf-api
test API
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sil2/vf-api
Requires (Dev)
- fakerphp/faker: ^1.9.1
This package is auto-updated.
Last update: 2025-09-20 00:23:14 UTC
README
Requirements
Laravel 7
Setup
composer require sil2/vf-api
To create package db tables run
php artisan migrate
OR to create tables and get 100 test recorords
php artisan vf-api:install
Publish package assets
php artisan vendor:publish --provider="Sil2\VfApi\VfApiIntegrationServiceProvider"
API token
Pick any token value
Create an MD5 hash of this value and set as API_TOKEN
in .env
Use the original token value as bearer token for API requests
Usage
List available endpoints
php artisan route:list --path="api/widget"
Testing
vendor/bin/phpunit