PHPackages                             akamuraasai/hackerrank\_api - 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. akamuraasai/hackerrank\_api

ActiveLibrary[API Development](/categories/api)

akamuraasai/hackerrank\_api
===========================

A package to comunicate with Hacker Rank API.

1.1(9y ago)017MITPHPPHP &gt;=5.4.0

Since Feb 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/akamuraasai/HackerRankAPI)[ Packagist](https://packagist.org/packages/akamuraasai/hackerrank_api)[ RSS](/packages/akamuraasai-hackerrank-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Hacker Rank API
---------------

[](#hacker-rank-api)

This package consumes the Hacker Rank API, evaluating a given code and returning de output of the operation.

> An example file is included with informations about how to use this package properly.

#### How to use

[](#how-to-use)

First you'll need a HackerRank API Key that can be acquired [here](https://www.hackerrank.com/api/docs).

Make a copy of the `.env.example` file and rename it to `.env`. Inside the file, change the `HACKERRANK_API_KEY` value to your own key.

Then, just autoload the library and call it like this:

```
use AkamuraAsai\HackerRankAPI\HRCaller;

$caller = new HRCaller();
$result = $caller->use_testcases($code, $language, $test_inputs)->result;
```

Where `$code` is a variable containing the code that will run in Hacker Rank servers. The `$language` var is a integer containing the code of language used on above code. Last one `$test_inputs` containing the inputs of the tests that the code will run about.

The `use_testcases()` is the only function working for now. More will come in a future update.

#### List of Languages/Codes

[](#list-of-languagescodes)

CodeLanguage01C02C++03Java05Python06Perl07PHP08Ruby09C#10MySQL11Oracle12Haskell13Clojure14Bash15Scala16Erlang18Lua20JavaScript21Go22D23Ocaml24R25Pascal26SBCL30Python 331Groovy32Objective-C33F#36Cobol37Visual Basic38LOL Code39SmallTalk40TCL41Whitespace42TSQL43Java 844DB246Octave48XQuery49Racket50Rust51Swift54Fortran#### License

[](#license)

MIT license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community1

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Total

2

Last Release

3363d ago

### Community

---

Tags

apihackerrankphp

### Embed Badge

![Health badge](/badges/akamuraasai-hackerrank-api/health.svg)

```
[![Health](https://phpackages.com/badges/akamuraasai-hackerrank-api/health.svg)](https://phpackages.com/packages/akamuraasai-hackerrank-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
