PHP code example of alsoknownasdrew / remote-ok-php
1. Go to this page and download the library: Download alsoknownasdrew/remote-ok-php 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/ */
alsoknownasdrew / remote-ok-php example snippets
use Alsoknownasdrew\RemoteOK\Client\Factory\ClientFactory;
$client = ClientFactory::create();
$positions = $client->positions();
$positions = $client->positions(5); // will return an array with the 5 most recent positions
h
$position = $positions[0];
$position->getCompany()->getName();
$position->getCompany()->getLogoUrl();
$position->getCompany()->getLocation();
$position->getCreatedAt();
$position->getDescription();
$position->getId();
$position->isOriginal();
$position->getSlug();
$position->getTags();
$position->getTitle();
$position->getUrl();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.