knutle / isoview
Quickly and easily isolate and test your package views during development
Requires
- php: ^8.1
- composer-runtime-api: ^2.2
- ext-pcntl: *
- guzzlehttp/guzzle: ^7.5
- illuminate/contracts: ^9.0
- knutle/test-stubs: ^0.1.22
- nunomaduro/collision: ^6.3.1
- orchestra/testbench: ^7.8.1
- spatie/laravel-package-tools: ^1.13.5
- symfony/filesystem: ^6.1.5
- symfony/process: ^6.1.3
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/larastan: ^2.2.0
- pestphp/pest: ^1.22.1
- pestphp/pest-plugin-laravel: ^1.3
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.1.1
- phpunit/phpunit: ^9.5.25
- spatie/laravel-ray: ^1.31
- spatie/pest-plugin-snapshots: ^1.1
- spatie/phpunit-snapshot-assertions: ^4.2.15
This package is auto-updated.
Last update: 2024-10-09 09:14:01 UTC
README
This package allows you to quickly and easily preview your package views in isolation during development.
You simply define some test routes specifically for testing, then you can view your changes immediately.
This works exactly the same as your normal php artisan serve
, without requiring a full Laravel install or build step.
Installation
You can install the package via composer:
composer require --dev knutle/isoview
Then run the install command through the CLI:
./vendor/bin/isoview install
You should now see a new isoview.php file in ./routes at the root of your package.
This is where you will define all your test routes.
Usage
Once you have some routes ready, you can start the server using the CLI again:
./vendor/bin/isoview serve
This will serve your pages from http://127.0.0.1:8010.
By default, an index page at /
is provided that provides a list of links for all your available test routes.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.