Skip to content

fatfingers23/Modern-Replit-PHP-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Super simple boiler code for PHP projects on Replit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published