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.
git clone https://github.com/asmaagamal871/php-project
- 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
cd public
php -S localhost:9000
- 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
- PHP
- MySQL
- JS
- Bootstrap
- CSS
- HTML
Role | Permission |
---|---|
Admin | Full access |
Editor | Full access on articles - View Groups |
User | Create and view their own articles |