Download the PHP package alibori/laravel-api-starter-kit without Composer

On this page you can find all versions of the php package alibori/laravel-api-starter-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-api-starter-kit

Laravel API Starter Kit

A minimal, opinionated Laravel 13 starter kit for building versioned JSON APIs. It ships with authentication, a strict code quality pipeline, and a Docker-based development environment so you can start writing endpoints immediately.

Requirements

Installation

Using the Laravel installer (recommended)

Requires the Laravel installer (composer global require laravel/installer).

Using Composer create-project

Both methods above trigger post-create-project-cmd automatically: they generate the application key, create the SQLite database file, and run the initial migrations.

Cloning the repository

The setup script installs Composer and npm dependencies, generates the application key, runs migrations, and compiles front-end assets.

Running Locally

Start the Docker services:

Then start the development process (HTTP server, queue worker, log viewer, and Vite):

Stop Docker services when done:

Ports

Service Default port
HTTP 80
Vite 5173
Redis 6379

Override any port by setting APP_PORT, VITE_PORT, or FORWARD_REDIS_PORT in your .env file.

API Structure

All API routes live under routes/api/ and are version-prefixed. The router loads routes/api/api.php, which applies a v1 prefix and delegates to routes/api/v1/v1.php. New API versions follow the same pattern by adding a new prefix group and a corresponding directory.

Current Endpoints

Method Path Middleware Description
GET /api/v1/user auth:sanctum Returns the authenticated user

Responses follow the Laravel API Resources pattern.

Authentication

This kit uses Laravel Sanctum v4 for token-based authentication. Sanctum is configured out of the box including the personal_access_tokens table migration.

To obtain a token, issue one from Tinker or build an endpoint:

Pass the token in the Authorization header:

Protected routes use the auth:sanctum middleware.

Development Commands

All commands are registered as Composer scripts and run via composer run <name>.

Command Description
composer run setup Full first-run setup: install deps, generate key, migrate, build assets
composer run dev Start all services concurrently: PHP server, queue worker, log viewer (Pail), Vite
composer run analyse Run PHPStan static analysis (level 7, 2 GB memory limit)
composer run format Run Laravel Pint to fix code style
composer run refactor Run Rector to apply automated refactors
composer run test Clear config cache and run the full test suite
composer run test:parallel Run tests in parallel across 5 processes

Additional utility scripts:

Command Description
composer run analyse:debug PHPStan with verbose debug output
composer run test:format Check code style without making changes (Pint dry-run)
composer run test:refactor Preview Rector changes without applying them

Code Quality

Laravel Pint

Laravel Pint enforces PSR-12 as the base preset with additional rules defined in pint.json (strict types, final classes, strict comparisons, arrow functions, and more).

PHPStan / Larastan

Larastan runs PHPStan at level 7 against the app/ directory. Configuration lives in phpstan.neon.

Rector

Rector is configured in rector.php to target PHP 8.5 syntax and Laravel 13 idioms. It runs against both app/ and tests/.

Testing

The project uses Pest v4 with the Laravel plugin. Test suites are defined in phpunit.xml:

Feature tests automatically use RefreshDatabase and fake Storage, HTTP, Queue, and Bus.

Filter to a specific test:

Architecture Tests

tests/Feature/ArchTest.php enforces project-wide rules on every CI run:

AI Development

This project includes Laravel Boost v2, which exposes an MCP (Model Context Protocol) server for AI coding agents such as Claude Code.

The MCP server is configured in .mcp.json and runs via Sail:

Boost provides agents with tools for database inspection, documentation search, error log access, and URL resolution, all scoped to this application's installed package versions.

The boost.json file controls which agents, skills, and integrations are active. Current skills: laravel-best-practices, pest-testing, spatie-laravel-php, spatie-javascript, spatie-security, spatie-version-control.

License

This project is open-sourced software licensed under the MIT license.


All versions of laravel-api-starter-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
laravel/framework Version ^13.8
laravel/sanctum Version ^4.3
laravel/tinker Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alibori/laravel-api-starter-kit contains the following files

Loading the files please wait ...