PHPackages                             dammyammy/social - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dammyammy/social

AbandonedLibrary[API Development](/categories/api)

dammyammy/social
================

PHP Social Media API Wrappers.

05PHP

Since Feb 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/dammyammy/social)[ Packagist](https://packagist.org/packages/dammyammy/social)[ RSS](/packages/dammyammy-social/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Social
======

[](#social)

======

[![Build Status](https://camo.githubusercontent.com/955b82a4c0dd15ddf3144c0ded9ee6c24229cbe3ef847442fca40d085a318c6e/68747470733a2f2f7472617669732d63692e6f72672f64616d6d79616d6d792f736f6369616c2e706e67)](https://travis-ci.org/dammyammy/social)

Requirements
------------

[](#requirements)

- PHP =&gt; 5.4+

> Domain =&gt; Port =&gt; 8989

> BaseUrl =&gt;

> Home Page:

Usage:
------

[](#usage)

======

### Requests

[](#requests)

============

To post on twitter Timeline

```
Request Type: 		GET
Request URL:		http://mobilexserver.com:8989/utils/social/twitter.php

Query String:		msg: 	 	[string] 	[Message to Post on Twitter]
					account: 	[string]	[Account to Tweet to] 		[Optional (evc: default)]

Example Request:	http://mobilexserver.com:8989/utils/social/twitter.php?msg=Dammy+is+the+shit&account=evc

```

To post on Facebook Page

```
Request Type: 		GET
Request URL:		http://mobilexserver.com:8989/utils/social/facebook.php

Query String:		msg: 	 	[string] 	[Message to Post on Facebook Page]
					page: 		[string]	[Page to Post to] 		[Optional (evc: default)]

Example Request:	http://mobilexserver.com:8989/utils/social/facebook.php?msg=Dammy+is+the+shit&page=evc

```

### Responses

[](#responses)

=============

```
##### Successful

A successful Request would give back a json Response with a success status, a message and info.

> $response['status'] will equal 'success'

##### Failure

A failed Request would give back a json Response with an error status, a message and info about the error code returned.

> $response['status'] will equal 'error'

```

### Exceptions

[](#exceptions)

==============

```
1. Dammyammy\Social\Exceptions\MessageNotSpecified
2. Dammyammy\Social\Exceptions\CouldNotConnect
3. Dammyammy\Social\Exceptions\CharactersExceeded (Deprecated: on twitter, now allows for multiple posts)

```
