Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Composer Xmlprovider Installer

Composer Xmlprovider Installer Laravel Package

simplesamlphp/composer-xmlprovider-installer

Composer installer for SimpleSAMLphp XML provider packages. Automatically places XML metadata provider files in the correct SimpleSAMLphp directory during install/update, making distribution and setup of metadata providers seamless.

View on GitHub
Deep Wiki
Context7

A composer plugin that will auto-generate a classmap with all classes that implement SerializableElementInterface.

Frequently asked questions about Composer Xmlprovider Installer
Can I use this package in a Laravel app that doesn’t use SimpleSAMLphp?
No, this package is tightly coupled to SimpleSAMLphp’s XML provider infrastructure. It requires classes implementing SerializableElementInterface, which is part of SimpleSAMLphp’s core. Without SimpleSAMLphp, the plugin will fail during installation.
How does this plugin improve performance in Laravel?
It pre-generates classmaps for XML-serialized classes during Composer install/update, reducing autoloading overhead. However, this only matters if you’re using SimpleSAMLphp’s XML providers—most Laravel apps won’t see a meaningful performance gain.
What Laravel versions does this package support?
This package doesn’t directly integrate with Laravel; it’s a Composer plugin for PHP projects. It works with any Laravel version (5.5+) as long as your app uses SimpleSAMLphp. Laravel’s autoloader will still handle the rest.
Do I need to manually configure anything after installing via Composer?
No manual configuration is required for the plugin itself. During `composer install` or `update`, it automatically places XML metadata files in SimpleSAMLphp’s expected directory structure. Just ensure your Laravel app includes SimpleSAMLphp as a dependency.
Is there a Laravel-specific alternative for XML serialization?
Yes. For general XML needs, use `spatie/array-to-xml` or Laravel’s built-in XML facades. If you need classmap optimization, Laravel’s `composer dump-autoload --optimize` or `barryvdh/laravel-ide-helper` are better fits and don’t require SimpleSAMLphp.
Will this break if I upgrade SimpleSAMLphp?
Potentially. This plugin relies on SimpleSAMLphp’s SerializableElementInterface and XML provider structure. If SimpleSAMLphp changes these, the plugin may need updates. Always test after upgrading SimpleSAMLphp.
Can I use this for custom XML serialization in Laravel without SimpleSAMLphp?
Theoretically, you could extend SerializableElementInterface for your own classes, but it’s not recommended. The plugin is designed for SimpleSAMLphp’s specific XML workflow. A custom solution using `JsonSerializable` or `spatie/array-to-xml` would be simpler and more maintainable.
Does this package work with PHP 8.x?
It depends on SimpleSAMLphp’s compatibility. As of now, SimpleSAMLphp may not fully support PHP 8.x, so test thoroughly. Check the SimpleSAMLphp repository for PHP 8.x support before adopting this package.
How do I test this in a Laravel project?
First, install SimpleSAMLphp via Composer. Then add this plugin to your `composer.json` under `extra-installer-plugins`. Run `composer install`—the plugin will handle the rest. Verify XML files appear in `vendor/simplesamlphp/xmlprovider/` or your configured SimpleSAMLphp directory.
What are the risks of using this in production?
The main risks are vendor lock-in to SimpleSAMLphp and potential compatibility issues if SimpleSAMLphp’s internals change. Since this is a Composer plugin, failures during installation could break your build process. Test in a staging environment first.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor