PHPackages                             anzeblabla/simplite - 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. anzeblabla/simplite

ActiveLibrary[Framework](/categories/framework)

anzeblabla/simplite
===================

A very simple and light PHP framework.

0.5(1y ago)0103GPL-3.0-or-laterPHPPHP &gt;=8.1.0

Since Dec 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AnzeBlaBla/PHP-Simplite)[ Packagist](https://packagist.org/packages/anzeblabla/simplite)[ RSS](/packages/anzeblabla-simplite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

PHP Framework
=============

[](#php-framework)

This is a very simple PHP framework to make implementig PHP websites easier and faster.

Functionality
-------------

[](#functionality)

TODO: write

Todo
----

[](#todo)

- Write better documentation
- Write tests
- Redo how GET and POST parameters are handled
- Router is inconsistent with trailing slash (css and js includes break) - it should redirect to always have trailing slash
- Problem if using COMPONENT\_ID when replacing some component with a chunk, ID could duplicate
- Problem where page is rendered before layout. Could potentially result in vulns or errors where user is used before it's checked if user is logged in at all.
- Autoloader
- Table comments

Publishing
----------

[](#publishing)

Example of use
--------------

[](#example-of-use)

`composer require anzeblabla/simplite`

Folder structure:

```
app/
    pages/
        index.php
        users/
            [id]/
                index.php // user profile
            index.php // list of users
    components/ # reusable components (\AnzeBlaBla\Simplite\Renderer::component($componentName))
        header.php
        footer.php
    models/ # Database models, inheriting from \AnzeBlaBla\Simplite\ModelBase
        User.php

index.php

```

index.php:

```
