Skip to content
/ php-project Public template

This is the simplest template you need to start your php project, it comes with zero dependencies, and a simple file structure. The intent is to be the bare-minimum to start a php project.

License

Notifications You must be signed in to change notification settings

simple-first/php-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-First/PHP-Project

Introduction

Welcome to simple-first/php-project. This repository aims to be the simplest and fastest way to set up a PHP project. It comes with the bare minimum code to get you started. This is a part of the Simple-First initiative, which is fully open-source.

Prerequisites

  • Docker
  • Docker-Compose
  • Composer

Setup

# 1. Create the project
composer create-project simple-first/php-project my-project --ignore-platform-reqs

# 2. Navigate to the project folder.
cd my-project

# 3. Start the Docker services.
docker-compose up -d

# 4. Open your browser and go to `localhost`.

You should see the Welcome message.

Folder Structure

  • public/: Web entry
  • src/: Your PHP source files

Tech Stack

  • PHP 8.2
  • Docker

Configuration

Docker-Compose

The docker-compose.yml file contains the Docker services configurations.

Composer

The composer.json file has project's autoload and dev dependencies.

Contributing

Feel free to contribute and make this even simpler. Open a pull request or an issue.

License

This project is licensed under the MIT License. This means you can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software.

For the full license text, please see the LICENSE file in the repository.

About

This is the simplest template you need to start your php project, it comes with zero dependencies, and a simple file structure. The intent is to be the bare-minimum to start a php project.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published