Skip to content

in this project i want to use the clean code principles to make the micro framework

Notifications You must be signed in to change notification settings

mojtabaabedi81/php_micro_frame_work

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

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

About

in this project i want to use the clean code principles to make the micro framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published