GithubHelp home page GithubHelp logo

meline-p / blog_php Goto Github PK

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

Blog in PHP with MVC Architecture

PHP 95.49% Hack 1.80% CSS 2.71%
architecture autoloader class database entity mvc namespace php phpcsfixer phpdocumentor

blog_php's Introduction

Blog PHP

Welcome to my PHP blog!


Installation

Download the ZIP from Github or clone the project :

git clone "https://github.com/meline-p/blog_php"

Composer

Install all components by running the following command:

composer install

Database

Import the provided SQL file from the /database/blog_php.sql directory.

Change the environment variables DB_USERNAME, DB_PASSWORD and DB_UNIX_SOCKET according to your SQL configuration in the .env file.

MailDev

MailDev installation : https://github.com/maildev/maildev

Install MailDev with npm :

npm install -g maildev

Usage

Terminal 1 : Launch the website

php -S localhost:8080 -t public

Access the site at http://localhost:8080/.

Terminal 2 : Launch MailDev

maildev

Access the MailDev interface at http://localhost:1080/.


Documentation

To generate documentation, use phpDocumentor. You can download the latest PHAR file from https://phpdoc.org/phpDocumentor.phar and put it at the root of the project. Execute this command:

php phpDocumentor.phar run -d ./src -t docs/

Access the generated documentation in the docs/index.html directory. Launch Go Live on Visual Studio Code and access the online documentation in the docs directory.

blog_php's People

Contributors

meline-p avatar

Watchers

 avatar

blog_php's Issues

CSRF

Implementation of csrf_token to protect against CSRF attacks.

Use MailDev

Use MailDev to receive messages from the contact form

Namespaces & POO

Creation of namespaces, updating the router and views. Updating entities with fromSql, init, update, delete, and restore functions

Security

  • user logins
  • security of data received from users
  • password hashing for the database
  • pre-insertion checks for user information in the database

Create the page displaying a post

  • title
  • the chapo
  • the content
  • the author
  • last modified date
  • form to add comments (submitted for validation)
  • list of validated and published comments

Dashboard

Improvement of the dashboard :

  • Displaying the number of published, draft post, etc. (for users, and also for comments.)
  • Creating an information alert if there are pending comments
  • Responsive Admin section

Create the home page

  • last name
  • first name
  • photo and/or logo
  • catch phrase
  • menu
  • link to the resume in PDF format
  • social networks
  • in the footer: link to access the admin page

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.