DEV Community

Cover image for PHP Phone Book
ramoures
ramoures

Posted on • Updated on • Originally published at github.com

PHP Phone Book

This is my first public repository on GitHub.

Image description


Demo

UTC Timezone

username: admin
password: 123

Setup

  • 1.Clone or download: GitHub Repository
  • 2.Create a new MySQL database.
  • 3.Set your database information and your PROJECT_URL in config.php.
  • 4.Browse /setup to create the required tables and admin sign up.

    Ex. https://localhost/PHP-Phone-Book/setup/

  • 5.Remove /setup directory.

  • 6.Set media directory permission to 777.

    sudo chmod -R 777 media


Information

  • HTTP Server: Apache
  • Programming language: PHP 8.2.4
  • Programming paradigm: OOP
  • Architectural patterns: MVC
  • Template engine: TWIG 3.0
  • Database: MySQL
  • Licensed under MIT

I used:

  • Multi language suppourt.
  • PDO & Prepared Statements MySQL Connection.
  • Errors handling method.
  • Singleton design patterns for some required classes.
  • Many options for configuration. config.php
  • Sorting and pagination of items.
  • Client and server side captcha for sign in form.

    Optional config: Google reCaptcha or Cloudflare Turnstile

  • Bootstrap and jQuery.


HELP

Add new language

  1. Create your language file in the lang folder.

Ex. fr.php or ar.php and develop similar to lang/fa.php.

  1. Add your new language for frontend pages.
<!-- Example: -->
<div class="changeLanguage">
     <button id="fr">Fr</button>
     <button id="en">En</button>
</div>
<!-- Look at: .changeLanguage click function on view/assets/js/app.js or backend.js  -->
Enter fullscreen mode Exit fullscreen mode

** Ready to develop for other pure PHP projects **

Connect with me:

Linkedin: ramoures

E-Mail: ramoures@gmail.com

Top comments (2)

Collapse
 
blossom profile image
Blossom Babs

This is such a fun project

Collapse
 
cyberfiducia profile image
CyberFiducia

Well done. Just checked this out. Clean and simple.