PHPackages                             betocampoy/champs\_framework - 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. betocampoy/champs\_framework

ActiveLibrary[Framework](/categories/framework)

betocampoy/champs\_framework
============================

PHP Framework that implemented main core functions (MVC, Route, Controller, Model, Authentication, Minification, ...)

0208PHP

Since Apr 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/betocampoy/champs_framework)[ Packagist](https://packagist.org/packages/betocampoy/champs_framework)[ RSS](/packages/betocampoy-champs-framework/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ChampsFramework
===============

[](#champsframework)

[![Maintainer](https://camo.githubusercontent.com/3f2646367a54841ede7e1243845ec9311ce999fc648a2f5d9aa5f4ee9f351f4e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d406265746f63616d706f7937382d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/betocampoy78)[![Source Code](https://camo.githubusercontent.com/427ede3e9407244cb6404befe9c8107c3a804fc5cad7bb306445e27e93234c3c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6265746f63616d706f792f6368616d70735f6672616d65776f726b2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/betocampoy/champs_framework)[![PHP from Packagist](https://camo.githubusercontent.com/886805755d0990530120568f182fa63fd997f882f7ec04728c5f7f496fa63c5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6265746f63616d706f792f6368616d70735f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/betocampoy/champs_framework)[![Latest Version](https://camo.githubusercontent.com/6948f9f302397dd932ff78c65cae20b0335e13f73fef84650c2736399f5b5278/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6265746f63616d706f792f6368616d70735f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/betocampoy/champs_sao/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/3decf1675b9d10013dab26f02a13d36a5f4daa9e7841cdc88337b03266e6124d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f6265746f63616d706f792f6368616d70735f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/betocampoy/champs_framework)[![Quality Score](https://camo.githubusercontent.com/b44832b22b98f9ed86b9dc4f3180697335a2ea65d6ae35fb5f76a686c9b85923/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6265746f63616d706f792f6368616d70735f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/betocampoy/champs_framework)[![Total Downloads](https://camo.githubusercontent.com/5522e29bd9522f3d3b3999812e6a9c61aa611b58358d3abe793da812aef07db7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265746f63616d706f792f6368616d70735f6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/betocampoy/champs_framework)

###### Champs Framework was developed by studying purposes only. DON'T USE IT IN PRODUCTION ENVIRONMENTS.

[](#champs-framework-was-developed-by-studying-purposes-only-dont-use-it-in-production-environments)

Champs Framework foi desenvolvido para fins de estudo e aprendizado. NÃO UTILIZE EM AMBIENTES DE PRODUÇÃO.

###### Main Resources \[Principais Recursos\].

[](#main-resources-principais-recursos)

- MVC architecture \[Arquitetura MVC\]
- Router layer with friendly URLs \[Camada Router com URLs amigáveis\]
- Model layer to simplify access to the MySql Database Server \[Camada Model, para simplicar o acesso ao banco de dados\]
- View layer using *league/plates* package \[Camada de View utilizando o pacote *league/plates*\]
- Controller Layer implements CSRF control and Inputs Validation (using *rakit/validation*package) \[Camada de controle, já implementado controle de CSRF, Validação de Inputs (utiliza o pacote \* rakit/validation\*)\]
- Message Object to standarize messages in all aplication \[Objeto Message para padronizar as mensagens em toda a aplicação\]
- Session Object to standarize session manipulation \[Objeto Session para padronizar a manipulação da sessão\]
- Authentication based in Users, Roles and Permissions \[Autenticação baseado em Usuarios, Perfis e Permissões\]

Installation \[Instalação\]
---------------------------

[](#installation-instalação)

ChampsFramework is available via Composer:

Example of a clean ***composer.json*** file.

```
{
    "authors": [
        {
            "name": "Creator Author Name",
            "email": "author@email.com",
            "homepage": "url.of.project",
            "role": "Developer"
        }
    ],
    "description": "Description of you project",
    "config": {"vendor-dir": "vendor"},
    "autoload": {
        "psr-4": {"Source\\": "Source/"}
    },
    "require": {
        "php": "^7.4",
        "betocampoy/champs_framework": "1.0.*"
    }
}
```

```
"betocampoy/champs_framework": "1.0.*"
```

or run

```
composer require betocampoy/champs_framework
```

Initial Configurations \[Configurações Iniciais\]
-------------------------------------------------

[](#initial-configurations-configurações-iniciais)

###### 1. Create ***.htaccess*** file in root project folder \[Criar o arquivo \*\*\*

[](#1-create-htaccess-file-in-root-project-folder-criar-o-arquivo-)

.htaccess\*\*\* no diretório raiz do projeto\]

***.htaccess*** file example \[Exemplo de arquvivo ***.htaccess***\]

```
RewriteEngine On
Options All -Indexes

## ROUTER WWW Redirect.
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

## ROUTER HTTPS Redirect
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ROUTER URL Rewrite
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=/$1 [L,QSA]
```

###### 2. Create ***index.php*** file in root project folder \[Criar o arquivo \*\*\*

[](#2-create-indexphp-file-in-root-project-folder-criar-o-arquivo-)

index.php\*\*\* no diretório raiz do projeto\]

***index.php*** file example \[Exemplo de arquivo ***index.php***\]

```
namespace("Source\App");

/**
 * EXAMPLE THEME ROUTES
 */
$route->group(null);
$route->get("/", "WebExample:home");
$route->get("/terms", "WebExample:terms");
$route->get("/contact", "WebExample:contact");

/**
 * CREATE YOUR CUSTOM ROUTES BELOW
 */

/**
 * CREATE YOUR CUSTOM ROUTES ABOVE
 */

/**
 * ROUTE DISPATCH
 */
$route->dispatch();

/**
 * ERROR REDIRECT
 */
if ($route->error()) {
    $route->redirect( $route->route("default.error", ["errcode" => $route->error()]));
}

ob_end_flush();
```

Documentation \[Documentação\]
------------------------------

[](#documentation-documentação)

###### To open Champs Framework documentation, access the route **/champs-docs**.

[](#to-open-champs-framework-documentation-access-the-route-champs-docs)

Para abrir a documentação do Champs Framework, acesse a rota **/champs-docs**.

Contributing \[Contribuições\]
------------------------------

[](#contributing-contribuições)

Please see [CONTRIBUTING](https://github.com/betocampoy/champs_framework/blob/master/CONTRIBUTING.md) for details.

Pro favor, veja [CONTRIBUTING](https://github.com/betocampoy/champs_framework/blob/master/CONTRIBUTING.md) para mais detalhes.

Support \[Suporte\]
-------------------

[](#support-suporte)

###### Security: If you discover any security related issues, please email  instead of using the issue tracker.

[](#security-if-you-discover-any-security-related-issues-please-email-betocampoygmailcom-instead-of-using-the-issue-tracker)

Se você descobrir algum problema relacionado à segurança, envie um e-mail para  em vez de usar o rastreador de problemas.

Thank you \[Obrigado\]

Credits
-------

[](#credits)

- [Beto Campoy](https://github.com/betocampoy) (Developer)
- [All Contributors](https://github.com/betocampoy/champs_framework/contributors) (This Rock)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/betocampoy/champs_framework/blob/master/LICENSE) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f716b40e59d9e04a7a6ce607fb14866a53a5160e31456676ec379f25e324e58b?d=identicon)[betocampoy](/maintainers/betocampoy)

---

Top Contributors

[![betocampoy](https://avatars.githubusercontent.com/u/85419774?v=4)](https://github.com/betocampoy "betocampoy (240 commits)")

### Embed Badge

![Health badge](/badges/betocampoy-champs-framework/health.svg)

```
[![Health](https://phpackages.com/badges/betocampoy-champs-framework/health.svg)](https://phpackages.com/packages/betocampoy-champs-framework)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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