Skip to content

2.0.0

Choose a tag to compare

@hannesvdvreken hannesvdvreken released this 07 Aug 14:40

Added

  • PSR-2 code style throughout
  • .gitattributes file for keeping unnecessary files out of --prefer-dist installations and unified line endings.
  • New method messageWithMedia($to, $message, $media, $from) on ClientInterface, thanks to @russmatney.
  • PHP-CS-Fixer for insuring CS to be correct
  • Dummy class which implements TwilioInterface but does nothing. For integration testing
  • LoggingDecorator which wraps a TwilioInterface object and uses a PSR logger for logging activities.

Changed

  • Added a ServiceProvider for Laravel 5 and adapted the original Service Provider to proxy the L4 or L5 service provider depending on the Laravel version.
  • Added a Manager class (#34) to configure a Twilio object from an array of settings, depending on the requested from address.
  • Abstracted a TwilioInterface from the Twilio class (#34).
  • Allowed second argument to be callable as message builder (#36).
  • Made the Twilio class independent from the Laravel Framework, thus made the package framework agnostic.
  • Moved files around (Facade and Service Providers to Support subnamespace).
  • Dropped PHP 5.3 support (by accident, by using square array bracket syntax).
  • Autoloading from PSR-0 to PSR-4.
  • Changed version constraint for twilio/sdk to ~3.12 because of 3.13.0 release.
  • Allowed v4 of the twilio SDK as well.

Fixed

  • Year in License file
  • Return result of the TwilioInterface::message and TwilioInterface::call methods on the defaultConnection through the manager.
  • Artisan commands are now being registered by the Laravel 5 service provider

Removed

  • Twiml method from both the interface and the twilio class. Creating and using twiml object yourself is trivial.
  • No more support for PHP versions 5.3 (EOL) and 5.4 (will soon be EOL on 2015/09/14)