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 3d ago

READMEChangelogDependencies (1)Versions (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 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

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

3408d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10934677?v=4)[Jonathan Willian](/maintainers/akamuraasai)[@akamuraasai](https://github.com/akamuraasai)

---

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

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[showdoc/showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online

12.8k7.1k](/packages/showdoc-showdoc)[netflie/whatsapp-cloud-api

The first PHP SDK to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform

668535.6k5](/packages/netflie-whatsapp-cloud-api)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36208.3k3](/packages/wrav-oembed)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

1110.7k7](/packages/hardcastle-xrpl-php)

PHPackages © 2026

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