Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.61 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.61 KB

Modern PHP Template For Repl.it

Run on Repl.it

This is a super simple PHP template to help you bootstrap your PHP projects on Repl.it. It is a bare-bones template with a few examples to help you get going. Can find the source code on GitHub.

Features

Layout

  • app - This is where the logic of your application lives. The files are divided into classes like any other OOP language.
    • HelloWorld.php - This is just a simple PHP class demonstrating PHP classes.
  • public - This holds any public accessible PHP files
    • index.php - Entrypoint for the web app showing how to instantiate a class and use its method and showing how PHP and HTML work together. Styled with tailwindcss and daisyui.
    • tests - This folder holds any tests you make for the project using Pest.

Composer scripts

composer test - Run this in the shell to run your Pest tests.

Setup

  1. Open your Replit shell.
  2. Type in composer install and press enter. This installs the composer packages needed to make the application run.