The script below allows you to resize an image while keeping proportions. Continue reading “PHP: Resize Image on Upload | Thumbnail Image Resizing”
Before you really understand the whole process of the functioning of an MVC framework, maybe you should think about implementing your own MVC framework. You will learn a lot by writing your own. You will understand the theory behind it rather than just mindless implementation. Continue reading “Own Custom MVC Framework vs Existing Framework”
There are different patterns that allow us to inject dependencies into the classes in order to create loosely-coupled code.
Among them I will discuss about the most popular ones: Continue reading “Dependency Injection: Service Locator, Factory, Constructor Injection, DIC”
Today I have been looking for some example PHP code-snippets on StackOverflow, to get some ideas on how other developers would implement and use their Domain Objects and DAO/Datamappers objects together. Continue reading “When high reputation users think they can be rude to less experienced users…”
PHP function that converts a string into a camelCase string. Continue reading “PHP: Convert String to camelCase String”
PHP utility function that converts a string to an underscore format string, separating each word by an underscore ‘_’. Continue reading “PHP: Convert String To Underscore-Cojoined Words”
PHP utility function that converts a string to a hyphenated lowercase string, separating each word by a hyphen ‘-‘. Continue reading “PHP: Convert String to Hyphenated String”