PHP code example of flexsim / flexnet-operations

1. Go to this page and download the library: Download flexsim/flexnet-operations library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

flexsim / flexnet-operations example snippets


return [
];

$flexnetOperations = new Flexsim\FlexnetOperations();
echo $flexnetOperations->echoPhrase('Hello, Flexsim!');

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)),
                ]
            )
        )
    );
}
bash
php artisan vendor:publish --tag="flexnet-operations-config"
bash
php artisan vendor:publish --tag="flexnet-operations-views"