meniloss/sms-factor

There is no license information available for the latest version (2.0.x-dev) of this package.

Meniloss SmsFactor Bundle

2.0.x-dev 2022-09-12 09:30 UTC

This package is auto-updated.

Last update: 2025-06-12 15:50:01 UTC


README

Install using composer:

composer require meniloss/sms-factor

add to your AppKernel:

$bundles = [
  ...
  new Meniloss\SmsFactorBundle\MenilossSmsFactorBundle(),
];

config.yml:

You must add your api key find in your account on smsfactor.com

meniloss_sms_factor:
    api_key: 123456789acdefghij

Usage:

Send a message :

$smsFactor = $this->get('meniloss.sms_factor');
$response = $smsFactor->message()->send([
        'to' => '33601000000',
	'text' => 'Did you ever dance whith the devil in the pale moonlight ?'
]);
print_r($response->getJson());