PHPackages                             andyabih/laravel-fake-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. andyabih/laravel-fake-api

ActiveLibrary[API Development](/categories/api)

andyabih/laravel-fake-api
=========================

Generate dummy API endpoints from a simple PHP array. No more waiting for the backend to be done before working on the frontend.

1.0.0(5y ago)19232↓90%2[1 issues](https://github.com/andyabih/laravel-fake-api/issues)MITPHP

Since Apr 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/andyabih/laravel-fake-api)[ Packagist](https://packagist.org/packages/andyabih/laravel-fake-api)[ RSS](/packages/andyabih-laravel-fake-api/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Fake API
================

[](#laravel-fake-api)

Create placeholder API endpoints from a simple PHP array.

LFA utilizes [Faker](https://github.com/fzaninotto/Faker) for dummy data.

Inspired by [JSON Server](https://github.com/typicode/json-server).

Installation
============

[](#installation)

To install LFA, run the following composer command:

```
composer require andyabih/laravel-fake-api --dev

```

Next, publish the config file to fill in your endpoints &amp; responses:

```
php artisan vendor:publish --provider="Andyabih\LaravelFakeApi\LaravelFakeApiServiceProvider" --tag="config"

```

Configuration
=============

[](#configuration)

Below is a sample `laravel-fake-api.php` config file:

```
