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

On this page you can find all versions of the php package shire-studio/laravel-starter-kit-api. 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-starter-kit-api



Build Status Latest Stable Version

A strict, fully tested Laravel 13 API starter kit with Sanctum token authentication and JSON resources. It shares its actions, form requests and models with the other Shire Studio starter kits, so the same application logic answers with JSON instead of pages.

Tech Stack

Backend: PHP 8.5+, Laravel 13, Laravel Sanctum, Nuno Maduro's Essentials

Code quality: PHPStan (level max via Larastan), Rector, Pint, Pest v5 (100% coverage)

Endpoints

Method Path Purpose
POST /register Create an account and receive a token
POST /login Exchange credentials for a token
POST /logout Revoke the current token
POST /forgot-password Email a password reset link
POST /reset-password Reset a password with a token from the email
GET /user Show the authenticated user
PATCH /user Update the name and email
DELETE /user Delete the account (requires the current password)
PUT /user/password Change the password
POST /email/verification-notification Resend the verification email
GET /email/verify/{id}/{hash} Verify the email address (signed)

Send the token as Authorization: Bearer <token>. Every response, including errors, is JSON. Password reset emails link to FRONTEND_URL, so point it at the client that collects the new password.

Local Development

Requires PHP 8.5+ and a code coverage driver such as Xdebug. composer dev also uses Node to run its processes side by side.

SQLite is used by default for the database, cache and queue.

The recommended way to start a project is the starter kit CLI. It works like the laravel installer, and it can also bring newer starter kit releases into your project later (see Keeping Your Project Up to Date).

Install it globally with Composer:

This installs the shire-kit command. Make sure Composer's global bin directory is on your PATH (run composer global config bin-dir --absolute to find it). Then create a project:

This creates example-app from the latest stable release of the API starter kit. There is no frontend to build, so you'll only be asked whether to initialise a git repository. Pass --git or --no-git to skip the question, or --force to overwrite an existing directory.

If you'd rather not install the CLI, composer create-project works too:

Either way, the project gets a .starter-kit.json file recording the kit and release it was created from. Commit it, because the CLI reads it to work out which starter kit changes your project hasn't received yet.

Then set it up:

Keeping Your Project Up to Date

Once you've built on the starter kit, you can't just pull in new releases, because your project has drifted from it. The CLI's update command handles this. Run it from the root of your project:

The project must be in a git repository with no uncommitted changes, so everything the update does can be reviewed with git diff and undone with git restore. It can live inside a larger repository, such as a monorepo.

The CLI compares the release in your .starter-kit.json with the latest one and writes the changes to .starter-kit-update/ (excluded from git). It then hands them to a coding agent of your choice, which merges them into your code, keeps your own changes and fixes anything the update breaks. Claude Code, Codex, Gemini CLI, OpenCode and Cursor are supported, and only the ones you have installed are offered. Pass --agent=<agent> to skip the question.

When the agent is done, the CLI shows the changed files and asks whether to mark the project as updated, which bumps the version in .starter-kit.json. Nothing is committed for you. Review the changes, run composer test, then commit.

A few things worth knowing:

Update regularly. Small, frequent updates are much easier to review than one large jump across several releases. See the CLI README for every option.

Available Commands

Code Standards

Testing

The project uses Pest and enforces:

Run the full suite with:

Releasing

Releases are published by the release workflow, not from the Releases page. In the Actions tab, run it on main with the new version, for example v1.5.0.

The workflow writes the version to .starter-kit.json, commits it on top of main, tags that commit and publishes a GitHub release with generated notes. Every project created from the release then knows which version it started from, which the starter kit CLI uses to update it later. The release commit is only reachable from its tag, so main itself never has a .starter-kit.json.

Contributing

This repository is raised by Hobbiton, which grows every Shire Studio starter kit from shared smials. Please open issues and pull requests there, so a fix reaches every kit.

License

This project was created by Shire Studio under the MIT license.


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

PHP Build Version
Package Version
Requires php Version ^8.5.0
laravel/framework Version ~13.34.0
laravel/sanctum Version ^4.3.3
laravel/tinker Version ^3.0.2
nesbot/carbon Version 3.14.0
nunomaduro/essentials Version ^1.2.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 shire-studio/laravel-starter-kit-api contains the following files

Loading the files please wait ...