phpfit/site

The site gate provider

1.0.0 2025-08-25 03:47 UTC

This package is auto-updated.

Last update: 2025-09-26 06:37:37 UTC


README

The site gate provider

Installation

composer require phpfit/site

Gate

This module provide gate for site endpoint. The gate is configured as below:

<?php

return [
    'site' => [
        'host' => 'HOST',
        'path' => '/',
        'error' => 'App\\Site\\Handler\\ErrorHandler',
        'shutdown' => 'App\\Site\\Handler\\ShutdownHandler',
        'view' => 'App\\Site\\Handler\\View',
        'middlewares' => [
            'site' => 'App\\Site\\Middleware\\SiteMiddleware'
        ]
    ]
];

Publish

This module publish various files to src/Site and view/site.

Gate Controller

New gate controller created named App\Site\SiteController.

Todo

Provide site meta data on response html taken from future module named phpfit/setting

License

The phpfit/site library is licensed under the MIT license. See License File for more information.