PHPackages                             nkmani/netstorage-cms-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. nkmani/netstorage-cms-api

ActiveLibrary[API Development](/categories/api)

nkmani/netstorage-cms-api
=========================

A lightweight PHP client designed to interact with the Akamai NetStorage Usage and Configuration APIs.

v0.0.2(3mo ago)070↓50%Apache-2.0PHPPHP &gt;=8.2

Since Jan 27Pushed 3mo agoCompare

[ Source](https://github.com/nkmani/netstorage-cms-api)[ Packagist](https://packagist.org/packages/nkmani/netstorage-cms-api)[ RSS](/packages/nkmani-netstorage-cms-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

NetStorage CMS API
==================

[](#netstorage-cms-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0628f35b10cb4bb028cafdd0fec87bacb86df3fc31d17b6f780b95e45dfde1e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6b6d616e692f6e657473746f726167652d636d732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nkmani/netstorage-cms-api)[![Total Downloads](https://camo.githubusercontent.com/fa1841d67b19d202c8c8f959b72b42a20bb54afebba0c8af9904e2ae40fc0444/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6b6d616e692f6e657473746f726167652d636d732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nkmani/netstorage-cms-api)[![License](https://camo.githubusercontent.com/c5a4ec07ab5ff84bd7c77f185415142c5dc25b4a0da61e6c27cf6b29940bebda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6b6d616e692f6e657473746f726167652d636d732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nkmani/netstorage-cms-api)

A lightweight PHP client for interacting with the Akamai NetStorage Usage API. This package simplifies the process of managing files on Akamai NetStorage by handling authentication signatures and providing a clean interface for common operations.

Features
--------

[](#features)

- **Comprehensive File Operations**: Support for `dir`, `list`, `stat`, `du`, `download`, and `delete` actions.
- **Automated Authentication**: Handles the generation of complex `X-Akamai-ACS-Auth-Data` and `X-Akamai-ACS-Auth-Sign` headers.
- **Guzzle Integration**: Built on top of Guzzle 7 for reliable HTTP networking.
- **PSR-4 Compliant**: Easy to integrate into modern PHP projects.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require nkmani/netstorage-cms-api
```

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Guzzle HTTP Client ^7.0

Configuration
-------------

[](#configuration)

The client requires several Akamai-specific credentials. You can manage these using environment variables:

- `KEY`: Your NetStorage HTTP API key.
- `CP_CODE`: Your Content Provider code.
- `DOMAIN_PREFIX`: The prefix for your NetStorage domain.
- `UPLOAD_ACCOUNT_ID`: Your Akamai upload account ID.

Usage
-----

[](#usage)

### Basic Setup

[](#basic-setup)

```
use NetStorage\UsageAPI\Actions;

$config = [
    "key" => 'your-api-key',
    "cpCode" => 'your-cp-code',
    "domainPrefix" => 'your-domain-prefix',
    "uploadAccountId" => 'your-upload-account-id',
];

$client = new Actions($config);
```

### Examples

[](#examples)

**List Directory Contents**

```
$response = $client->list(["path" => "folder_name"]);
echo $response->getBody()->getContents();
```

**Check File Information (Stat)**

```
$response = $client->stat(["path" => "path/to/file.txt"]);
echo $response->getBody()->getContents();
```

**Download a File**

```
$response = $client->download(["path" => "path/to/file.txt"]);
echo $response->getBody()->getContents();
```

**Get Disk Usage (DU)**

```
$response = $client->du(["path" => "folder_name"]);
echo $response->getBody()->getContents();
```

Development
-----------

[](#development)

To run tests or contribute to the package:

1. Clone the repository.
2. Install development dependencies: `composer install`.
3. Copy `.env.example` to `.env` and fill in your credentials.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance79

Regular maintenance activity

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

2

Last Release

111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/725ea0c010856f4ba5a13cf4ff550ff29a80fc1de62569612c51dfc0ce6f2718?d=identicon)[nkmani](/maintainers/nkmani)

---

Top Contributors

[![nkmani](https://avatars.githubusercontent.com/u/1243150?v=4)](https://github.com/nkmani "nkmani (2 commits)")

---

Tags

apiclientconfigurationcmsakamaiusagenetstorage

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nkmani-netstorage-cms-api/health.svg)

```
[![Health](https://phpackages.com/badges/nkmani-netstorage-cms-api/health.svg)](https://phpackages.com/packages/nkmani-netstorage-cms-api)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[resend/resend-php

Resend PHP library.

574.7M21](/packages/resend-resend-php)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[markrogoyski/numverify-api-client-php

Numverify API Client for PHP

1220.9k](/packages/markrogoyski-numverify-api-client-php)

PHPackages © 2026

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