Software Development

Return class’ Canonical Name in PHP

Background [wp_ad_camp_1] There are times you need to refer to a class by a string representing its fully qualified class name. For example in Laravel 4.2, you may specify a route to a controller by hard-coding the fully qualified class

Software Development

Reuse JPA entity classes from a Jar file

Background [wp_ad_camp_1] Let’s say you had your application in one single Maven project as a prototype and decided to finalize the functionality into a finished (or almost, e.g., Alpha or Beta version) product. When you have JPA entities and you

Software Development

Constructors in PHP 5+

This article demonstrates how constructors work in PHP. It will also touch on destructors just briefly. If you’re a Java programmer who has somehow become bored with anything Java and wanted to explore PHP, the first thing you need to realize is OOP in PHP is slightly different. Take for instance, constructors.