Download the PHP package uhin/laravel_api without Composer
On this page you can find all versions of the php package uhin/laravel_api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel_api
laravel_api
Devs: To create a new release for composer you need to make your commit, add a tag (new version number), and then push the commit and the tag.
In PHPStorm: Commit, click on log, right click on commit and add tag, push (check push tags).
For development:
In a service using this library you will make two changes to the composer.json to do development.
First change the version of the require for this library to either: "dev-master", "1.x-dev", or "2.x-dev" - depending on which branch you are working on.
Second add this block of code to your composer.json (editing the path):
Run composer update from your project directory. This will create a symlink between the library and the project using this library.
Upgrade guides
Review these documents when upgrading versions.
V1 to V2 Upgrade Guide
V2 to V3 Upgrade Guide
Using Rabbit
Rabbit Builders
The constructor stubs out the configuration for the builder. Modify the constructor to suit your needs. In previous versions of the builder the changes were made in the builder method. This is no longer required but, if needs be, the builder can still be overridden.
Rabbit Sender
Single Messages
To send a message to RabbitMQ there are a few ways to do so. The most basic method uses the default exchange, and routing key from the .
Another method to send to RabbitMQ takes a RabbitBuilder as a parameter. The sender can now use the parameters of the builder to determine the exchange and routing key.
The properties of a sender can also be overridden.
Batch Sending
Same usage as single message sending. The method takes an array of messsages and send them in batch. Performance for larger quantities of messages is significantly better.
Rabbit Receiver
The receiver can also take a builder and fills the properties for connecting to RabbitMQ.
Starting/Stopping/Draining Workers
Starting
Stopping
Drain
Using Twilio SendGrid
First, make sure that you have specified the following config values. The SendGridTemplate
class will use these configs:
config('mail.from.address')
config('mail.from.name')
config('mail.sendgrid.api-key')
Templates
Example of how to send an email using a SendGrid email template and the SendGridTemplate
class:
All versions of laravel_api with dependencies
laravel/tinker Version >=2.5
php-amqplib/php-amqplib Version ^3.0
doctrine/dbal Version ^3.1
ramsey/uuid Version ^4.1
sendgrid/sendgrid Version ^7.9
ext-curl Version *
ext-json Version *