$user = new User(); $users = $user->getList(); foreach($users as $user) { echo $user['name'] . " (" . $user['email'] . ")"; }In this example, we create a new instance of the User class and call the getList function to retrieve the list of users. We then loop through each user and print their name and email address. The package library for this example could be any PHP framework such as Laravel, CodeIgniter, Symfony, or any other custom library that has the User class defined in it.