1. Go to this page and download the library: Download daikazu/bladewind 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/ */
daikazu / bladewind example snippets
use Daikazu\BladeWind\Pages\PageStyleStore;
use Daikazu\BladeWind\Testing\AssertsPageStyles;
use Daikazu\BladeWind\Testing\PageExpectation;
uses(AssertsPageStyles::class);
beforeEach(fn () => app(PageStyleStore::class)->clear());
it('serves the checkout page every rule it can need', function () {
$this->assertPageStyles('/checkout', new PageExpectation(
reaches: ['opacity-50', 'border-red-500'], // wire:loading.class, an @error branch
absent: ['prose'], // used only on the blog
diagnostics: [], // any BW code fails the test
));
});
namespace App\Css;
use Daikazu\BladeWind\Pages\Drivers\FlatDriver;
final class UnoCssDriver extends FlatDriver
{
public function name(): string
{
return 'unocss';
}
public function detect(string $css): bool
{
return str_contains($css, '--un-');
}
}
bash
php artisan bladewind:analyze # analyse every view and print a summary (optional; entries are also written lazily)
php artisan bladewind:analyze --json # the same as JSON; --path=dir limits the scan
php artisan bladewind:inspect <target> # what one view produces: classes, dependencies, diagnostics (--json available)
php artisan bladewind:clear # remove entries and generated files
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.