Giter Club home page Giter Club logo

azure-uamqp-php's Introduction

Azure uAMQP PHP

PHP binding for Azure uAMQP C (AMQP 1.0) - currently being used with Azure Service Bus (Topics and Subscriptions) but should work for everything else that works with AMQP 1.0.

This is a wrapper for the C library provided by Azure (Azure uAMQP C), builded as an extension in PHP, providing PHP classes so that PHP code can work with AMQP 1.0.

Currently being used with PHP 7.2.

Pre-requisites

In order to compile this extension, you need three dependencies to be installed (Azure C Shared Utility, Azure uAMQP C and PHP-CPP). You can install them this way if you're using Ubuntu (tested against Ubuntu docker image ubuntu:18.04).

$ apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        # php-cpp
        wget \
        make \
        g++ \
        php7.2-dev \
        # azure-uamqp-c
        git \
        cmake \
        build-essential \
        curl \
        libcurl4-openssl-dev \
        libssl-dev uuid-dev

# Install Azure C Shared Utility
$ git clone --recursive https://github.com/Azure/azure-c-shared-utility.git \
        && cd azure-c-shared-utility \
        && mkdir cmake \
        && cd cmake \
        && cmake -Duse_installed_dependencies=ON ../ \
        && cmake --build . --target install

# Install Azure UAMQP C
$ git clone --recursive https://github.com/Azure/azure-uamqp-c.git \
        && cd azure-uamqp-c \
        && mkdir cmake \
        && cd cmake \
        && cmake -Duse_installed=ON ../ \
        && cmake --build . --target install

# Install PHP-CPP
$ cd /tmp \
        && wget https://github.com/CopernicaMarketingSoftware/PHP-CPP/archive/v2.1.0.tar.gz \
        && tar xzf v2.1.0.tar.gz \
        && cd PHP-CPP-2.1.0 \
        && make \
        && make install

Compiling and installing the extension

$ make
$ make install

azure-uamqp-php's People

Contributors

vsouz4 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.