/isoview

Aids your isolated package testing

Primary LanguagePHPMIT LicenseMIT

Preview package views in isolation

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.