apolinux/kannel-config

There is no license information available for the latest version (v0.1) of this package.

Configure Kannel

v0.1 2021-06-07 17:10 UTC

This package is auto-updated.

Last update: 2024-05-08 00:07:52 UTC


README

Read Kannel configuration and parse it to array struct.

example

a config file like this

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = passwda

# smsc center1 connection
group = smsc
smsc = smpp
smsc-id = "Vodafone"

is transformed into an array like that:

$config = [
  'core' => [
    'admin-port' => 13000 ,
    'smsbox-port' => 13001 ,
    'admin-password' => 'passwda'
  ],

  'smsc' => [
     0 => [
       'smsc' => 'smpp' ,
       'smsc-id' => 'Vvodafone'
     ]
  ]
]