PHPackages                             wgjr/hateoas-laravel - 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. wgjr/hateoas-laravel

ActiveLibrary[API Development](/categories/api)

wgjr/hateoas-laravel
====================

Laravel response hateoas

1.0.5(4y ago)03.1k↓50%proprietaryPHP

Since Oct 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wgjr/hateoas-laravel)[ Packagist](https://packagist.org/packages/wgjr/hateoas-laravel)[ RSS](/packages/wgjr-hateoas-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Laravel HATEOAS response formatter
==================================

[](#laravel-hateoas-response-formatter)

\#How to install

```
composer require wgjr/hateoas-laravel

```

- Required PHP 7.4 + Others versions:

```
composer require wgjr/hateoas-laravel --ignore-platform-reqs

```

- Laravel 5.6+

How tu use class
================

[](#how-tu-use-class)

- Add providers in Laravel

```
\hateoasLaravel\HateoasLaravelServiceProvider::class

```

- add in you class

```
    use use hateoasLaravel\Domain\UseCases\HateoasLaravel;

```

```
    $responseFormater = new HateoasLaravel();

    /**
     *
     * Formatted a universal response object to Hateoas response
     *
     * @param string $classInResponse
     * @param string $hashMessage
     * @param int|null $code
     * @param array|null $dataResponse
     * @return LaravelJsonResponse
     * @throws Exception
     */

    return $this->responseFormatter->formatResponse(
        'login',
        'login_success',
        200,
        []
    );

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

1667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5847aed79bcb6db94d338f26634bd8481e11a84f077a9acdf6ee98050b130bc?d=identicon)[wgjr](/maintainers/wgjr)

---

Top Contributors

[![wgjr](https://avatars.githubusercontent.com/u/39201897?v=4)](https://github.com/wgjr "wgjr (16 commits)")

### Embed Badge

![Health badge](/badges/wgjr-hateoas-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/wgjr-hateoas-laravel/health.svg)](https://phpackages.com/packages/wgjr-hateoas-laravel)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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