bjrambo/coolsmsphpsdk

dev-master 2018-10-30 07:06 UTC

This package is auto-updated.

Last update: 2025-06-29 01:34:26 UTC


README

Send Message & Alimtalk using PHP and REST API Ver 4.

Installation

Requirements

  • PHP 7.0 or greater
  • Composer
  • PHP CURL extension
  • PHP JSON extension

Coding Standards

1. Nameing Conventions and Style.

  • Use Pascal casing for class.
class SimpleMessage

2. Use real tabs that are equal to 4 spaces

3. Always place an opening curly brace ({) in a new line

4. Add curly braces even if there's only one line in the scope.

if ($bSomething)
{
    return;
}

5. Always have a default case for a switch statement.

switch ($i)
{
    case 0:
        echo "i는 0";
        break;
    case 1:
        echo "i는 1";
        break;
    case 2:
        echo "i는 2";
        break;
    default:
        echo "i는 0, 1, 2 어느것도 아니다";
}

Details not specified here follows the PSR-1 and PSR-2.