flexsim / flexnet-operations
A package for connecting with the FlexNet Operations api
Requires
- php: ^8.3
- guzzlehttp/guzzle: ^7.2
- illuminate/contracts: ^10.0|^11.0
- phpro/soap-client: ^3.0
- spatie/laravel-package-tools: ^1.13.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- spatie/laravel-ray: ^1.26
- dev-main
- v2.0.0
- v2.0.0-beta17
- v2.0.0-beta16
- v2.0.0-beta15
- v2.0.0-beta14
- v2.0.0-beta13
- v2.0.0-beta12
- v2.0.0-beta11
- v2.0.0-beta10
- v2.0.0-beta9
- v2.0.0-beta8
- v2.0.0-beta7
- v2.0.0-beta6
- v2.0.0-beta5
- v2.0.0-beta4
- v2.0.0-beta3
- v2.0.0-beta2
- v2.0.0-beta1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0
- v1.0-alpha.1
- v1.0-alpha
- dev-dependabot/github_actions/ramsey/composer-install-3
- dev-dependabot/github_actions/dependabot/fetch-metadata-2.2.0
- dev-add-upgrade-docs
This package is auto-updated.
Last update: 2024-10-26 10:06:22 UTC
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require flexsim/flexnet-operations
You can publish the config file with:
php artisan vendor:publish --tag="flexnet-operations-config"
This is the contents of the published config file:
return [
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="flexnet-operations-views"
Usage
$flexnetOperations = new Flexsim\FlexnetOperations(); echo $flexnetOperations->echoPhrase('Hello, Flexsim!');
Type Generation
-
Fix types in wsdl files
- ProductPackagineService
- featureBundlesListType - add minOccurs="0" to the "featureBundle" property
- featuresListType - add minOccurs="0" to the "feature" property
- getProductRelationshipsResponseType - add minOccurs="0" to the "relationship" property
- LicenseService
- fulfillmentHistoryDetailsType - add minOccurs="0" to the "record" property
- ProductPackagineService
-
Normalize Extension types in the wsdl file by extracting them from the base type into the child type
-
Run the flexnet WSDL file through the xml to json tool here: https://codebeautify.org/xmlviewer
Client Factory Generation
Make sure client factories use the BasicAuth middleware like so:
public static function factory(string $wsdl, string $username, string $password): EntitlementOrderServiceClient { $engine = DefaultEngineFactory::create( ExtSoapOptions::defaults($wsdl, []) ->withClassMap(EntitlementOrderServiceClassmap::getCollection()), Psr18Transport::createForClient( new PluginClient( Psr18ClientDiscovery::find(), [ new AuthenticationPlugin(new BasicAuth($username, $password)), ] ) ) ); }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.