use Inflector\Inflector; $class_name = Inflector::classify('product_information'); echo $class_name; // Output: ProductInformation
use Doctrine\Common\Inflector\Inflector; $class_name = Inflector::classify('user_address'); echo $class_name; // Output: UserAddressIn this example, we are using the Inflector library from Doctrine. The classify() function is used to convert the string "user_address" to "UserAddress". The Inflector library is a part of many PHP frameworks and packages like Laravel, Symfony, Doctrine, etc.