edgardnogueira/php-exercises

v1.0.0 2023-03-31 12:26 UTC

This package is not auto-updated.

Last update: 2024-06-08 18:33:13 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

  1. Clone the GitHub repository:
git clone https://github.com/edgardnogueira/php-exercises.git
  1. Change to the project directory:
cd php-exercises
  1. Install the dependencies using Composer:
composer install

Option 2: Install using Composer

  1. Install the project using Composer:
composer create-project edgardnogueira/php-exercises
  1. Change to the project directory:
cd php-exercises

Configuration

  1. Copy the .env_example file to a new file called .env:
cp .env_example .env
  1. Update the .env file with the appropriate configuration values for your environment.

  2. 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.