PHPackages                             glueful/api-skeleton - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. glueful/api-skeleton

ActiveProject[HTTP &amp; Networking](/categories/http)

glueful/api-skeleton
====================

Glueful API Application Skeleton — Create high-performance APIs

v1.24.0(2mo ago)12MITPHPPHP ^8.3

Since Oct 6Pushed 2mo agoCompare

[ Source](https://github.com/glueful/api-skeleton)[ Packagist](https://packagist.org/packages/glueful/api-skeleton)[ Docs](https://glueful.com/)[ RSS](/packages/glueful-api-skeleton/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (45)Used By (0)

Glueful API Skeleton
====================

[](#glueful-api-skeleton)

A minimal API application starter powered by the Glueful framework.

Quick Start
-----------

[](#quick-start)

```
# Install dependencies
composer install

# Initialize application (runs migrations, generates key)
php glueful install --quiet

# Start development server
php glueful serve

# Visit the API
curl http://127.0.0.1:8080/v1/welcome
curl http://127.0.0.1:8080/health
```

Default Routes
--------------

[](#default-routes)

RouteMethodDescription`/v1/welcome`GETWelcome JSON payload`/v1/status`GETLightweight status check`/health`GETFramework health endpointProject Structure
-----------------

[](#project-structure)

```
api-skeleton/
├── app/                    # Application code
│   ├── Controllers/        # HTTP request handlers
│   ├── Models/             # ORM models
│   └── Providers/          # Service providers
├── bootstrap/app.php       # Framework initialization
├── config/                 # Configuration files
├── database/migrations/    # Database migrations
├── public/index.php        # HTTP entry point
├── routes/api.php          # API routes
├── storage/                # Runtime data (logs, cache, db)
└── tests/                  # PHPUnit tests

```

This skeleton uses a **minimal starter structure**. As your application grows, see [docs/APPLICATION\_ARCHITECTURE.md](docs/APPLICATION_ARCHITECTURE.md) for guidance on scaling to standard and enterprise structures.

Architecture Guide
------------------

[](#architecture-guide)

The skeleton follows a progressive complexity model:

Project SizeStructure**Starter** (&lt; 10 endpoints)Controllers, Models, Providers**Standard** (10-50 endpoints)+ Actions, DTO, Events, Jobs, Policies**Enterprise** (50+ endpoints)+ Repositories, Services, Validators**Start minimal. Add complexity only when needed.**

See the full guide: [docs/APPLICATION\_ARCHITECTURE.md](docs/APPLICATION_ARCHITECTURE.md)

Controllers &amp; Routing
-------------------------

[](#controllers--routing)

Routes are defined explicitly in `routes/api.php`:

```
// Simple version prefix (customize as needed)
$router->group(['prefix' => 'v1'], function (Router $router) {
    $router->get('/welcome', [WelcomeController::class, 'index']);
    $router->get('/status', [WelcomeController::class, 'status']);
});

// Other prefix options:
// - 'v1'                 → /v1/...
// - '/api/v1'            → /api/v1/...
// - api_prefix($context) → uses config/api.php settings
```

The framework also supports attribute-based routing:

```
#[Controller(prefix: '/api/v1')]
class UserController extends BaseController
{
    #[Get('/users/{id}')]
    public function show(int $id): Response { }
}
```

Configuration
-------------

[](#configuration)

Key configuration files in `config/`:

FilePurpose`app.php`Application settings, paths, URLs`database.php`Database connections (SQLite default)`security.php`CORS, CSRF, headers, rate limiting`api.php`API versioning, field selectionEnvironment variables in `.env` override config values.

CLI Commands
------------

[](#cli-commands)

```
# Development
php glueful serve                    # Start dev server
php glueful serve --watch            # Auto-restart on changes

# Database
php glueful migrate:run              # Run migrations
php glueful migrate:status           # Check migration status

# Code Generation
php glueful scaffold:controller UserController
php glueful scaffold:model User --migration
php glueful scaffold:request CreateUserRequest

# Utilities
php glueful generate:key             # Generate APP_KEY
php glueful cache:clear              # Clear cache
php glueful generate:openapi         # Generate API docs
```

Testing
-------

[](#testing)

```
# Run all tests
composer test

# Run specific suites
composer test:unit
composer test:integration
```

Base test case at `tests/TestCase.php` provides framework integration.

Notes
-----

[](#notes)

- **Database**: SQLite at `storage/database/glueful.sqlite` (zero config)
- **Queue**: `sync` driver for immediate execution (change to `redis` or `database` in `.env`)
- **Docs**: API documentation at `/docs` when `API_DOCS_ENABLED=true`

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance85

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~3 days

Total

43

Last Release

76d ago

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

v1.5.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/53e968b0b6f4b8ee0cffaab888c480c7c01c173dcf211a225c63d123da7cd839?d=identicon)[msowah](/maintainers/msowah)

---

Top Contributors

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

---

Tags

phpapirestSkeletonglueful

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/glueful-api-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/glueful-api-skeleton/health.svg)](https://phpackages.com/packages/glueful-api-skeleton)
```

PHPackages © 2026

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