use Illuminate\Container\Container; $container = Container::getInstance(); $container->singleton(PDO::class, function () { return new PDO('mysql:host=localhost;dbname=my_database', 'username', 'password'); }); $db = $container->make(PDO::class);In this example, we are first creating an instance of the Container class. We then define a singleton, which is a type of object that is only created once and reused throughout the code. The singleton is defined using a closure that returns a new instance of the PDO class, which is used for database connections. Finally, we use the `make()` method to retrieve the singleton instance of the PDO class, which we can then use to query the database. The package library used in this example is Illuminate/Container, which is part of the Laravel framework. However, there are many other PHP static container libraries available, such as PHP-DI and Symfony's DependencyInjection component.