PHPackages                             gravatalonga/king - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. gravatalonga/king

ActiveProject[Framework](/categories/framework)

gravatalonga/king
=================

Base framework for my personal project, it can handle any kind of application

1.0.13(3y ago)114MITPHPPHP ^8.1

Since Apr 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gravataLonga/king)[ Packagist](https://packagist.org/packages/gravatalonga/king)[ GitHub Sponsors](https://github.com/gravataLonga)[ RSS](/packages/gravatalonga-king/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (16)Used By (0)

King
====

[](#king)

Web Framework
-------------

[](#web-framework)

[![King Web Framework](cover.png)](cover.png)

RequirementsPHP&gt;= 8.1Installation
------------

[](#installation)

`composer create-project gravatalonga/king project-folder`

Configuration
-------------

[](#configuration)

- Copy file `.env.example` to `.env` and configured them. And also you need to check config folder.
- run `npm install`

How is work
-----------

[](#how-is-work)

### Service Provider

[](#service-provider)

Service provider is way to bind dependencies or libraries into application, you also can do any sort of modification for already bound.

For creating a service provider you need to implement `ServiceProvider` and implement two method.
**Factories Method** is for create new entry, must return an array key and value.
**Extensions Method** is for extended already bound entry it same as above.

Example:

```
