Requirements
Before installing Laravel XML, ensure your environment meets these requirements:- PHP 8.0 or higher
- Laravel 8.47 or higher
- PHP extensions:
ext-dom,ext-simplexml,ext-json
Install via Composer
Install the package using Composer:composer.json file automatically.
Service provider registration
Laravel XML supports package auto-discovery, which means the service provider and facade are registered automatically when you install the package. You can immediately start using theXML facade in your application without any additional configuration:
If you’ve disabled package auto-discovery in your Laravel application, you’ll need to manually register the service provider in And the facade:
config/app.php:Optional dependencies
If you plan to use the view export feature to render Laravel Blade views as XML, ensure you have the illuminate/view package installed. This is included by default in standard Laravel installations:Verify installation
To verify Laravel XML is installed correctly, try importing a simple XML file:Next steps
Now that you have Laravel XML installed, proceed to the quickstart guide to learn the basics:Quickstart
Learn how to import and export XML with a complete working example