/remote-ok-php

Remoteok.io API PHP Client

Primary LanguagePHPMIT LicenseMIT

remote-ok-php

Build Status

All Contributors

Remoteok.io API PHP Client

Installation

Install the package through Composer.

Run the Composer require command from the Terminal:

composer require alsoknownasdrew/remote-ok-php

Getting Started

require __DIR__ . '/vendor/autoload.php';

use Alsoknownasdrew\RemoteOK\ClientFactory;

$client = ClientFactory::create();

Usage

Fetch positions

Retrieve available positions from Remoteok.io.

$positions = $client->positions();

Get position properties

You can get the following properties from a Position object: company name, company logo URL, company location, creation date, description, position ID, is position original (boolean), slug, tags, title, URL.

Company Name

Get the name of the company.

$position->getCompany()->getName();

Company Logo URL

Get the full URL of the company's logo.

$position->getCompany()->getLogoUrl();

Company Location

Get the location of the company.

$position->getCompany()->getLocation();

Creation Date

Get the creation date of the position position posting.

$position->getCreatedAt();

Description

Get the description of the position posting.

$position->getDescription();

Position ID

Get the internal ID of the position on Remoteok.io.

$position->getId();

Position Originality

Check whether the position posting is original, return as a boolean.

$position->isOriginal();

Slug

Get the slug of the position posting on Remoteok.io.

$position->getSlug();

Tags

Get the tags associated with the position posting.

$position->getTags();

Title

Get the title of the position posting.

$position->getTitle();

Position URL

Get the full URL of the position posting on Remoteok.io.

$position->getUrl();

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Andriy

💻 🚧

Raphael

📖 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Contributing

Contributions are welcome. Before proceeding, please read the Code of Conduct AND CONTRIBUTING guides, which contains information about contribution process.

Code of Conduct

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.