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.
- intelephense as a language server for code intelligence inside of Replit.
- Composer for package manager.
- Pest for unit tests.
- HTML template with tailwindcss and daisyui included.
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 filesindex.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 test
- Run this in the shell to run your Pest tests.
- Open your Replit shell.
- Type in
composer install
and pressenter
. This installs the composer packages needed to make the application run.