• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    PHP
  • License
    GNU Lesser Genera...
  • Created almost 10 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ”ฅ Simple PHP blog system application based on the MVC pattern and written in PHP 5.5. This project can be used as a Base MVC "framework" to start your PHP project easily under good development patterns and good development practice and organization.

Simple PHP MVC Blog System

Description

This PHP Blog System has an MVC pattern, uses Traits (PHP 5.4), Namespace (PHP 5.3), Singleton pattern, PDO (PHP 5.1) and the new PHP Password Hashing feature (PHP 5.5).

The project was a PHP Challenge Project I have done.

Why this MVC Blog System can be very Useful for You?

If you need to code a simple website under a Professional and very nice/clean code (as I really enjoy doing), this script will be very useful in order to start on good basis and save time and money.

However, if you need to build a blog system, again this project can be used as a framework to start your project easily under a good development pattern and good development practice and organization.

Requirements that were Requested for the Project

Requirements

  • The project should be written in object-oriented PHP targeting version 5.5 or higher
  • It should be all self-written, no existing frameworks or libraries
  • It should have good security (e.g., hashed passwords, protect against SQL injection, shouldn't have any error when we try to change URL query strings or to hack it, etc)
  • Should use a MySQL database to store admin account and article data

Specification

Build a simple blog with the following functionalities

The Frontend

  • List of blog articles showing the title, body truncated to 100 characters, and date. It should show only the latest 5 articles
  • Single blog article showing the title, full body, and the date

The Backend

  • List of all the blog articles
  • Possibility to add a new blog article with a title and body. The title should allow a maximum of 50 characters
  • Possibility to edit an existing blog article
  • Possibility to delete an article
  • Logout feature for the admin user

HTML and CSS code should be kept to the minimum needed to make the website functional โ€“ This project is purely to assess how you approach the problem and not how good it looks.

Server Requirements of the Web App

  • Application Server PHP 5.5.0 or higher.

  • PHP Extension mbstring

  • Database MySQL/MariaDB 5 or higher.

The Author

Pierre-Henry Soria

Contact the Author

By email at: phy [AT] hizup [D0T] uk

License

This blog system (PHP script) is under Lesser General Public License (LGPL); See the LICENSE.txt file for more information.

More Repositories

1

Obfuscator-Class

๐Ÿ‘จโ€๐Ÿ’ป Simple and effective Obfuscator PHP class (this is not a stupid base64 encoding script, but a real and effective obfuscation script)
PHP
363
star
2

Simple-Java-Calculator

๐Ÿ”ข Simple calculator is written in Java with Eclipse. This calculator is simple with an easy code to help novices learn how to operate a calculator.
Java
194
star
3

Simple-Java-Text-Editor

๐Ÿ“ PHNotepad is a simple Java text/code editor (notepad) written in Java. It has also nice features such as Search tool, Find/Replace text/code, Auto-completion, Nice Image Buttons for better UX, etc.
Java
159
star
4

QRCode-Generator-PHP-Class

๐Ÿš€ QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
PHP
98
star
5

eu-vat-validator

๐Ÿ’ฐ A simple and clean PHP library that validates EU VAT registration numbers against the central ec.europa.eu database (using the official europa API) ๐Ÿ‡ช๐Ÿ‡บ
PHP
93
star
6

Crawling-Emails

Very simple bash script to crawl email addresses from a specific website.
Shell
33
star
7

H2OGame

๐Ÿ™‰ PHP Arcade Game Script. Create your own online Arcade Game platform with rating system, categories, full HTML5 design, full admin panel, pages management, advertising management, and much more --- H2OGame was a commercial script (which was sold for ยฃ27 per license). Now, it is released as a FREE (and still Open Source) software and under an Open Source license!
PHP
27
star
8

GoodJsCode

GoodJsCodeโ„ข guidebook. Learn the best coding practices and standards for clean, efficient and quality JavaScript code that lasts long! ๐Ÿ’ช
22
star
9

Emails-Scraper

๐Ÿ Simple PHP Email Grabber to get emails from a txt file containing the list of urls (add one url per line).
PHP
22
star
10

SimpleJspWebsite

โ™ ๏ธ This is a simple example of the JSP Java Website.
JavaScript
20
star
11

simple-podcast-generator

๐Ÿ‘‰ A simple way to host your podcast files and generate a RSS podcast feed on the fly ๐ŸŽ™
PHP
16
star
12

Flappy-Canary

๐Ÿฆ"Flappy Canary Bird App"๐Ÿค is a very simple iOS "Happy Bird" clone app built with Swift 4.
Swift
15
star
13

Slim-URL-Shortener

URL Shortener - PHP : |Slim Framework + Twig + Paris & Idiorm| Application to shorten your long URLs
PHP
14
star
14

Link2Payment

๐Ÿ’ต Link2Payment allows anyone to get paid anywhere from anyone with their Stripe account. Thanks Link2Payment, you don't need a website, you don't need a SSL certificate, you can literally be paid from anywhere (even by just putting your unique payment link on a paper book) while taking all advantages of Stripe service.
PHP
13
star
15

Simple-iPhome-Swift-NotePad

๐Ÿ“ฑ "pH Simple NotePad" is a very basic and clear Swift notepad app for iPhone, iOS 8/9 and so on.
Swift
12
star
16

fake-admin-honeypot-V1.1

๐Ÿฏ New Honeypot Version: 1.2! ๐Ÿ This pH7CMS module is a simple but effective honeypot fake Admin CP for the security of your website. Honeypot for the attackers!
PHP
12
star
17

What-Is-Your-IP-Address-V2.0

๐Ÿ‘€ "What's Your IP Address?" Web script ๐Ÿ” This Python CGI Website displayed the public IP address of a user like many similar sites do. This web app has a geolocalization map and many customizable options available in a config INI file. Finally, This "What is My IP" Site Clone is Codded in Python. Please feel free to contribute if you wish...
Python
12
star
18

CompaniesLookup

๐Ÿข Simple and fast tool to find companies from Companies House database (with their Company Number or Company Name).
PHP
11
star
19

PHP5.4-Session-Upload-Progress-Bar

๐Ÿฌ Tutorial - PHP 5.4 Session Upload Progress Bar
PHP
11
star
20

JustHttpStatusCodes

The Simplest & Cleanest HTTP Status Codes for PHP. All PHP HTTP Status Codes are stored into beautiful constant names ๐ŸŽจ Ideal when you develop an API that involves various HTTP codes ๐Ÿš€
PHP
11
star
21

pH7Client

:bowtie: pH7Client is a PHP Web client class that simulates a Web browser (like a Web Driver) for retrieving webpage content, login to websites and posting forms and makes them on autopilot. With pH7Client, create rules on cron to automate almost all Web routines. It is a bit like FirefoxDriver Selenium.
PHP
11
star
22

github-readme-generator-cli

๐Ÿ“„ A PHP README File Generator, to generate easily beautiful (and SEO-friendly) GitHub README files on the fly ๐ŸŽ‰
PHP
11
star
23

cool-readme-generator

๐Ÿฆฉ The way I generate easily my README file for my projects ๐Ÿ“„ An efficient & elegant generator for creating beautiful and SEO-optimized `readme.md` files.
JavaScript
10
star
24

pH4Marketplace

๐Ÿฐ pH4Marketplace is a Fiverr Clone marketplace website build with Django (and Bootstrap for the frontend)
HTML
10
star
25

php-restful-api

๐Ÿค– Source code of my Udemy course where I teach how to build a real-world RESTful API with PHP 8.2 from scratch ๐Ÿ˜
PHP
10
star
26

passcode-password-generator

๐Ÿค— A simple, secure & efficient way to generate passcodes and passwords for your PHP application ๐Ÿ”
PHP
10
star
27

Html2Text

A very simple (but efficient) "HTML to plain text" converter โœ๏ธ
PHP
9
star
28

pHOServer

๐Ÿ  Simple and lite Dev HTTP server made with Node.js that doesn't require any configuration.
JavaScript
9
star
29

ProjectU-react-client

A simple and elegant client built for my Udemy course available at: https://www.udemy.com/course/build-backend-api-node-js-and-react-frontend/
JavaScript
9
star
30

PhoneDetector

๐Ÿ“ฑ Detect the user mobile phone (Android or iOS) based on their device's OS
PHP
9
star
31

ProjectU-simple-clean-nodeJS-API

A simple clean REST API built with NodeJS, express with a n-tier architecture (organized into layers). My Udemy course explaining how to build it is available at: https://www.udemy.com/course/build-backend-api-node-js-and-react-frontend/
JavaScript
9
star
32

MyDreamLife.eu

๐ŸŒ ๐ŸŒ‹ MyDreamLife gives a TODO-list and Itinerary for your NEW LIFE. It is designed for European people from 18 to 30 (mainly from Spain, France, Netherlands, Belgium, Germany and Italy) who want to move and try a new life abroad but don't know the process (how) to do it ๐Ÿ‡ช๐Ÿ‡บ
PHP
9
star
33

dating-affiliate-tools

DAT is a Useful and Powerful affiliate tools to increase/boost easily your Affiliate Programs โค๏ธ
PHP
8
star
34

Simple-PH-DIC

๐ŸŒˆ PH's DIC is a Simple PHP 7.1+ Dependency Injection Container (DIC) Library
PHP
8
star
35

BBCode-Markdown-PHP-Parser

Parser for BBCode and Markdown Markup Language. Interpretation for two markup languages, BBCode and Markup with support of HTML5
PHP
8
star
36

PHP-Emoticon-Parser

An emoticon parser based on some classes of my next framework
PHP
7
star
37

pH2Gravatar

An easy and elegant way to generate gravatars with PHP ๐Ÿ–ผ
PHP
7
star
38

Heloise

๐Ÿ“• Hรฉloรฏse is a simple Blog system with comments and RSS feed. Written on Laravel 5.6, PaperCSS and VueJS ๐Ÿ—ž
PHP
7
star
39

RESTful-API-TDD-book

๐Ÿ“– A simple and clear book that explains you how to build a RESTful API with PHP 7.2 and TDD.
CSS
7
star
40

NotAllowed

๐Ÿšซ NotAllowed ๐Ÿšซ =>A lightweight library that helps you to censor words, profane words, banned IPs, banned bank accounts, etc.
PHP
7
star
41

CookieSession

๐Ÿช CookieSession is a light PHP 7 library to manage very easily and simply Session and Cookie and without spending time by configure and secure PHP cookie and session ๐Ÿญ
PHP
7
star
42

Image-Unsplash

๐Ÿ–ผ๏ธ Get easily any Unsplash images with a clean PHP class. It's a really lightweight class that helps to get easily any images from Unsplash.com while keeping your project clean.
PHP
7
star
43

Free-Text-Search

This full-text search allows users to search real estate properties (present in Daft.ie) by just speaking or typing what their want. The engine will then parse and translate the words and return the correct data.
PHP
7
star
44

sapphire

Sapphire, an amazing, great API application ๐Ÿ’Ž
PHP
6
star
45

DeliciousThings2Home-API

๐Ÿ˜‹ "DeliciousThings2Home" is a food delivery service for desserts ๐Ÿฐ & biscuits ๐Ÿซ ... yummmmm!. This repo contains the RESTful API.
Python
6
star
46

php-http-header-response

A simple package to send HTTP header responses โœจ
PHP
6
star
47

GoYa

This is a simple but powerful programming language. This is my first programming language with an interpreter built in C++. ATTENTION, language is under development and is not stable! If you want to contribute to this project and improve it, please contact me and add your changes via GitHub
C++
6
star
48

Learning-FAST-for-Devs

๐ŸŒŸ The "Learning F.A.S.T. for Devsโ„ข" A methodology based on the 80/20 rule and the Deep Work, that gives the perfect toolkit for developers to learn new skills or a programming language 3 times more efficient and faster, allowing them to start straight away, in a matter of days, the development of a new complex, modern and scalable software ๐Ÿš€
6
star
49

GetMeALatte

Full PHP/MySQL Web application - GetMeALatteLike (formerly BuyMeACoffeeClone). My Udemy course explaining how to build it is available at: https://www.udemy.com/course/create-real-world-php-webapp-from-scratch/
PHP
6
star
50

pH7Ortfolio

My Simple Portfolio website built with MeteorJs and Bootstrap.
HTML
5
star
51

Useful-PHP-Functions-V2

Useful PHP Functions version 2
PHP
5
star
52

PHP-type-names

๐Ÿ‘‰ "PHP type names" contains the list of constants for all PHP data types, to avoid hardcoding them ๐Ÿ‘Œ
PHP
5
star
53

minimalist-sales-site

๐Ÿ‘‰ A minimalist sales e-commerce site ๐ŸŽ‰ Built with PHP 8, Mustache and Bootstrap v5
PHP
5
star
54

pHNavigo

:shipit: pHNavigo is a Web/Internet Browser Software using C++ and QT library ๐ŸŒŽ Open source application and compatible on Linux and Windows. Package for Debian ready. Feel free to compile the Web browser on your machine and use/try it!
C++
5
star
55

CuteLinkNames

A simple class that converts your URLs to link names ๐ŸŽฏ
PHP
5
star
56

Nav-Doc-Script-V2

๐Ÿ“š Nav Doc V2 is the new version of the little script using simple PHP functions that lets you easily create beautiful multilingual documentation for your software, lets you add some documentation files very easily and highlighting programming code. It has also full Ajax navigation (can be disable by removing the AjPH JS/CSS files)
CSS
5
star
57

URL-Shortener

URL Shortener - Django Python Application to shorten your long URLs
Python
5
star
58

ProjectNinja

:octocat: ProjectNinja helps busy devs to get their projects famous & credible
HTML
5
star
59

PeachLang

๐Ÿ‘ PeachLangโ„ข is a simple interpreted language done with Ruby using Racc (the Ruby version of Yacc/Bison). The language has been made thanks to MACournoyer's book http://01script.com/comment-creer-son-langage-de-programmation/
Ruby
5
star
60

Disable-Copying-JS

This code can protect your content against copying a very effective way. See the demo for the example code
JavaScript
5
star
61

H2OTpl

๐Ÿ˜ The simplest and best way to separate your HTML (template) code from your PHP code while coding in PHP. H2OTpl is an easy, fast and secure PHP template engine including a cache system
PHP
5
star
62

XSLT-PHP-Template-Engine

Simple but effective and powerful PHP XSLT template engine running PHP with XSLT. With XSLT syntax, your template code and may be portable to virtually any programming language.
PHP
5
star
63

JoraLang

๐Ÿ—ฟ ๐ŸŒ… ๐Ÿ  JoraLang is my new Interpreter language working with a C++ Interpreter. It also offers a easy Terminal interface. Jora Language Interpreter is a simpler and lighter version with a totally different language syntax than my first GoYa programming language https://github.com/pH-7/GoYa ๐ŸŒ
C++
5
star
64

Android-pH2Note-App

๐Ÿ““ pH2Note is a simple Notepad Android app (using SQLIte for saving the notes).
Java
4
star
65

MySQLDump-Backup

MySQLDump Backup PHP class
PHP
4
star
66

ajax-character-counter

Letter/Characters counter tool written in PHP and jQuery + Ajax
PHP
4
star
67

url-rewriting

A simple service for Apache url rewriting .htaccess
PHP
4
star
68

mini-post-react-microservice

A simple tiny "blog posts" project, based on a microservice architecture with React JS ๐Ÿ‘Œ
JavaScript
4
star
69

Bulls-and-Cows

๐ŸŽฒ Just a very simple game coded in C++. The console game is "Bulls and Cows" ๐Ÿฎ ๐Ÿ„ -> https://en.wikipedia.org/wiki/Bulls_and_Cows
C++
4
star
70

website-informer-tools

This project is a website informer tools script coded in PHP 5.3, HTML 5, and jQuery for ajax
PHP
4
star
71

pH7WebAppBoilerplate

A Powerful, Modern and Lightweight PHP 7.1+ Boilerplate to build fastly robust web apps or small/medium SaaS.
PHP
4
star
72

TheBeerAngularWebApp

๐Ÿป Simple Web app using Angular 4, Materialize CSS framework and the BreweryDB API.
TypeScript
4
star
73

what-is-my-ip

A simple site that displays the public IP address as the many similar sites to "What's My IP Address" What Is My IP V2 is here: https://github.com/pH-7/What-Is-Your-IP-Address-V2.0
Python
4
star
74

Honeypots

๐Ÿ Examples of Honeypots to create the fake admin panels ๐Ÿฏ This honeypot can help to understand and improve the security problems of your website or web app. There is an example of fake admin area for standalone and another honeypot fake admin login page for Joomla! CMS
PHP
4
star
75

pH7Register

pH7 Register is a simple PHP registration form using PDO and MySQL.
PHP
3
star
76

carrots-rabbits-wolves

๐Ÿ—บ World Simulation Challenge - The world is inhabited by carrots, rabbits, and wolves.
JavaScript
3
star
77

ph-7.github.io

GitHub personal site.
JavaScript
3
star
78

premium-dating

Premium Dating (special 'dating' version of pH7Builder)
PHP
3
star
79

Useful-pH-Classes

These are some classes that can help you in your development.
PHP
3
star
80

cat-api-react-webapp-example

๐Ÿ˜บ Example of a simple React app using TheCatAPI (thecatapi.com) and React Bootstrap.
JavaScript
3
star
81

Rails-URL-Shortener

URL Shortener - Ruby on Rails Application to shorten your long URLs
Ruby
3
star
82

pH2Chitchat

๐Ÿ“ง H2Chitchat is the simplest real-time instantaneous chat using node.js (with express.js framework) and socket.io (without database)
CSS
3
star
83

GithubRating

Get your Github Score in a click (useful to see how active you are on Github)
PHP
3
star
84

OutstandingGitPractices

OutstandingGitPracticesโ„ข contains a list of best practices to follow when using git. If you would like to become an outstanding dev, well, this is your guideline!
3
star
85

GetResponse-Api

Example, study case of the GetResponse API to retrieve and send emails (... and much more) thanks GetResponse API
PHP
3
star
86

pH7-Dating-App

๐Ÿ—ฃ A great Tinder Like App, cooked from the "pH7CMS's way".
JavaScript
3
star
87

Lorem-Ipsum-Generator

Lorem Ipsum generator in Ajax. Lorem Ipsum PHP class allows to generate of the text very easily.
PHP
3
star
88

openai-library

๐Ÿ‘‰ An easy SDK for using AI through OpenAI API with PHP ๐Ÿ’ช
PHP
3
star
89

Nav-Doc-Script

Simple Navigation Documentation Script with support for multiple languages โ€‹โ€‹and Ajax navigation HTML5 History / pushState URLs. Nav Doc Script V2 is here: https://github.com/pH-7/Nav-Doc-Script-V2
PHP
3
star
90

Get-Favicon-from-a-website

This is not a project but just a snippet.
PHP
3
star
91

QueryOpenAI

PHP project that uses AI query possibilities offered by OpenAI and GPT-3 ๐Ÿค–
PHP
3
star
92

Maintenance-BoonEx-Dolphin-Module

pH7 Maintenance is an easy to use module that sets your BoonEx Dolphin site into maintenance mode.
PHP
3
star
93

Reddit-React-Simple-App

Simple React App retrieving the Reddit "ReactJS" thread โœจ
JavaScript
2
star
94

AjaxCalculator

This PHP Ajax Web application is an online Calculator built with jQuery and OOP PHP
CSS
2
star
95

dinobot-on-tabletop-game

๐Ÿฆ– DinoBot Toy moves on the tabletop is a simple and funny PHP console game ๐ŸŽฐ
PHP
2
star
96

pH7Ouse

๐Ÿก An Airbnb Like app built with RoR ๐Ÿ’Ž
Ruby
2
star
97

data-URI

Data URI PHP function
PHP
2
star
98

GitHub-API

This basic class allows you to retrieve basic information from your GitHub account.
JavaScript
2
star
99

Drink-Vending-Machine

๐Ÿน Simple simulation of the algorithm for a drink vending machine. It is written in C.
C
2
star
100

GetterMails

GetterMails, Scraper
PHP
2
star