PHPackages                             rkirkels/codedump\_io - 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. rkirkels/codedump\_io

ActiveLibrary[API Development](/categories/api)

rkirkels/codedump\_io
=====================

A PHP-client for the CodeDump.io API

1.0.0(10y ago)05CC-BY-NC-4.0PHPPHP &gt;=5.0

Since Aug 16Pushed 10y ago2 watchersCompare

[ Source](https://github.com/rkirkels/CodeDump.io-API-client-PHP)[ Packagist](https://packagist.org/packages/rkirkels/codedump_io)[ Docs](https://github.com/rkirkels/CodeDump.io-API-client-PHP)[ RSS](/packages/rkirkels-codedump-io/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

CodeDump.io-API-client-PHP
==========================

[](#codedumpio-api-client-php)

A PHP Client for the CodeDump.io API

What is CodeDump.io?
--------------------

[](#what-is-codedumpio)

CodeDump.io is a website where programmers can dump any code or configuration they like in any language they desire, in order for other programmers to benefit from it.

What does this client do?
-------------------------

[](#what-does-this-client-do)

CodeDump.io-API-client-PHP provides everything you need to communicate with the [CodeDump.io](http://codecump.io) API:

- upload code from from a string of a source file
- request available languages
- request available access types

How to install the client?
--------------------------

[](#how-to-install-the-client)

The client can easily be installed using [Composer](http://getcomposer.org):

```
"require": { "rkirkels/codedump_io": "dev-master" }

```

Prerequisites
-------------

[](#prerequisites)

In order to use the this client, you need:

- A (free) account with CodeDump.io to obtain your API key and secret.
- PHP-cURL modules installed.

How to use this client in your code?
------------------------------------

[](#how-to-use-this-client-in-your-code)

The client can be instantiate as a new object:

```
$client = new \codedump_io\CodeDumpClient(,);

```

Or as a singleton:

```
$client = \codedump_io\CodeDumpClient::getInstance(,);

```

*The API key and secret can also be defined in the in src/CodeDumpClient.php file, so you don't have to provide them when instantiating.*

Example code
------------

[](#example-code)

```
$client = \codedump_io\CodeDumpClient::getInstance(,);

// Get all available languages:
$client->command('languages/get');
$languages = $client->response();

// Get all access types:
$client->command('access/get');
$accessTypes = $client->response();

// Post some PHP code:
$title = 'Some cool title for your code dump';
$description = 'Some text to describe your piece of code.'; // You can use EOL characters if needed
$code = ''; // Your actual code
$accessType = 'public';
$language = "PHP";

$linkToCodeDump = $client->addCode($title, $description, $code , $accessType, $language);

// Post code from a file:
$title = 'Some cool title for your code dump';
$description = 'Some text to describe your piece of code.'; // You can use EOL characters if needed
$file = 'file_containing_code.php';
$accessType = 'public';
$language = "PHP";

$linkToCodeDump = $client->addCodeFromFile($title, $file, $description, $accessType, $language);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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 ~2 days

Total

2

Last Release

3917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e2826b32aa4e5fd55d24a6d4f9a30e9337a85528a07073f34a662f61f4ee221?d=identicon)[rutgerkirkels](/maintainers/rutgerkirkels)

---

Tags

apiclientCodeDump.io

### Embed Badge

![Health badge](/badges/rkirkels-codedump-io/health.svg)

```
[![Health](https://phpackages.com/badges/rkirkels-codedump-io/health.svg)](https://phpackages.com/packages/rkirkels-codedump-io)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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