PHPackages                             smart-php/laravel-cred-api-builder - 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. smart-php/laravel-cred-api-builder

ActiveLibrary[API Development](/categories/api)

smart-php/laravel-cred-api-builder
==================================

A package for Laravel to build CRUD REST APIs.

0.0.2(1y ago)128MITPHP

Since Jan 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shabeer-ali-m/laravel-cred-api-builder)[ Packagist](https://packagist.org/packages/smart-php/laravel-cred-api-builder)[ RSS](/packages/smart-php-laravel-cred-api-builder/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel CRED API Builder
========================

[](#laravel-cred-api-builder)

Laravel CRED API Builder is a Laravel package that simplifies the process of creating APIs for basic CRUD (Create, Read, Update, Delete) operations. With a single command, it generates all the necessary files for CRED functionality, including:

- Controller File
- Request File
- Resource File
- Service File

Features
--------

[](#features)

- **Single Command API Generation**: Generate all required files with one simple command.
- **Model Optionality**: Specify a model name or let the package use the class name as the default model name.
- **RESTful Endpoints**: Automatically creates endpoints for common CRUD operations.
- **Pagination**: Includes Laravel's pagination for listing records.

### Endpoints Created

[](#endpoints-created)

MethodEndpointDescription`GET``/api/`Get a paginated list of all records.`POST``/api/`Create a new object in the database.`GET``/api//`Retrieve object details by ID.`PUT``/api//`Update an existing record by ID.`DELETE``/api//`Delete a record by ID.Installation
------------

[](#installation)

Follow these steps to install the Laravel CRED API Builder package:

1. **Require the package** via Composer:

    ```
    composer require smart-php/laravel-cred-api-builder --dev
    ```

Usage
-----

[](#usage)

Run the following Artisan command to generate the CRED API files:

```
php artisan make:cred-api
```

- **``**: The name of the API resource (e.g., `Post`).
- **`` (optional)**: The name of the model to associate with the API. If not provided, the class name will be used as the model name.

### Example Command

[](#example-command)

```
php artisan make:cred-api Post PostModel
```

This will generate all required files for the `Post` API and use `PostModel` as the associated model.

### Generated Files

[](#generated-files)

- **Controller**: Handles the business logic and API routes.
- **Request**: Validates incoming data for creating and updating records.
- **Resource**: Formats the API response data.
- **Service**: Encapsulates reusable business logic.

Contributing
------------

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

525d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dbcacb0f4f56464269c44f61304aec5c8286c8e8cb94f2329f4bb5213e0693f?d=identicon)[shabeer-ali-m](/maintainers/shabeer-ali-m)

---

Top Contributors

[![shabeer-ali-m](https://avatars.githubusercontent.com/u/7569963?v=4)](https://github.com/shabeer-ali-m "shabeer-ali-m (9 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/smart-php-laravel-cred-api-builder/health.svg)

```
[![Health](https://phpackages.com/badges/smart-php-laravel-cred-api-builder/health.svg)](https://phpackages.com/packages/smart-php-laravel-cred-api-builder)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

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

Telegram driver for BotMan

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

PHPackages © 2026

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