edgardnogueira / php-exercises
PHP exercises
v1.0.0
2023-03-31 12:26 UTC
Requires
- php: >=8.1
- exads/ab-test-data: ^1.0
- vlucas/phpdotenv: ^5.5
Requires (Dev)
- phpunit/phpunit: ^10.0
This package is not auto-updated.
Last update: 2025-04-12 23:03:42 UTC
README
A collection of PHP exercises.
Requirements
- PHP >= 8.1
- exads/ab-test-data ^1.0
- vlucas/phpdotenv ^5.5
Installation
Option 1: Clone the GitHub repository
- Clone the GitHub repository:
git clone https://github.com/edgardnogueira/php-exercises.git
- Change to the project directory:
cd php-exercises
- Install the dependencies using Composer:
composer install
Option 2: Install using Composer
- Install the project using Composer:
composer create-project edgardnogueira/php-exercises
- Change to the project directory:
cd php-exercises
Configuration
- Copy the
.env_example
file to a new file called.env
:
cp .env_example .env
-
Update the
.env
file with the appropriate configuration values for your environment. -
Import the
database/database.sql
file into your database.
Usage
To run the exercises, use a web server like Apache or Nginx to serve the public
directory of the project.
For example, if you have PHP's built-in web server installed, you can use the following command to serve the public
directory on port 8000:
php -S localhost:8000 -t public
Then, open a web browser and navigate to http://localhost:8000
to access the exercises.
License
This project is licensed under the MIT License. Simply copy and paste the content inside the
tags into your README.md file.