1. Go to this page and download the library: Download tightenco/mise library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tightenco / mise example snippets
namespace Steps/Duster;
class Install extends Step
{
public function __invoke()
{
$this->composer->dAndCommit('Run Duster');
}
}
class Tighten extends Recipe
{
public function __invoke()
{
$this->step('duster/install');
$this->step('duster/ci');
}
}
class Tighten extends Recipe
{
public function __invoke()
{
$this->step('duster/install');
$this->step('duster/ci');
if (confirm(label: 'Do you want to install our frontend tooling?')) {
$this->step('tighten/prettier');
}
}
}
// ~/.mise/Recipes/EchoDate.php
namespace App\Recipes;
class EchoDate extends Recipe
{
public string $key = 'echo-date';
public function __invoke(): void
{
echo "Today's date is " . date('Y-m-j');
}
public function description(): string
{
return 'Echo the date.';
}
public function name(): string
{
return 'Echo date';
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.