PHPackages                             idtitanium/laravel-api-interface-gen - 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. idtitanium/laravel-api-interface-gen

ActiveLibrary[API Development](/categories/api)

idtitanium/laravel-api-interface-gen
====================================

A useful artisan command to generate an interface and its repository while building your api

v1.0.1(6y ago)3701MITPHPCI failing

Since Apr 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/IDTitanium/laravel-api-interface-gen)[ Packagist](https://packagist.org/packages/idtitanium/laravel-api-interface-gen)[ RSS](/packages/idtitanium-laravel-api-interface-gen/feed)WikiDiscussions master Synced 1w ago

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

[![Build Status](https://camo.githubusercontent.com/68b29b191b537dfe98db28faa1d65e93c9e4e04d864a74863f0910ec90396fbd/68747470733a2f2f7472617669732d63692e6f72672f4944546974616e69756d2f6c61726176656c2d6170692d696e746572666163652d67656e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/IDTitanium/laravel-api-interface-gen)[![GitHub](https://camo.githubusercontent.com/30a7a35c96dc8c64916bd47ae39f1c1b8071c4be8b368816a1291a9e0d14fb61/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6964746974616e69756d2f6c61726176656c2d6170692d696e746572666163652d67656e)](https://camo.githubusercontent.com/30a7a35c96dc8c64916bd47ae39f1c1b8071c4be8b368816a1291a9e0d14fb61/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6964746974616e69756d2f6c61726176656c2d6170692d696e746572666163652d67656e)[![Packagist Version](https://camo.githubusercontent.com/93cdf9cb2b88fa0416949057628f369a4aaa078bc72283cd48dd7f70855c82c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6964746974616e69756d2f6c61726176656c2d6170692d696e746572666163652d67656e)](https://camo.githubusercontent.com/93cdf9cb2b88fa0416949057628f369a4aaa078bc72283cd48dd7f70855c82c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6964746974616e69756d2f6c61726176656c2d6170692d696e746572666163652d67656e)

laravel-api-interface-gen
=========================

[](#laravel-api-interface-gen)

Provides useful artisan command to help generate repositories and interfaces.

USAGE
-----

[](#usage)

1. Installing To install run `composer require idtitanium/laravel-api-interface-gen`. Support Laravel version 6.1 or higher. Lower versions might not work so nicely.
2. Making an Interface When you run `php artisan make:interface Book`. This will generate two folders (if they don't already exist). One called Repositories and inside it Interfaces. Then, the `BookRepostoryInterface` will be created inside the Interfaces folder.
3. Making a Repository when you run `php artisan make:repository Book`. This will generate a repository class with the Name `BookRepository`With an assumption that you already have an interface called `BookRepositoryInterface`.
4. Making a Repsoitory and Interface. This is the best part of this package. when you run `php artisan make:repositoryinterface Book`. This creates both the repository and the interface in their respective folders and correct namespaces.
5. All command will create a `RepositoryServiceProvider` file, if it doesn't currently exist.

#### NOTE: This commands currently does not register the service provider in the app config. Also, it creates a service provider wihout the binding of the repository to the interface.

[](#note-this-commands-currently-does-not-register-the-service-provider-in-the-app-config-also-it-creates-a-service-provider-wihout-the-binding-of-the-repository-to-the-interface)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

2

Last Release

2234d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38a4195bfebca7ec68d2d4760031b473f9d6fe918f2a4ef51915c3c4ba76f906?d=identicon)[idtitanium](/maintainers/idtitanium)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/idtitanium-laravel-api-interface-gen/health.svg)

```
[![Health](https://phpackages.com/badges/idtitanium-laravel-api-interface-gen/health.svg)](https://phpackages.com/packages/idtitanium-laravel-api-interface-gen)
```

###  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)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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