-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e89293
commit 063addd
Showing
18 changed files
with
70 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.idea | ||
/vendor/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "hoseinrafiei/easy-yelp", | ||
"description": "A light-weight PHP Client for Yelp Fusion API", | ||
"type": "library", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Hosein Rafiei", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.0.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"HoseinRafiei": "src/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
namespace EasyYelp; | ||
|
||
/** | ||
* Yelp API Client | ||
* | ||
* @author Hossein R. <[email protected]> | ||
* @class Yelp | ||
* @author Hosein Rafiei <[email protected]> | ||
* @class EasyYelp | ||
* @version 1.0.0 | ||
*/ | ||
class Yelp | ||
|
@@ -27,7 +29,7 @@ class Yelp | |
private $token; | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $token | ||
*/ | ||
public function __construct(string $token) | ||
|
@@ -36,7 +38,7 @@ public function __construct(string $token) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array $args | ||
* @return Yelp | ||
*/ | ||
|
@@ -46,7 +48,7 @@ public function businessSearch(array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array $args | ||
* @return Yelp | ||
*/ | ||
|
@@ -56,7 +58,7 @@ public function businessPhoneSearch(array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $transactionType | ||
* @param array $args | ||
* @return Yelp | ||
|
@@ -67,7 +69,7 @@ public function transactionSearch(string $transactionType = 'delivery', array $a | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $id | ||
* @param array $args | ||
* @return Yelp | ||
|
@@ -78,7 +80,7 @@ public function businessDetails(string $id, array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array $args | ||
* @return Yelp | ||
*/ | ||
|
@@ -88,7 +90,7 @@ public function businessMatch(array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $id | ||
* @param array $args | ||
* @return Yelp | ||
|
@@ -99,7 +101,7 @@ public function businessReviews(string $id, array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array $args | ||
* @return Yelp | ||
*/ | ||
|
@@ -109,7 +111,7 @@ public function autocomplete(array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array $args | ||
* @return Yelp | ||
*/ | ||
|
@@ -119,7 +121,7 @@ public function events(array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $id | ||
* @param array $args | ||
* @return Yelp | ||
|
@@ -130,7 +132,7 @@ public function eventDetails(string $id, array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array $args | ||
* @return Yelp | ||
*/ | ||
|
@@ -140,7 +142,7 @@ public function featuredEvent(array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array $args | ||
* @return Yelp | ||
*/ | ||
|
@@ -150,7 +152,7 @@ public function categories(array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $alias | ||
* @param array $args | ||
* @return Yelp | ||
|
@@ -161,7 +163,7 @@ public function categoryDetails(string $alias, array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @return array | ||
*/ | ||
public function getArray() | ||
|
@@ -170,7 +172,7 @@ public function getArray() | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @return array | ||
*/ | ||
public function getObject() | ||
|
@@ -179,8 +181,8 @@ public function getObject() | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @param array|stdClass $response | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array|\stdClass $response | ||
* @return boolean | ||
*/ | ||
public function hasError($response = NULL) | ||
|
@@ -194,8 +196,8 @@ public function hasError($response = NULL) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @param array|stdClass $response | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param array|\stdClass $response | ||
* @return string | ||
*/ | ||
public function getError($response = NULL) | ||
|
@@ -212,7 +214,7 @@ public function getError($response = NULL) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $route | ||
* @param array $args | ||
* @return Yelp | ||
|
@@ -223,7 +225,7 @@ protected function _postRequest(string $route, array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $route | ||
* @param array $args | ||
* @return Yelp | ||
|
@@ -234,7 +236,7 @@ protected function _getRequest(string $route, array $args = array()) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $route | ||
* @param array $args | ||
* @param string $method | ||
|
@@ -283,7 +285,7 @@ protected function _call(string $route, array $args = array(), string $method = | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @param string $route | ||
* @return string | ||
*/ | ||
|
@@ -293,7 +295,7 @@ protected function _url(string $route) | |
} | ||
|
||
/** | ||
* @author Hossein R. <[email protected]> | ||
* @author Hosein Rafiei <[email protected]> | ||
* @return string | ||
*/ | ||
protected function _getTokenHeader() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.