New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

aedart/athenaeum-http-api

Json based API utilities
1,942

Larablocks Analysis

aedart/athenaeum-http-api works with Laravel 13 (latest release 10.26.0, Nov 16, 2026).

Laravel 9 to 12 in earlier releases.

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 16, 2026)
  • 64 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Actively maintained
  • Last stable release: Nov 16, 2026.
  • 37 releases in the last 12 months.
  • First released: Oct 23, 2022.
  • Monthly downloads: 64.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require aedart/athenaeum-http-api
Latest Version:10.26.0
PHP:^8.4
Laravel:13
Older releases:9 – 12
License:BSD-3-Clause
Last Updated:Nov 19, 2026
Links: GitHub  ·  Packagist
Maintainer: aedart

Athenaeum Http Api

Opinionated utilities to help shape and format your API, using Laravel's API Resources.

Example

The following example shows an "API Resource", for an Eloquent User model.

use Aedart\Http\Api\Resources\ApiResource;
use Illuminate\Http\Request;

class UserResource extends ApiResource
{
    public function formatPayload(Request $request): array
    {
        return $this->withTimestamps([
            'id' => $this->getResourceKey(),
            'name' => $this->name,
            'roles' => $this->belongsToManyReference('roles')
                ->withLabel('name')
                ->withSelfLink()
                ->withResourceType();
        ]);
    }

    public function type(): string
    {
        return 'user';
    }
}

When a response is returned for a single user, the following JSON will be output:

{
    "data": {
        "id": 34,
        "name": "Retta Altenwerth Jr.",
        "created_at": "2022-10-21T14:51:43+00:00",
        "updated_at": "2022-10-21T14:51:43+00:00",
        "roles": [
            {
                "id": 23,
                "name": "Machine Operator",
                "type": "role",
                "self": "http://localhost/roles/23"
            },
            {
                "id": 56,
                "name": "File Clerk",
                "type": "role",
                "self": "http://localhost/roles/56"
            }
        ]
    },
    "meta": {
        "type": "user",
        "self": "http://localhost/users/34"
    }
}

Documentation

Please read the official documentation for additional information.

Repository

The mono repository is located at github.com/aedart/athenaeum

Versioning

This package follows Semantic Versioning 2.0.0

License

BSD-3-Clause, Read the LICENSE file included in this package

Alternatives to aedart/athenaeum-http-api

rexlabs/hyper-http

HTTP client for PHP

172,614 4
vinelab/http

An http library developed for the laravel framework. aliases itself as HttpClien...

309,800 57
mahmoud-almalah/laravel-api-helpers

Standardized API responses for Laravel applications.

1,709 1

Version History

Version Released PHP Laravel License
10.26.0 ^8.4 ^v13.42.0 BSD-3-Clause
10.25.0 ^8.4 ^v13.40.0 BSD-3-Clause
10.24.0 ^8.4 ^v13.39.0 BSD-3-Clause
10.23.0 ^8.4 ^v13.37.0 BSD-3-Clause
10.22.0 ^8.4 ^v13.35.0 BSD-3-Clause
Pre-releases (1)
Version Released PHP Laravel License
7.0.0-alpha.1 ^8.1 ^v10.0.0 BSD-3-Clause