GithubHelp home page GithubHelp logo

rob-ec / aluraplay-simple-php Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.74 MB

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: MIT License

PHP 85.40% CSS 12.31% Hack 2.30%
basic-security composer crud login-system php8 sqlite web

aluraplay-simple-php's Introduction

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

aluraplay-simple-php's People

Contributors

rob-ec avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.