PHPackages                             flipboxstudio/api-fracture - 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. flipboxstudio/api-fracture

AbandonedArchivedLibrary

flipboxstudio/api-fracture
==========================

Fracture is a library to make your Laravel-based API response more consistent

0.4.1(9y ago)329MITPHPPHP &gt;=7.0.0

Since Aug 30Pushed 9y ago3 watchersCompare

[ Source](https://github.com/flipboxstudio/api-fracture)[ Packagist](https://packagist.org/packages/flipboxstudio/api-fracture)[ RSS](/packages/flipboxstudio-api-fracture/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (12)Used By (0)

Fracture
========

[](#fracture)

Fracture is a library to make your Laravel-based API response more consistent.

Installation
------------

[](#installation)

```
composer require flipboxstudio/api-fracture

```

Configuration
-------------

[](#configuration)

Add this line to your service provider list:

```
Flipbox\Fracture\FractureServiceProvider::class,

```

After that, run:

```
php artisan vendor:publish

```

This command will copy an empty `fracture.php` configuration into your `config` directory. You may need to read this file for more custom configuration.

### Optional

[](#optional)

Add this line to your facade list:

```
'Fracture' => Flipbox\Fracture\Facades\Fracture::class,

```

Usage
-----

[](#usage)

Fracture will override Laravel Controller invoke style. So, to make this feature works on your project, you need to change your base controller. Locate this file at:

```
app/Http/Controllers/Controller.php

```

Change this file into:

```
