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

AbandonedArchivedProject[Framework](/categories/framework)

phpslides/phpslides
===================

The skeleton application for the PhpSlides framework.

v1.4.4(1y ago)6363MITPHPPHP ^8.2

Since Dec 10Pushed 1y agoCompare

[ Source](https://github.com/PhpSlides/phpslides)[ Packagist](https://packagist.org/packages/phpslides/phpslides)[ Docs](https://github.com/PhpSlides)[ Fund](https://www.buymeacoffee.com/dconco)[ Fund](https://ko-fi.com/dconco)[ RSS](/packages/phpslides-phpslides/feed)WikiDiscussions master Synced 1mo ago

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

PhpSlides
=========

[](#phpslides)

[![Tests Workflow](https://github.com/phpslides/framework/workflows/Tests/badge.svg)](https://github.com/PhpSlides/framework/actions)[![Release Workflow](https://github.com/phpslides/framework/workflows/Release/badge.svg)](https://github.com/PhpSlides/framework/actions)

[![Total Downloads](https://camo.githubusercontent.com/20cd85ba075d71d364c44a7b6e7f12973eb2892f4c341fbcb79ff6ebfa6c7489/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706870736c696465732f6672616d65776f726b)](https://packagist.org/packages/phpslides/framework)[![Latest Stable Version](https://camo.githubusercontent.com/74c3758339fc136db955baef096e36038f9fafa0aa8416c805654a5889664dfc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706870736c696465732f6672616d65776f726b)](https://packagist.org/packages/phpslides/framework)[![License](https://camo.githubusercontent.com/d49428ee5240334a7e4e47e72e1efa9ce49789147beef2c7d97ae0ac1dd5e641/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706870736c696465732f6672616d65776f726b)](https://packagist.org/packages/phpslides/framework)

Welcome to PhpSlides!

This framework is a PHP revolution, designed to provide a simple and scalable structure for developing full-stack web applications using the Model-View-Controller (MVC) architectural pattern.

With PhpSlides, you can write HTML, CSS, and JavaScript in a PHP-like way, streamlining the development process and enhancing productivity.

Table of Contents
-----------------

[](#table-of-contents)

- [PhpSlides](#phpslides)
    - [Table of Contents](#table-of-contents)
    - [Introduction](#introduction)
    - [Features](#features)
    - [Requirements](#requirements)
    - [Installation](#installation)
        - [Install with Composer](#install-with-composer)
        - [Or Clone the Repository](#or-clone-the-repository)
    - [Configuration](#configuration)
        - [.env](#env)
        - [config.json](#configjson)
    - [Syntax](#syntax)
        - [Creating Web Layouts](#creating-web-layouts)
        - [Styling Web Layouts](#styling-web-layouts)
        - [Creating Web Routes](#creating-web-routes)
        - [Creating API Routes](#creating-api-routes)
    - [Directory Structure](#directory-structure)
    - [Documentation](#documentation)
    - [Contributing](#contributing)
    - [License](#license)
    - [Financial Support](#financial-support)

Introduction
------------

[](#introduction)

PhpSlides is a lightweight, easy-to-use full-stack framework that helps you build web applications quickly and efficiently. It follows the MVC architectural pattern, separating the application logic into models, views, and controllers to promote code organization and reusability.

Additionally, it provides the capability to write HTML, CSS, and JavaScript in a PHP-like way, making it easier to manage and maintain your front-end and back-end code together.

Features
--------

[](#features)

- **Full-Stack Development**: Seamlessly integrate front-end and back-end development by writing HTML, CSS, and JavaScript in a PHP-like syntax.
- **Simple Routing**: Easily define routes and map them to controllers and actions.
- **Modular Structure**: Organized directory structure for models, views, controllers, and other components.
- **Database Forgery**: A unique feature that allows you to manage your databases and tables using a structured directory format, automatically generating and managing schema migrations based on directory and file structures.
- **AuthGuard Support**: Add authorization guard to handle authentication, logging, and other tasks.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Composer
- A web server (e.g., Apache, Nginx)

Installation
------------

[](#installation)

### Install with Composer

[](#install-with-composer)

```
composer create-project phpslides/phpslides ProjectName
cd ProjectName
```

### Or Clone the Repository

[](#or-clone-the-repository)

1. **Clone the repository:**

    ```
    git clone https://github.com/phpslides/phpslides.git
    cd phpslides
    ```
2. **Install dependencies:**

    ```
    composer install
    ```
3. **Set up the web server:**

    Point your web server to the document root.
4. **Configure the environment:**

    If the .env file does not exist, copy the env example configuration file and update it with your settings:

    ```
    cp .env.example .env
    ```

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

[](#configuration)

### .env

[](#env)

Edit the .env file to configure database settings, application settings, and other configurations.

```
APP_NAME=PhpSlides
APP_VERSION=1.4.x
APP_DEBUG=true
APP_ENV=local
```

### config.json

[](#configjson)

Which handles the behavior of a viewing files on the web

```
{
 "deny": ["/assets/*.png"],
 "message": {
  "contents": "403 | Forbidden",
  "components": "Errors::403",
  "content-type": "text/html",
  "http_code": 403
 },
 "charset": "UTF-8"
}
```

Syntax
------

[](#syntax)

### Creating Web Layouts

[](#creating-web-layouts)

```
