PHP code example of cang-ha / laravel5-rackspace-cloudqueue

1. Go to this page and download the library: Download cang-ha/laravel5-rackspace-cloudqueue 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/ */

    

cang-ha / laravel5-rackspace-cloudqueue example snippets


// config/queue.php

return array(
    'default'     => 'rackspace',

    'connections' => array(

        'rackspace'  => [
            'driver'   => 'rackspace',
            'queue'    => 'default_tube', // the default queue
            'endpoint' => 'US',  // US or UK
            'username' => 'SOME_RACKSPACE_USERNAME',
            'apiKey'   => 'SOME_RACKSPACE_API_KEY',
            'region'   => 'ORD', // THE REGION WHERE THE QUEUE IS SETUP
            'urlType'  => 'internalURL', // [Optional] (default: internalURL) publicURL if connection from remote network or internalURL if connection from RackSpace network.
        ]

    ),

);,


/// config/app.php

return array(

    'providers'  => array(
        'CangHA\RackspaceCloudQueue\RackspaceCloudQueueServiceProvider'
    ),
);