class Product { private $name; public function __construct($name) { $this->name = $name; } public function getName() { return $this->name; } } $product = new Product("iPhone"); echo $product->getName(); // Output: iPhoneThis code creates a Product class with a private property `$name` and a `getName()` method that returns the value of `$name`. Then, an instance of the class is created with the name "iPhone", and the `getName()` method is called to display the product's name. In terms of package/library, this code does not require any external packages or libraries as it is using basic PHP classes and functions.