Download the PHP package magetips/windowsazure without Composer

On this page you can find all versions of the php package magetips/windowsazure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package windowsazure

magetips/windowsazure

A PHP client library for Azure Service Bus. It manages namespace topology (topics, subscriptions, rules) and message operations (send, peek-lock receive, unlock, renew lock, delete) over the Service Bus REST API, authenticating via Shared Access Signature (SAS).

Framework-agnostic — no dependency on Magento, Laravel, Symfony, or any other framework. Use it in any PHP application that needs to talk to Azure Service Bus.

Table of contents

Features

Requirements

Installation

If this package isn't published to a registry you use, add it as a path or VCS repository in your project's composer.json.

Quick start

Everything starts from a connection string for one Service Bus namespace, in the format shown in the Azure Portal under Shared access policies:

$serviceBus is a MageTips\WindowsAzure\ServiceBus\Internal\IServiceBus (concretely a ServiceBusRestProxy) — every example below is a method call on this object.

Tip: building the client is cheap, but there's no connection pooling built in. If you're sending or receiving many messages, reuse a single $serviceBus instance rather than rebuilding it per call.

Key classes

Class Purpose
Common\ServicesBuilder Entry point — turns a connection string into an IServiceBus.
ServiceBus\ServiceBusRestProxy Implements IServiceBus; every operation below lives here.
ServiceBus\Models\BrokeredMessage A message: body, custom properties, delivery count, lock info.
ServiceBus\Models\TopicInfo / SubscriptionInfo / RuleInfo Describe a topic/subscription/rule to create.
ServiceBus\Models\ReceiveMessageOptions + ReceiveMode Controls how receive*Message() fetches messages (peek-lock vs. receive-and-delete).
Common\ServiceException Thrown on any non-2xx REST response.

Usage

Topology: create a topic, subscription, and rule

Creating a resource that already exists throws a ServiceException. Check for existence first (e.g. via listTopics()) if you need idempotent setup.

Send a message

Receive a message (peek-lock)

Peek-lock is the mode to use for anything that needs acknowledge/retry semantics — the message stays on the subscription, invisible to other receivers, until you explicitly delete or unlock it.

After processing, do exactly one of the following:

unlockMessage(), deleteMessage(), and renewLock() all operate on $message->getLockLocation() (a URL Azure returns with the message), not the topic/subscription name — always call them with the same BrokeredMessage instance you received, not a reconstructed one.

Long-running processing: renew the lock

Azure's default lock duration is short (30–60 seconds). If a handler might run longer, extend the lock periodically so the message doesn't become redeliverable mid-processing:

Reading dead-lettered messages

Once a subscription's MaxDeliveryCount is exceeded, Azure automatically moves the message into a built-in, per-subscription dead-letter sub-queue. There's no separate API for it — append /$DeadLetterQueue to the subscription name passed to receiveSubscriptionMessage():

Listing topics and subscriptions

Examples

Runnable, end-to-end scripts against a real Service Bus namespace — see examples/:

Testing

The test suite mocks the HTTP layer, so it runs without network access or Azure credentials:

Limitations

License

Apache License 2.0. See LICENSE.txt.


All versions of windowsazure with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
pear/net_url2 Version ^2.2
guzzlehttp/guzzle Version ^6.5 || ^7.0
psr/http-message Version ^1.0 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package magetips/windowsazure contains the following files

Loading the files please wait ...