PHPackages                             yajra/laravel-datatables-fractal - 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. yajra/laravel-datatables-fractal

ActiveLibrary[API Development](/categories/api)

yajra/laravel-datatables-fractal
================================

Laravel DataTables Fractal Plugin.

v13.0.0(2mo ago)966.9M—9.8%20[1 issues](https://github.com/yajra/laravel-datatables-fractal/issues)20MITPHPPHP ^8.3CI passing

Since Aug 31Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/yajra/laravel-datatables-fractal)[ Packagist](https://packagist.org/packages/yajra/laravel-datatables-fractal)[ RSS](/packages/yajra-laravel-datatables-fractal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (12)Versions (24)Used By (20)

Laravel DataTables Fractal Plugin
=================================

[](#laravel-datatables-fractal-plugin)

[![Laravel 12.x](https://camo.githubusercontent.com/99523389690eaafdb995a8fdfcf38089c62b3f160c30483bb7ccc6ca246312ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322e782d6f72616e67652e737667)](http://laravel.com)[![Latest Stable Version](https://camo.githubusercontent.com/0436339626aff04d66dd42e50d6d023b21826df9bcad2b98b54fb58e5d4a765f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79616a72612f6c61726176656c2d646174617461626c65732d6672616374616c2e737667)](https://packagist.org/packages/yajra/laravel-datatables-fractal)[![Continuous Integration](https://github.com/yajra/laravel-datatables-fractal/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/yajra/laravel-datatables-fractal/actions/workflows/continuous-integration.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/82b961920d6fcc23b2fd0a251c2657a47f10ec599e974a5b98df0d787e7a061e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f79616a72612f6c61726176656c2d646174617461626c65732d6672616374616c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yajra/laravel-datatables-fractal/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/16b93dc59eb36254bda5040bde66f0097251073f716179f82d79a8bcec6f469b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79616a72612f6c61726176656c2d646174617461626c65732d6672616374616c2e737667)](https://packagist.org/packages/yajra/laravel-datatables-fractal)[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/yajra/laravel-datatables-fractal)

This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for transforming server-side response using [Fractal](https://github.com/thephpleague/fractal).

Requirements
------------

[](#requirements)

- [PHP &gt;= 8.2](http://php.net/)
- [Laravel 12.x](https://github.com/laravel/framework)
- [Laravel DataTables](https://github.com/yajra/laravel-datatables)

Documentations
--------------

[](#documentations)

- [Laravel DataTables Fractal Documentation](https://yajrabox.com/docs/laravel-datatables/master/response-fractal)

Laravel Version Compatibility
-----------------------------

[](#laravel-version-compatibility)

LaravelPackage8.x and below1.x9.x9.x10.x10.x11.x11.x12.x12.x13.x13.xQuick Installation
------------------

[](#quick-installation)

`composer require yajra/laravel-datatables-fractal:^12.0`

### Register Service Provider (Optional on Laravel 5.5+)

[](#register-service-provider-optional-on-laravel-55)

`Yajra\DataTables\FractalServiceProvider::class`

### Configuration and Assets (Optional)

[](#configuration-and-assets-optional)

`$ php artisan vendor:publish --tag=datatables-fractal --force`

And that's it! Start building out some awesome DataTables!

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/yajra/laravel-datatables-fractal/blob/master/.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Arjay Angeles](https://github.com/yajra)
- [All Contributors](https://github.com/yajra/laravel-datatables-fractal/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/yajra/laravel-datatables-fractal/blob/master/LICENSE.md) for more information.

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance87

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community34

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 79.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~148 days

Recently: every ~183 days

Total

22

Last Release

62d ago

Major Versions

1.0.x-dev → v9.0.02022-05-07

9.0.x-dev → 10.x-dev2023-02-07

v10.0.0 → v11.0.02024-03-14

11.x-dev → v12.0.02025-02-26

12.x-dev → v13.0.02026-03-18

PHP version history (5 changes)v1.0.0PHP &gt;=7.0

v9.0.0PHP &gt;=8.0.2

10.x-devPHP ^8.1

v11.0.0PHP ^8.2

v13.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c245d1effe6022f9f09b2e8b9cce26743de03a64d612cea4ce9885560d7c0b2?d=identicon)[yajra](/maintainers/yajra)

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (76 commits)")[![yusufkandemir](https://avatars.githubusercontent.com/u/6266078?v=4)](https://github.com/yusufkandemir "yusufkandemir (7 commits)")[![paytechildiko](https://avatars.githubusercontent.com/u/30797895?v=4)](https://github.com/paytechildiko "paytechildiko (2 commits)")[![emmanuelarturo](https://avatars.githubusercontent.com/u/61183606?v=4)](https://github.com/emmanuelarturo "emmanuelarturo (1 commits)")[![ivanfernz](https://avatars.githubusercontent.com/u/33168779?v=4)](https://github.com/ivanfernz "ivanfernz (1 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (1 commits)")[![abdullah-abunada](https://avatars.githubusercontent.com/u/1808834?v=4)](https://github.com/abdullah-abunada "abdullah-abunada (1 commits)")[![sebdesign](https://avatars.githubusercontent.com/u/667144?v=4)](https://github.com/sebdesign "sebdesign (1 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (1 commits)")[![sheriffmarley](https://avatars.githubusercontent.com/u/36710078?v=4)](https://github.com/sheriffmarley "sheriffmarley (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![redredimano](https://avatars.githubusercontent.com/u/135292528?v=4)](https://github.com/redredimano "redredimano (1 commits)")[![benyaminl](https://avatars.githubusercontent.com/u/2817332?v=4)](https://github.com/benyaminl "benyaminl (1 commits)")[![c00p3r](https://avatars.githubusercontent.com/u/5259532?v=4)](https://github.com/c00p3r "c00p3r (1 commits)")

---

Tags

apidatatablesdatatables-pluginfractalhacktoberfestlaravelapilaraveldatatablesfractal

###  Code Quality

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/yajra-laravel-datatables-fractal/health.svg)

```
[![Health](https://phpackages.com/badges/yajra-laravel-datatables-fractal/health.svg)](https://phpackages.com/packages/yajra-laravel-datatables-fractal)
```

###  Alternatives

[spatie/laravel-fractal

An easy to use Fractal integration for Laravel applications

1.9k15.1M99](/packages/spatie-laravel-fractal)[flugger/laravel-responder

A Laravel Fractal package for building API responses, giving you the power of Fractal and the elegancy of Laravel.

8901.5M5](/packages/flugger-laravel-responder)[cyvelnet/laravel5-fractal

A simple fractal service provider and transformer generator with model attributes for laravel &gt;=5.

79187.2k1](/packages/cyvelnet-laravel5-fractal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
