PHPackages                             akill/generators - 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. akill/generators

ActiveLibrary[API Development](/categories/api)

akill/generators
================

Laravel Generators API

128PHP

Since Feb 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/akilsagitarius/laravel-generators)[ Packagist](https://packagist.org/packages/akill/generators)[ RSS](/packages/akill-generators/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Project My Job
==============

[](#project-my-job)

This is just my project only but if you want using my package, up to you. Because this my package project only i'm using indonesian language in the README.

Getting Started
---------------

[](#getting-started)

Seperti pada umumnya untuk package laravel silahkan ikuti petunjuk di bawah ini.

### Prerequisites

[](#prerequisites)

Tentu anda harus mengistall laravel terlebih dahulu.

### Install the package via composer.

[](#install-the-package-via-composer)

Download package dengan composer

```
composer require akill/generators dev-master
```

or

```
{
	"require": {
		"akill/generators" : "dev-master"
	}
}

```

### Register the service provider.

[](#register-the-service-provider)

Tambahkan

```
Akill\Generators\GeneratorsServiceProvider::class,

```

di dalam `providers` yang ada pada `config/app.php`.

Contoh

```
'providers' => [
	....
	Akill\Generators\GeneratorsServiceProvider::class,
]
```

Usage
=====

[](#usage)

Basic
-----

[](#basic)

Buka terminal anda kemudian masuk di path lokasi project anda.

selanjutnya ketikkan di terminal anda

```
php artisan akill:generate NamaModuleAnda

```

`Hasilnya`

perintah tersebut membuat folder di dalam `app/Htpp/`. File yang di buat berupa controller, resource, service, model, helper, dan repository serta menambahkan baris perintah baru di akhir `routes/api.php`

untuk penamaan file yang anda buat akan mengikuti sesuai Nama Module Anda.

`Contoh`

```
Http
....Controller
........NamaModuleAndaController.php
....Helpers
........NamaModuleAndaHelper.php
....Models
........NamaModuleAnda.php
....Repositories
........NamaModuleAndaRepository.php
....Resource
........NamaModuleAndaResource.php
....Service
........NamaModuleAndaService.php

```

Selanjutnya setelah anda melakukan generate file tersebut, silahkan atur data yang anda inginkan pada bagian `NamaModuleAndaHelper.php`.

Saya sengaja untuk tidak menarik data field yang ada demi memudahkan anda dalam mengatur logika sendiri.

Tambahan

Untuk menambahkan relasi table silahkan gunakan perintah berikut ini

```
php artisan akill:relation relasi field module

```

`Contoh`

```
php artisan akill:relation Product product_id Result

```

`Product` =&gt; Nama Module yang akan direlasikan `product_id` =&gt; Field yang digunakan di Module yang akan direlasikan `Result` =&gt; Nama Module yang akan ditambahkan relasi

`Note`Penggunaan relasi ini tidak menggunakan Eloquent.

Package Description
-------------------

[](#package-description)

Dalam package ini saya tidak memasukkan beberapa class yang telah di gunakan pada pada class yang telah di generate.

Untuk generator secara umum saya akan buatkan nanti setalah kerjaan ku selesai yah. :)

Semoga ini membantu anda dalam membuat API dan membantu bagi anda yang ingin membuat generator sendiri.

Promotion
---------

[](#promotion)

Silahkan kunjungi dan subscribe web saya yah.

Authors
-------

[](#authors)

\***Muhammad Akil** - *Initial work* - [Akill](http://akil.co.id/)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

Acknowledgments
---------------

[](#acknowledgments)

- Hat tip to anyone whose code was used
- Inspiration
- etc

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/16ab78227adf56065b2fc549a99f10062691725ded6b801f6fc8d483263af01f?d=identicon)[akilsagitarius](/maintainers/akilsagitarius)

---

Top Contributors

[![ak4bento](https://avatars.githubusercontent.com/u/17612342?v=4)](https://github.com/ak4bento "ak4bento (19 commits)")

---

Tags

apilaravellaravel-generatorslaravel-package

### Embed Badge

![Health badge](/badges/akill-generators/health.svg)

```
[![Health](https://phpackages.com/badges/akill-generators/health.svg)](https://phpackages.com/packages/akill-generators)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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