1. Go to this page and download the library: Download jobbrander/jobs-elance library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jobbrander / jobs-elance example snippets
$client = new JobBrander\Jobs\Client\Provider\Elance([
'token' => 'ELANCE ACCESS TOKEN',
]);
$jobs = $client->setKeyword('designer') // A space-delimited list of keywords to search. If omitted, search returns a list of all jobs.
->setCategory(1) // A positive integer representing a category ID that restricts search results to jobs in the specified category. A list of valid category IDs and associated names is available through the categories method. If the value of catFilter does not correspond to an existing category ID, the method returns an empty result set.
->setSubCategory(1) // A positive integer representing a subcategory ID that restricts search results to jobs in the specified subcategory. A list of valid subcategory IDs and associated names is available through the categories method. If the value of subcatFilter does not correspond to an existing category ID, the method returns an empty result set.
->setType('startDate') // The property by which to sort results. Valid values are: budget, numProposals, startDate, endDate
->setSort('asc') // The sort order of the results (ascending or descending). If this value is specified without sortCol, it is ignored. Valid values are: asc, desc; The default is desc.
->setPage(2) // The requested page of result sets, numbered beginning from 1. Default is 1. If this number exceeds the value of the response property totalPages, the response will contain zero results.
->setCount(25) // The number of results requested per page. The default is 20. If more than 25 are requested, only 25 results are
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.