lib/Beberlei/AzureBlobStorage/BlobClient.php
public function createContainer($containerName = '', $metadata = array())
    {
        Assertion::notEmpty($containerName, 'Container name is not specified');
        self::assertValidContainerName($containerName);
        Assertion::isArray($metadata, 'Meta data should be an array of key and value pairs.');

        $headers = $this->generateMetadataHeaders($metadata);

        $response = $this->performRequest($containerName, array('restype' => 'container'), 'PUT', $headers, false, null, self::RESOURCE_CONTAINER, self::PERMISSION_WRITE);
        if ( ! $response->isSuccessful()) {
            throw new BlobException($this->getErrorMessage($response, 'Resource could not be accessed.'));
        }

        return new BlobContainer(
            $containerName,
            $response->getHeader('Etag'),
            $response->getHeader('Last-modified'),
            $metadata
        );
    }
public function createContainer($containerName = '', $metadata = array())
    {
        Assertion::notEmpty($containerName, 'Container name is not specified');
        self::assertValidContainerName($containerName);
        Assertion::isArray($metadata, 'Meta data should be an array of key and value pairs.');

        $headers = $this->generateMetadataHeaders($metadata);

        $response = $this->performRequest($containerName, array('restype' => 'container'), 'PUT', $headers, false, null, self::RESOURCE_CONTAINER, self::PERMISSION_WRITE);
        if ( ! $response->isSuccessful()) {
            throw new BlobException($this->getErrorMessage($response, 'Resource could not be accessed.'));
        }

        return new BlobContainer(
            $containerName,
            $response->getHeader('Etag'),
            $response->getHeader('Last-modified'),
            $metadata
        );
    }
Create container

@param string $containerName Container name
@param array  $metadata      Key/value pairs of meta data
@return object Container properties
@throws BlobException