Skip to content

phpfit/site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpfit/site

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.

About

The site gate provider

Resources

License

Stars

Watchers

Forks

Packages

No packages published