Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 10, 2024 via composer

laminas/laminas-servicemanager 4.0.0-rc2

Factory-Driven Dependency Injection Container
Package summary
Share
0
issues
2
licenses
3
BSD-3-Clause
2
MIT
Package created
1 Jan 2020
Version published
31 May 2023
Maintainers
1
Total deps
5
Direct deps
3
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
laminas/laminas-servicemanager@4.0.0-rc2
laminas/laminas-stdlib@3.19.0
nikic/php-parser@v4.19.1

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
brick/varexporter@0.3.8
psr/container@2.0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of laminas/laminas-servicemanager 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
brick/varexporter0.3.818.59 kBMIT
prod
laminas/laminas-stdlib3.19.049.04 kBBSD-3-Clause
prod
psr/container2.0.23.55 kBMIT
prod

Visualizations

Frequently Asked Questions

What does laminas/laminas-servicemanager do?

The laminas/laminas-servicemanager package provides an implementation of the Service Locator design pattern. It serves as a service/object locator, tasked with retrieving other objects. As a factory-driven dependency injection container, it helps manage dependencies within your PHP application, making it easier to maintain and test your code.

How do you use laminas/laminas-servicemanager?

To leverage the benefits of laminas/laminas-servicemanager in your PHP application, you can use it as follows:

// Import the ServiceManager class
use Laminas\ServiceManager\ServiceManager;

// Define some services
$services = [
    'factories' => [
        MyService::class => MyServiceFactory::class,
        // ...
    ],
    'aliases' => [
        'my_alias' => MyService::class,
        // ...
    ],
];

// Instantiate the ServiceManager
$serviceManager = new ServiceManager($services);

// Retrieve a service
$myService = $serviceManager->get('my_alias');

In the above example, we're setting up the service manager with an array of services - service factories and aliases. We then create an instance of the ServiceManager and retrieve a service using an alias.

Where are the laminas/laminas-servicemanager docs?

For more in-depth information, guides, and references, the official documentation of the laminas/laminas-servicemanager can be found at the following link: https://docs.laminas.dev/laminas-servicemanager. This comprehensive documentation provides a detailed look at the functionalities, methods, and usage examples of the service manager.