PHPackages                             kiwijobs/bundle-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. kiwijobs/bundle-api

ActiveProject

kiwijobs/bundle-api
===================

2.4.8(5y ago)03.6kMITPHP

Since Apr 3Pushed 5y agoCompare

[ Source](https://github.com/kiwijobs/bundle-api)[ Packagist](https://packagist.org/packages/kiwijobs/bundle-api)[ RSS](/packages/kiwijobs-bundle-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (8)Versions (41)Used By (0)

absolvent/bundle-api
====================

[](#absolventbundle-api)

JWT Authentication Guard
------------------------

[](#jwt-authentication-guard)

### Enable in project

[](#enable-in-project)

1. Add `Absolvent\api\Providers\AuthServiceProvider` to `config/app.php` providers.
2. Create `config/jwt.php` similar to `config/jwt.php` in this bundle
3. Change `defaults.guard` to `jwt` in `config/auth.php`
4. Add

```
'jwt' => [
    'driver' => 'jwt',
    'provider' => 'users',
],

```

to `guards` in `config/auth.php`

4. Add `JWT_SECRET` variable to `.env` (eq. `JWT_SECRET=SvfJknJLYWwvadkCLVE7HIzn2JpWDkXv`)

NOTE: `JWT_SECRET` should be te same as in `microservice-users`

### Usage

[](#usage)

Generally all Laravel authorization and authentication functionality should work out of the box when `JwtAuthenticationGuard` is configured properly.

#### Get jwt token / user information

[](#get-jwt-token--user-information)

```
use Illuminate\Support\Facades\Auth;

$user = Auth::user(); // returns JwtUser or null
$user = Auth::authenticate() // returns JwtUser or throws Exception
$jwtToken = Auth::getName(); // returns jwt token
$userSub = Auth::id(); // returns user email (jwt token `sub` claim)

```

User information are taken from jwt token so there are very basic. To get extended user information you have to issue call to `microservice-users`.

#### Permission based endpoint authentication

[](#permission-based-endpoint-authentication)

Add `permission` or `can` middleware to endpoint controller

```
class EndpointController extends \Absolvent\api\Http\Controller
{
    public function __construct()
    {
        $this->middleware('permission:TALENTDAYS_ADMIN|TALENTDAYS_AREA');
    }

    // ...
}

```

In above example only user with `TALENTDAYS_ADMIN` or `TALENTDAYS_AREA` can access the endpoint

Allow sending PATH requests with multipart-form content type
------------------------------------------------------------

[](#allow-sending-path-requests-with-multipart-form-content-type)

Add `Absolvent\api\Http\Middleware\PreparePatchMultiPartForm` to `Absolvent\api\Http\Kernel::$middleware`

Make sure that `PreparePatchMultiPartForm` is after `ValidatePostSize`

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~35 days

Recently: every ~49 days

Total

37

Last Release

2051d ago

Major Versions

1.3.2 → 2.0.02017-04-29

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

2.4PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e671383943fa9dde8a33335fd651af79110f78d2c2f56a7e12da4ce4c8814702?d=identicon)[tomasz.jurdzinski-kiwi](/maintainers/tomasz.jurdzinski-kiwi)

---

Top Contributors

[![majkel89](https://avatars.githubusercontent.com/u/1094964?v=4)](https://github.com/majkel89 "majkel89 (4 commits)")[![krzychoabsolvent](https://avatars.githubusercontent.com/u/38071332?v=4)](https://github.com/krzychoabsolvent "krzychoabsolvent (2 commits)")[![soszin](https://avatars.githubusercontent.com/u/5676565?v=4)](https://github.com/soszin "soszin (2 commits)")

### Embed Badge

![Health badge](/badges/kiwijobs-bundle-api/health.svg)

```
[![Health](https://phpackages.com/badges/kiwijobs-bundle-api/health.svg)](https://phpackages.com/packages/kiwijobs-bundle-api)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)

PHPackages © 2026

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