Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Mini App in PHP - Scratch using OOP & packages

Notifications You must be signed in to change notification settings

fadilxcoder/dev-advanced-oop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Packages used from packagist.org

Required

Required --dev

Notes

  • "autoload": {
  • "psr-4": {"Codebase\\": "app/"}
  • }
  • folder app with files having namespace Codebase
  • After adding the autoload snippet, use command composer dump-autoload in docker cli.
  • GOTO src folder and change files/folders permission : sudo chown -R <your_file_owner_user_name> ./ && chgrp -R <your_file_owner_group_name> ./
  • Use command : php bin/console database:init to populate DB with data

File Structure

  • router.php : Defined routes in array
  • loader.php : Handle application logics
  • bin/console : CLI to run command - add more command in file to trigger specific action
  • assets : JS & CSS
  • view : Consist of layouts file
  • app/Fixtures/DataFixtures.php : Data to be populated in DB
  • app/Managers/DbManager.php : Singleton for DB connection
  • app/Managers/ViewManager.php : Process the view file to be displayed
  • app/Services/UserManagementService.php : DB queries service

About

Mini App in PHP - Scratch using OOP & packages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages