# Laravel Tooling Guide

[![PHP Tooling Guide](https://img.shields.io/badge/PHP_Tooling_Guide-4f46e5?style=flat)](/books/php-guides/page/php-tooling-guide)

Laravel Package Justfile
-------------------------

```just filename=".just/php-laravel.just"
# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none
#
# Manage the PHP and Laravel toolchain of this package.

# Run the recipes at the project root, not at the `.just` directory.
set working-directory := '..'

HOST := "127.0.0.1"
PORT := "8000"

# Install the Composer dependencies.
install:
    composer install

# Serve the workbench application on the PHP development server.
dev host=HOST port=PORT:
    @php vendor/bin/testbench workbench:build --ansi
    @php vendor/bin/testbench serve --ansi --host="{{ host }}" --port="{{ port }}"

# Run the Pest test suite.
test:
    composer test:unit
```

```just filename="justfile"
# Manage the PHP and Laravel toolchain of this package.
[group('laravel')]
mod laravel '.just/php-laravel.just'
```