PHPackages                             paulao-dev/router-khan - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. paulao-dev/router-khan

ActiveLibrary[HTTP &amp; Networking](/categories/http)

paulao-dev/router-khan
======================

v2.0(8y ago)321805[56 issues](https://github.com/PaulaoDev/router-khan/issues)[2 PRs](https://github.com/PaulaoDev/router-khan/pulls)MITPHP

Since Jul 30Pushed 5y ago10 watchersCompare

[ Source](https://github.com/PaulaoDev/router-khan)[ Packagist](https://packagist.org/packages/paulao-dev/router-khan)[ RSS](/packages/paulao-dev-router-khan/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (1)Versions (10)Used By (0)

[![Khan Framework](https://camo.githubusercontent.com/43a4cf4337a55c9fb07a144af10ac06091411aac29e05f6c9c6d78dea6ce6447/68747470733a2f2f692e696d6775722e636f6d2f726a425a55574d2e706e67)](https://camo.githubusercontent.com/43a4cf4337a55c9fb07a144af10ac06091411aac29e05f6c9c6d78dea6ce6447/68747470733a2f2f692e696d6775722e636f6d2f726a425a55574d2e706e67)

 [![Passing](https://camo.githubusercontent.com/f02310c927570ef1dc53fb81f2a893ccfab2b4a37f733047fe197374a4520dd7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5061756c616f4465762f726f757465722d6b68616e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PaulaoDev/khan/?branch=master) [![Passing](https://camo.githubusercontent.com/baaa1e11ee42c5e528574c468a5efd2b906d8df4455a577425cc28ddc48dc422/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5061756c616f4465762f726f757465722d6b68616e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PaulaoDev/khan/build-status/master) [![Passing](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/PaulaoDev/khan/master/LICENSE)

 [![Stars](https://camo.githubusercontent.com/08b33b0f202e472f056c79898e623183bdc6d614030ce56fcbbd3959855a1286/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6261646765732f736869656c64732e7376673f7374796c653d736f6369616c266c6162656c3d5374617273)](https://github.com/PaulaoDev/khan/stargazers) [![Package](https://camo.githubusercontent.com/754039e2dfe298e39a6cb74c56f9c9191d53755a6df3f0c7033c998d938c0099/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796d666f6e792f73796d666f6e792e737667)](https://packagist.org/PaulaoDev/khan) [![Issues](https://camo.githubusercontent.com/fd00107112dc48f3218a7dd2e5a2c05033d56b0bb90a6b22bfaff57a3eb80e3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6261646765732f736869656c64732e737667)](https://github.com/PaulaoDev/khan/issues)

---

#### Readme in [English](https://github.com/PaulaoDev/khan/blob/master/resources/contributing/README-en.md)

[](#readme-in-english)

### Documentaçao

[](#documentaçao)

Uma documentação completa do sistema está disponível online [neste link](https://paulaodev.github.io/khan/resources/docs/).

- [Core do Projeto](https://github.com/PaulaoDev/khan-core)

### Requisitos de sistema

[](#requisitos-de-sistema)

- [PHP](http://php.net/downloads.php) &gt;= 7.1.
- MySQL &gt;= 5.0.
- [Composer](https://getcomposer.org/download/).

### Instalar

[](#instalar)

- Download [Zip](https://github.com/PaulaoDev/khan/archive/master.zip)

```
  # download zip
  $ git clone https://github.com/PaulaoDev/khan khan-project && cd khan-project && composer install

  # using cli khan
  $ php khan list

  # download usando cli khan
  $ php khan create khan-project && cd khan-project && composer install

  # instala dependencias e inicia o servidor
  $ composer install

  # so funciona em php 7
  $ php khan server

```

### Linha de comando

[](#linha-de-comando)

```
$ php khan list
```

### Novidades

[](#novidades)

[![LiveServer](https://camo.githubusercontent.com/1e52ee25cfab3f8b3b3c6a138a4140b9f72103045600f8a9dbdb5fe10e13a55d/68747470733a2f2f692e696d6775722e636f6d2f483447685050452e706e67)](https://camo.githubusercontent.com/1e52ee25cfab3f8b3b3c6a138a4140b9f72103045600f8a9dbdb5fe10e13a55d/68747470733a2f2f692e696d6775722e636f6d2f483447685050452e706e67)

```
# Iniciar o auto servidor
$ php khan live
```

### Contribuiçoes

[](#contribuiçoes)

- Envie relatórios de erros, sugestões e solicitações de upload para o [rastreador de problemas do GitHub](https://github.com/PaulaoDev/khan/issues).
- Leia o [arquivo](https://github.com/PaulaoDev/khan/blob/master/resources/contributing/CONTRIBUTING.md).

### Geradores

[](#geradores)

```
  # execute o comando no qual a estrutura está configurada

  # gera o sistema de login
  $ khan make auth

  # gera o sistema de chat
  $ khan make chat
```

### Sobre Khan

[](#sobre-khan)

Khan é um framework de aplicações web. Acreditamos que o desenvolvimento deve ser uma experiência boa e não cansativa para ser verdadeiramente produtivo. O Khan simplifica o desenvolvimento, facilitando tarefas comuns usadas na maioria dos projetos da web, incluindo:

- 🖥 [Khan CLI](https://github.com/PaulaoDev/khan-cli)
- 🏎 Rapida criação de API's
- 🤓 Sistema inteligente na criaçao de Controllers
- 🛣 [Mecanismo de rotas rápido de aprender e novas funcionalidades](https://github.com/PaulaoDev/khan-core/blob/master/src/Khan/Component/Router/src/Router/Router.php)
- 🛠 Componentes para utilizar ( Router, Stream, Container, Hooks )
- 📗 [Helpers para sua aplicação (Medoo PDO, Twig Engine View, Symfony, Carbon Date Manipulate)](https://github.com/PaulaoDev/khan-core/blob/master/composer.json)
- 💉 [Injeção de dependência rápida](https://github.com/PaulaoDev/khan-core/blob/master/src/Khan/Component/Container/ServiceContainer.php)
- ⚙ [Websockets](https://github.com/PaulaoDev/khan-core/blob/master/src/Khan/Component/Socket/Socket.php)

### Benchmarks

[](#benchmarks)

FrameworkRequisições por segundoVersão do FrameworkVersão do PHPKhan220.412.05.6Laravel66.575.65.6Symfony81.783.3.65.6---

FrameworkRequisições por segundoVersão do FrameworkVersão do PHPKhan3742.07.0Laravel114.555.67.0Symfony184.153.3.67.0### Atenção

[](#atenção)

Para que o sistema funcione 100% é necessário ter um Virtual Host configurado em seu localhost ou diretamente na pasta ROOT de uma hospedagem.

### Routes

[](#routes)

Configure rotas no arquivo **config/routes.php**

```
use App\Khan\Component\Router\Router;

Router\get('/home', function($req, $res){
     return "Home";
});
Router\post('/home', function($req, $res){
     return "Home";
});
Router\delete('/home', function($req, $res){
     return "Home";
});
Router\put('/home', function($req, $res){
     return "Home";
});
Router\patch('/home', function($req, $res){
     return "Home";
});
Router\temp('/home', function($req, $res){
     return "Home";
});
```

### Segurança

[](#segurança)

Relacionar todas as vulnerabilidades encontradas de maneira responsável e construtiva [Email](jskhanframework@gmail.com).

### Creditos

[](#creditos)

- [Twig](https://github.com/twigphp/Twig).
- [Medoo](https://github.com/catfan/Medoo).
- [Symfony](https://github.com/symfony/symfony).
- [PHP ML](https://github.com/php-ai/php-ml).
- [Carbon](https://github.com/briannesbitt/Carbon).

### Licença

[](#licença)

O Khan é licenciado sob a licença do MIT. Veja o [arquivo de licença](https://github.com/PaulaoDev/khan/blob/master/LICENSE) para mais informaçoes.

### Contato

[](#contato)

- [Facebook](https://fb.com/PauloRodriguesYT).
- [Whatsapp](https://bit.ly/whatsappdopaulo).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 92% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Total

6

Last Release

2807d ago

Major Versions

v0.0.1 → v1.12017-11-05

v1.0 → v2.02018-04-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/100ea02f7a3906284e98fde4c4c81a5c4a19c4ebebe964e517752b7daaf7d789?d=identicon)[PaulaoDev](/maintainers/PaulaoDev)

---

Top Contributors

[![paulooosrj](https://avatars.githubusercontent.com/u/29682878?v=4)](https://github.com/paulooosrj "paulooosrj (206 commits)")[![PaulaoDeveloper](https://avatars.githubusercontent.com/u/13473521?v=4)](https://github.com/PaulaoDeveloper "PaulaoDeveloper (17 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (1 commits)")

---

Tags

frameworkframework-phpphpphp-framework

### Embed Badge

![Health badge](/badges/paulao-dev-router-khan/health.svg)

```
[![Health](https://phpackages.com/badges/paulao-dev-router-khan/health.svg)](https://phpackages.com/packages/paulao-dev-router-khan)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
