PHPackages                             martanto/magma-trait - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. martanto/magma-trait

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

martanto/magma-trait
====================

Trait and service generator for MAGMA Indonesia app

v1.0.3(2y ago)017MITPHPPHP ^8.1

Since Jan 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/martanto/magma-trait)[ Packagist](https://packagist.org/packages/martanto/magma-trait)[ Docs](https://github.com/martanto/magma-trait)[ GitHub Sponsors](https://github.com/Martanto)[ RSS](/packages/martanto-magma-trait/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

Trait and service generator for MAGMA Indonesia app
===================================================

[](#trait-and-service-generator-for-magma-indonesia-app)

[![Latest Version on Packagist](https://camo.githubusercontent.com/49d309864812cf9bdf67b344998e0a69694eb0feae35807ee750c4852d088d72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617274616e746f2f6d61676d612d74726169742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/martanto/magma-trait)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9c07fa9a20132c66d97dfa322cdd8a34e32fc38272fe6513c9a988edb1f26110/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d617274616e746f2f6d61676d612d74726169742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/martanto/magma-trait/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4a9b9741d32075f136fb2ef790040474e44ace20bce8a789f1e678f42f693224/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d617274616e746f2f6d61676d612d74726169742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/martanto/magma-trait/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/da6befbd2afd6708e4f07834786316c4999f5cc58fff91f32df9fefcc039c482/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617274616e746f2f6d61676d612d74726169742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/martanto/magma-trait)

This package is used to generate trait and service for MAGMA Indonesia

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

[](#installation)

You can install the package via composer:

```
composer require martanto/magma-trait
```

You can publish the config file with:

```
php artisan vendor:publish --tag="magma-trait-config"
```

This is the contents of the published config file:

```
return [
    /*
    |--------------------------------------------------------------------------
    | User Providers
    |--------------------------------------------------------------------------
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    */
    'model' => config('auth.providers.users.model'),

    /*
    |--------------------------------------------------------------------------
    | MAGMA API url
    |--------------------------------------------------------------------------
    |
    | This one define where the MAGMA API url located
    |
    */
    'api_url' => 'https://magma.esdm.go.id/api',
];
```

Usage
-----

[](#usage)

```
use AuthenticatesUsers;
use ByteConverter;
use ColorPalettesTrait;
use GenerateSlug;
use GenerateUUID;
use JsonFromFileTrait;
use LoginWithMagma;
use ThrottlesLogins;
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Martanto](https://github.com/martanto)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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 ~3 days

Total

4

Last Release

853d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.3PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![martanto](https://avatars.githubusercontent.com/u/13482145?v=4)](https://github.com/martanto "martanto (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelVolcanomagma-traitMAGMA Indonesia

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/martanto-magma-trait/health.svg)

```
[![Health](https://phpackages.com/badges/martanto-magma-trait/health.svg)](https://phpackages.com/packages/martanto-magma-trait)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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