/php-project

Primary LanguageJavaScript

El-La3eeb!

Introduction

This is a simple PHP-based football blog. Our website is roles driven providing different level of access to different user groups. We have two main roles, admins and editors, each of which is assigned different permissions to create, read, and delete articles on system.

Demo 📺

Website Demo Video

Installation

git clone https://github.com/asmaagamal871/php-project

Database creation

  • create database
  • import php_project.sql
  • create config.php
<?php

define("_HOST_", localhost);
define("_USER_", database_username);
define("_PASS_", database_password);
define("_DB_", "database_name);
define("__RECORDS_PER_PAGE__", 10);
define("_PORT_", port_number);
define("__LOG__FILE__", 'error.log');
composer install
composer dump-autoload

Run project

cd public
php -S localhost:9000

Features

  • User authentication and Remember me option.
  • User profile.
  • Role-based access control.
  • Article creation, reading and deletion.
  • User creation, editting, reading and deletion.
  • Group creation, editting, reading and deletion.
  • Object soft delete.
  • Search and filtering.
  • Pagination of all listings.
  • Responsive design for mobile and desktop devices.
  • Chart statistics and analysis.
  • Error and exception logging

Technologies

  • PHP
  • MySQL
  • JS
  • Bootstrap
  • CSS
  • HTML

Packages

Roles

Role Permission
Admin Full access
Editor Full access on articles - View Groups
User Create and view their own articles

Authors