phpfit/site

The site gate provider

Maintainers

Details

github.com/phpfit/site

Source

Issues

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/phpfit/site

1.0.0 2025-08-25 03:47 UTC

This package is auto-updated.

Last update: 2025-11-26 07:02:32 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.