PHPackages                             moemadeldin/laravel-api-starter-kit - 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. [Framework](/categories/framework)
4. /
5. moemadeldin/laravel-api-starter-kit

ActiveProject[Framework](/categories/framework)

moemadeldin/laravel-api-starter-kit
===================================

The skeleton application for the Laravel framework.

v1.0.0(1mo ago)01↑2900%MITPHPPHP ^8.5.0

Since Mar 28Pushed 1mo agoCompare

[ Source](https://github.com/moemadeldin/laravel-api-starter-kit)[ Packagist](https://packagist.org/packages/moemadeldin/laravel-api-starter-kit)[ RSS](/packages/moemadeldin-laravel-api-starter-kit/feed)WikiDiscussions master Synced 1mo ago

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

Laravel API Starter Kit
=======================

[](#laravel-api-starter-kit)

A production-ready Laravel API starter kit with Sanctum authentication, Pest testing, PHPStan static analysis, and Laravel Boost AI-assisted development.

Tech Stack
----------

[](#tech-stack)

PackageVersionPHP8.5+Laravel13.xLaravel Sanctum4.xPest5.xPHPStan / Larastan3.xLaravel Boost2.xRequirements
------------

[](#requirements)

- PHP &gt;= 8.5
- Composer
- MySQL 8.0+ / PostgreSQL 15+
- Node.js / Bun (for frontend assets)

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

[](#installation)

### Via Composer Create Project

[](#via-composer-create-project)

```
composer create-project moemadeldin/laravel-api-starter-kit my-api
```

### Post Installation

[](#post-installation)

```
cd my-api

# Copy environment file and generate key
cp .env.example .env
php artisan key:generate

# Configure your database in .env, then run migrations
php artisan migrate

# Install dependencies
composer install
bun install
bun run build
```

Environment Variables
---------------------

[](#environment-variables)

Configure these in your `.env` file:

```
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database
DB_USERNAME=root
DB_PASSWORD=

```

API Endpoints
-------------

[](#api-endpoints)

All endpoints are versioned under `/api/v1`.

MethodEndpointAuthDescriptionPOST`/api/v1/register`GuestRegister a new userPOST`/api/v1/login`GuestLogin and get tokenDELETE`/api/v1/logout`BearerLogout (revoke token)### Authentication

[](#authentication)

Use Laravel Sanctum tokens. Include the token in the `Authorization` header:

```
Authorization: Bearer {your-token}

```

Development Commands
--------------------

[](#development-commands)

```
# Start full dev environment (server, queue, logs, vite)
composer run dev

# Format code with Pint
vendor/bin/pint --dirty

# Lint (Rector + Pint)
composer lint

# Static analysis
composer test:types

# Run tests
composer test

# Run specific test
php artisan test --compact --filter=TestName
```

Testing
-------

[](#testing)

This project uses [Pest](https://pestphp.com/) for testing with 100% type coverage enforced.

```
# Run all tests with type coverage and static analysis
composer test

# Run only feature tests
php artisan test tests/Feature

# Run only unit tests
php artisan test tests/Unit
```

Project Structure
-----------------

[](#project-structure)

```
app/
├── Actions/Auth/          # Business logic actions
├── Controllers/API/V1/    # Versioned API controllers
├── Enums/                 # Database-level enums
├── Exceptions/            # Custom exceptions
├── Http/
│   ├── Middleware/        # HTTP middleware
│   ├── Requests/          # Form request validators
│   └── Resources/         # API resources
├── Models/                # Eloquent models
├── Services/              # Reusable services
└── Utilities/             # Constants, traits, helpers

```

AI-Assisted Development
-----------------------

[](#ai-assisted-development)

This project includes [Laravel Boost](https://laravel.com/docs/boost) for AI-powered development with Opencode.

### Setup

[](#setup)

1. Install Laravel Boost:

```
composer require laravel/boost --dev
php artisan boost:install
```

2. Add MCP server to `~/.config/opencode/opencode.json`:

```
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "laravel-boost": {
      "type": "local",
      "command": ["php", "artisan", "boost:mcp"],
      "enabled": true
    }
  }
}
```

3. Run `/mcps` in Opencode to verify the connection.

### Available Tools

[](#available-tools)

- `database-schema` - Inspect table structures
- `database-query` - Run read-only SQL queries
- `search-docs` - Version-aware Laravel documentation
- `tinker` - Execute PHP code in the app context
- `read-log-entries` - Read application logs
- `browser-logs` - Read browser console logs

Code Quality
------------

[](#code-quality)

CheckCommandStatic Analysis`composer test:types`Lint Check`composer test:lint`Type Coverage`composer test:type-coverage`All Checks`composer test`License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

frameworklaravel

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/moemadeldin-laravel-api-starter-kit/health.svg)

```
[![Health](https://phpackages.com/badges/moemadeldin-laravel-api-starter-kit/health.svg)](https://phpackages.com/packages/moemadeldin-laravel-api-starter-kit)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[juzaweb/cms

Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Framework and web platform whose sole purpose is to make your development workflow simple again. Project develop by Juzaweb

187571.2k](/packages/juzaweb-cms)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)

PHPackages © 2026

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