2017 © Pedro Peláez
 

library common

Common component

image

socialconnect/common

Common component

  • Monday, May 7, 2018
  • by ovr
  • Repository
  • 4 Watchers
  • 5 Stars
  • 14,477 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 27 Versions
  • 15 % Grown

The README.md

Common Component

Build Client for your REST application

use SocialConnect\Common\ClientAbstract;

class MySocialNetworkClient extends ClientAbstract
{
  public function requestMethod($method, $parameters)
  {
    //...
  }

  public function getUser($id)
  {
    $result = $this->requestMethod('/user/get/', $id);
    if ($result) {
      $user = new User();
      $user->id = $result->id;
      //...

      return $user;
    }

    return false;
  }
}

Next you can use it, (*1)

$client = new MySocialNetworkClient($appId, $appSecret);
// You can use any client that implements Psr\Http\Client\ClientInterface
$client->setHttpClient(new \SocialConnect\HttpClient\Curl());

$user = $client->getUser(1);

//Custom rest methods
$client->requestMethod('myTestMethod', []);
$client->requestMethod('myTest', []);

The Versions

07/05 2018

dev-master

9999999-dev

Common component

  Sources   Download

MIT

The Requires

  • ext-json *
  • php >=5.5

 

The Development Requires

11/04 2018

1.0.4

1.0.4.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *

 

The Development Requires

11/04 2018

1.1.0

1.1.0.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *

 

The Development Requires

12/02 2018

1.0.3

1.0.3.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *

 

The Development Requires

30/11 2017

1.0.2

1.0.2.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *

 

The Development Requires

25/03 2017

1.0.1

1.0.1.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *

 

The Development Requires

28/02 2017

1.0.0

1.0.0.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *
  • ext-curl *

 

The Development Requires

07/02 2017

0.7.3

0.7.3.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *
  • ext-curl *

 

The Development Requires

07/02 2017

0.7.2

0.7.2.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *
  • ext-curl *

 

The Development Requires

23/01 2017

0.7.1

0.7.1.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *
  • ext-curl *

 

The Development Requires

02/04 2016

0.7

0.7.0.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-json *
  • ext-curl *

 

The Development Requires

29/09 2015

0.6.0

0.6.0.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *
  • ext-curl *

 

The Development Requires

16/08 2015

0.5

0.5.0.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *

 

The Development Requires

18/07 2015

0.4

0.4.0.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *

 

The Development Requires

09/07 2015

0.3.2

0.3.2.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *

 

The Development Requires

09/07 2015

0.3.1

0.3.1.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *

 

The Development Requires

07/07 2015

0.3.0

0.3.0.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *

 

The Development Requires

07/05 2015

0.2.7

0.2.7.0

Common component

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-json *

 

The Development Requires

29/10 2014

0.2.6

0.2.6.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.4
  • ext-json *

 

The Development Requires

09/10 2014

0.2.5

0.2.5.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.4
  • ext-json *

 

The Development Requires

03/10 2014

0.2.4

0.2.4.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.4
  • ext-json *

 

The Development Requires

19/09 2014

0.2.3

0.2.3.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.4
  • ext-json *

 

The Development Requires

19/09 2014

0.2.2

0.2.2.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.4
  • ext-json *

 

The Development Requires

19/09 2014

0.2.1

0.2.1.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.4
  • ext-json *

 

The Development Requires

10/09 2014

0.2.0

0.2.0.0

Common component

  Sources   Download

MIT

The Requires

 

The Development Requires

05/09 2014

0.1.1

0.1.1.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires

21/08 2014

0.1.0

0.1.0.0

Common component

  Sources   Download

MIT

The Requires

  • php ~5.3
  • ext-json *

 

The Development Requires