Catalog · How the catalog works
DesignPattern
Delphi Design Patterns (PHP to Delphi Conversion)
- ★ 6 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
# Delphi Design Patterns (PHP to Delphi Conversion)
This project aims to convert Design Patterns examples originally implemented in PHP, as presented in videos on YouTube, to the Delphi language (Object Pascal), using Delphi 12 Community Edition.
🎯 Objective
- Study and understand the main Design Patterns.
- Apply the patterns in the context of the Delphi language.
- Explore the equivalence of concepts between PHP and Delphi, such as inheritance, interfaces, abstract classes, polymorphism and composition.
🛠️ Technologies and Tools
- Delphi 12 Community Edition
- Console Application (without graphical interface)
- Patterns studied so far:
- Singleton : https://youtu.be/E8ey3HjSthg?si=MnvPH5_WqeSv355D
- Proxy : https://youtu.be/el1MtIPXTqo?si=5QAzPAgSZQAH4-om
- Observer : https://youtu.be/mv9JxI85Ac8?si=D9K3-3Frc-K9xYWc
- Strategy : https://youtu.be/DzlXwgsc_AU?si=krFafWcg2PdCxig4
- Decorator : https://youtu.be/7B60j9EGrrU?si=xrJHLjrzu7FB0vMm
- Factory Method : https://youtu.be/j5fGTi8ObK4?si=l3P2jbq-JPMf8Ajl
- Facade : https://youtu.be/4Aq9UHQ5f5Y?si=pnXDBTBAJEcjawl3
- State : https://youtu.be/OrCgWzpNszk?si=UzMHU48HfweFC9Rn
- Adapter: https://youtu.be/Fg1kEjaaBrs?si=kSC2sMMR1GPXApi7
📂 Project Structure
🧠 About the Original Project
The examples are based on a YouTube channel that teaches Design Patterns in PHP. I am using these examples as a basis to practice concepts in Delphi and understand how the same patterns can be applied in a strongly typed and object-oriented language like Delphi.
Renato Augusto : https://www.youtube.com/watch?v=el1MtIPXTqo&list=PLNHxHgB-_LTt67szNmMsZwqBKq9jH4uKJ&index=1
🚀 How to Run
- Open Delphi 12.
- Compile and run the project directly (example in console mode).
- The results will be displayed in the terminal, simulating the behaviors of the design patterns.
📌 Notes
- All examples are being implemented in command line projects (without VCL/FMX).
- The focus is didactic, and the architecture can be adapted in the future for real applications with interface.
📖 License
This project is for personal study. Feel free to use it as a basis for learning or expansion.

