Skip to content

This project is the result of the PHP training at Alura, where topics related to language security and functionality were covered. The project includes the implementation of sessions for login, secure password handling, file uploads with security measures, and the use of APIs for accessing new routes and searching for videos in JSON format.

License

Notifications You must be signed in to change notification settings

rob-ec/aluraplay-simple-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Final Project: PHP on the Web - Security and APIs

PHP 8.3.4 Composer 2.7.2

Description

This project is the result of the PHP training at Alura, where topics related to language security and functionality were covered. The project includes the implementation of sessions for login, secure password handling, file uploads with security measures, and the use of APIs for accessing new routes and searching for videos in JSON format.

Features

  • Login system with sessions
  • Secure password handling
  • File uploads with security measures
  • Use of APIs for accessing new routes and searching for videos in JSON format

How to Run

Warning: This application is designed for learning purposes. Therefore, some features are not completely finished. The database folder contains some "helper" files that are designed to test certain features and facilitate others.

  1. Clone the repository
  2. Set .env
  3. Prepare Database
  4. Set up a local PHP server or use a hosting service
  5. Create a User
  6. Run the application and access the login functionality by trying to edit or create some video

Set .env

Run

cp .env.example .env

Then edit the created file

Prepare Database

Create database:

php database/create-db.php

Seeding:

php database/seed-videos.php

Creating a User

To create a user, you can run:

php database/insert-users.php your_email your_password

Replace your_email with your user email and your_password with your user password.

Contribution

Feel free to contribute with suggestions, improvements, or fixes. Just fork the repository, implement the changes, and send a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for more details.

Demo

Dashboard

About

This project is the result of the PHP training at Alura, where topics related to language security and functionality were covered. The project includes the implementation of sessions for login, secure password handling, file uploads with security measures, and the use of APIs for accessing new routes and searching for videos in JSON format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published