Download the PHP package 101media/bird without Composer

On this page you can find all versions of the php package 101media/bird. 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 bird

Bird.com Laravel Package

Introduction

This package provides seamless integration with the Bird.com API, allowing you to manage contacts and send notifications via SMS.

Installation

You can install the package via composer:

After installing the package, you need to publish the configuration file:

Configuration

After publishing the configuration file, you need to set the following environment variables in your .env file:

All the configuration keys are available in config/bird.php

Usage

Contact Management

Retrieve Contacts

To retrieve contacts from the API, you can use the get method of ContactManager:

You can also retrieve a specific contact by ID:

Additional parameters can be provided to customize the query:

Create or Update Contacts

To create or update a contact, use the createOrUpdate method:

You can specify the identifier key (default is phonenumber):

Delete Contacts

To delete a contact, use the delete method:

Notifications

Sending SMS Notifications

At the moment this package only suppots sending SMS notifications with text type only. To send SMS notifications, you need to use the SMSChannel class. This class handles sending SMS notifications via Bird.com.

First, create a notification class that returns an instance of SMSMessage class:

Finally, notify the notifiable entity:

Exception Handling

The package uses custom exceptions to handle errors:

Make sure to catch these exceptions in your code to handle errors gracefully.

Contributing

Please submit issues and pull requests to the GitHub repository.

License

This package is open-sourced software licensed under the MIT license.

Contact

For any inquiries or support, please contact 101Media.


This README now includes sections for both SMSChannel and SMSMessage, as well as the existing contact management functionality. If you have any more classes or details to add, let me know!


All versions of bird with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.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 101media/bird contains the following files

Loading the files please wait ....