Download the PHP package tightenco/mise without Composer
On this page you can find all versions of the php package tightenco/mise. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tightenco/mise
More information about tightenco/mise
Files in tightenco/mise
Package mise
Short Description Mise: A tool for installing Laravel recipes.
License MIT
Homepage https://github.com/tighten/mise
Informations about the package mise
Mise ("meez")
[!WARNING]
This tool is in alpha.
A CLI tool to automatically apply preset steps to new Laravel applications, using concepts like composable recipes built from individual steps.
Use cases:
- Individual dev runs pre-made Mise recipes to kick off their app development
- Individual dev or agency creates a recipe they use for all their new apps, and applies with Mise
- Starter kit creator distributes their kit as a Mise recipe
- Starter kit creator automates the building of their new repo-based (
laravel new
style) starter kit using a Mise recipe that runs and pushes afresh every time there's a new version of Laravel available
Usage
Once Mise is installed globally with Composer, you'll install a new Laravel app:
Usage
Then you can use Mise to apply recipes:
Or you can use it interactively, where Prompts will let you choose which you want to apply:
How it works
Mise comes with predefined "steps"; for example, a step named duster/install
takes the following steps:
composer require-dev tightenco/duster
git add . && git commit -m "Install Duster"
./vendor/bin/duster fix
git add . && git commit -m "Run Duster"
Recipes are a list of steps, along with optional conditional logic around which steps to run.
How recipes are defined/loaded
Recipes are defined in the Mise codebase for now. In the future, you'll be able to have your own local recipes, and also pull them from a Mise SaaS.
We're also considering allowing you to set a default recipe to run, so you can maybe run mise default
on every new project.
What a step looks like
Steps are individual PHP files. Here's what the above Duster install step looks like:
We're working on building even more tooling to make common startup steps easy.
What a recipe looks like
Let's imagine we have a recipe for creating a new Tighten SaaS. What steps do we want to take after laravel new
?
We can also take user input:
How to create a custom recipe
If you'd like to build your own recipe, you can!
Build a class that extends App/Recipe
and place it in ~/.mise/Recipes
. It'll just show up!
Here's an example:
Reference
- Valet
- Lambo, especially this PR: https://github.com/tighten/lambo/pull/185
- Josh Manders announced a tool Skeletor while I was plotting this; his tool is primarily hooking around
Composer
so I'll consider it a cousin :)