PHPackages                             tidyphp/tidyphp - 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. tidyphp/tidyphp

ActiveLibrary

tidyphp/tidyphp
===============

A TidyPHP is a micro Framework for build fast and tidy web applications

1.1(4y ago)20562MITPHP

Since Oct 8Pushed 4y ago2 watchersCompare

[ Source](https://github.com/aminyasser/TidyPHP)[ Packagist](https://packagist.org/packages/tidyphp/tidyphp)[ RSS](/packages/tidyphp-tidyphp/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

 [![TidyPHP](public/assets/images/TidyPHP.png)](public/assets/images/TidyPHP.png)

[](#--)

***TidyPHP*** is a micro MVC PHP Framework made to understand how PHP Frameworks work behind the scense and build fast and tidy php web applications.

This framework made for learning prupose and may have some issues and still under development.

Getting Started
---------------

[](#getting-started)

Run this command from any directory to install new TidyPHP Application. Required PHP 7.4.7 or newer.

```
composer create-project tidyphp/tidyphp [app-name]
```

Replace `[app-name]` with your need directory name for your new application. and to run the application for development you must start from `public` path. or simply do this.

```
cd [app-name]
composer serve
```

Documentation
-------------

[](#documentation)

- [Configrations](#Configrations)
- [Routing](#Routing)
- [Controllers](#Controllers)
- [Views](#Views)
- [Validation](#Validation)
- [Database](#Database)
    - [Query Builder](#Query-Builder)
    - [Eloquent Model](#Eloquent-Model)

Configrations
-------------

[](#configrations)

using the power of `.env` file you can change your database informations. you can change app name or url.

`Note` url will be generated automaticlly without attach it to `.env` file.

```
APP_NAME=TidyPHP
URL = http://localhost:8080
DB_DRIVER=mysql
DB_DATABASE=tidy
DB_USERNAME=root
DB_PASSWORD=
DB_HOST=localhost
```

Routing
-------

[](#routing)

All the routes are defined in `routes/web.php` file. you can use two methods `get` or `post` . if you want to go `yoururl/profile` you can do one ot these ways.

```
