class Person { public $name; public $age; public function __construct($name, $age) { $this->name = $name; $this->age = $age; } } $person1 = new Person("John", 30); echo $person1->name . " is " . $person1->age . " years old.";In this example, we define a `Person` class with two properties - `name` and `age`. We then create a constructor using `__construct` which takes two arguments - `$name` and `$age`, and assigns them to their respective properties using the `$this` keyword. Finally, we create an instance of the `Person` class passing in values for `$name` and `$age`, and output the `name` and `age` properties using the `echo` statement. Package/library: PHP core language feature.