Skip to content

Latest commit

 

History

History
67 lines (39 loc) · 1.42 KB

README.md

File metadata and controls

67 lines (39 loc) · 1.42 KB

php_micro_framework 🐘

In this project, I aim to use clean code principles to build a micro-framework.

Table of Contents

  1. Introduction
  2. Setup
  3. Usage
  4. Commands
  5. License
  6. Contact

Introduction

This micro-framework is designed to provide a simple, clean, and efficient foundation for building PHP applications. It adheres to clean code principles to ensure maintainability and readability.

Setup

Prerequisites

Ensure you have PHP installed on your machine.

Getting Started

  1. Clone the repository:

    git clone https://github.com/yourusername/php_micro_framework.git
  2. Navigate into the project directory:

    cd php_micro_framework
  3. Install dependencies:

    If you have any dependencies, install them as needed. This may include Composer for PHP libraries or other tools.

  4. Set up environment variables:

    Create a .env file in the root directory based on .env.example and configure your settings.

Usage

Create index.php

First, make sure to create the index.php file in the public directory. This file will serve as the entry point for your application.

Running the Server

To start the built-in PHP server, run:

php -S localhost:8080 -t public

Running the migration

To migrate your tables:

php migrate.php migrate