Skip to content

Some small standalone projects using Object Oriented Program in vanilla PHP 🐘

Notifications You must be signed in to change notification settings

andreriffen/PHP-OOP-Projects

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mini applications

This is just the exercise boilerplate, the answers are in the final-version branch. You can also see the instructor's changes by acessing the original repository; it's essentially the same code.

πŸ“š Use Case Library

Greetings @everyoneπŸ––

This week, while I was working on some projects that involve a high stack of technologies, I noticed that I was clinging to a specific framework. This isn't a problem for me, particularly as I love Laravel and Composer. They are among the most complete tools I've ever found and are often the frameworks that others aspire to be.

However, some projects may not include all the necessary components. Using a robust MVC framework may not always be the obvious choice for companies with more agnostic foundations. This realization reminded me of an essential principle, which I am sharing here as a diary entry:

bad-code

A.k.a. by the acronym "DRY", is a computer programming concept that proposes that each piece of knowledge in a system must have a representation unique, authoritative and free from ambiguity throughout the system. This expression was coined by Andy Hunt and Dave Thomas in their book.

Don't expect anything fancy, we'll keep it simple. Back to roots, to dev school with simple OOP lessons. Why?

πŸ“„ Data import/export with PDF, XLS, DOC, CSV

Generate some basic information by creating new files. Read information by parsing the document, organizing it, etc. Examples: Resume Dynamic Generator, RPG Character Profile Dynamic Generator.

files

  • Create reusable functions for file parsing and generation.
  • Use a single source of truth for file format specifications.

πŸ›’ Shopping Cart

For this one, probably the simplest way to demonstrate is saving products to a cookie locally, then merging to the DB. Certainly, customers will have products in both.

EDIT.: Done, switch to ( final-version branch)[https://github.com/andreriffen/PHP-OOP-Projects/tree/final-version/Shopping%20Cart]

πŸ“ Simple CRUD Applications

Create, Read, Update, Delete. Adding pagination, sorting, and filtering in all fields.

🌐 Use CURL API

Send or receive information to third-party applications. This project may become more interesting when combined with the PDF/Excel use case (when done).

πŸ›‘οΈ Customer Registration

A basic and essential part of your own library. Start simple, come back later, make it bigger. The more complex, the better.

Examples: Shipping and delivery address, credit card information, password fields, data security methods.

πŸ“§ Email Sending

How to format properly like Body, Subject, CC, BCC, attach files, etc.

mail-sending

Image: Vikrant Badhani - Quora

πŸ“… Event Manager

The goal behind this one is to work with datetimes with different UTC timezones. Maybe a good start can have a calendar, adding some properties, some different use cases for each timezone, or different building overloading methods.


Whether you are an astronaut, a time traveler, a friend, or a stranger, you are reading this in the future, so it is likely that all or almost all of these use case examples are already implemented below. Feel free to browse and read some of my code. This is all the context this repository needs.

bye

About

Some small standalone projects using Object Oriented Program in vanilla PHP 🐘

Topics

Resources

Stars

Watchers

Forks

Languages

  • PHP 100.0%