PHPackages                             digfish/php-meocloud-cli - 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. digfish/php-meocloud-cli

ActiveLibrary[API Development](/categories/api)

digfish/php-meocloud-cli
========================

Meocloud PHP API Implementation

0.1(3y ago)07Apache-2.0PHP

Since Jul 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/digfish/php-meocloud-cli)[ Packagist](https://packagist.org/packages/digfish/php-meocloud-cli)[ RSS](/packages/digfish-php-meocloud-cli/feed)WikiDiscussions master Synced 1mo ago

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

### php-meocloud-cli

[](#php-meocloud-cli)

PHP API Client implementation for the [Meocloud Storage System](https://meocloud.pt/documentation).

Install
-------

[](#install)

The package is hosted on [packagist](http://packagist.org). To install run:

```
composer require --dev digfish/php-meocloud-cli

```

Get credentials
---------------

[](#get-credentials)

To use this application, you must be a Meo Client, register at MeoCloud with your MeoID, and there [register for a new application](https://meocloud.pt/my_apps). Get your Consumer key and Secret and Choose "Out of Band" has the way to authorize the tokens. Uncheck "sandbox" in order to have total access, then a create a file `.env` in the main directory with this content:

```
CONSUMER_KEY=
CONSUMER_SECRET=

```

Using this file execute the script `grab_credentials.php` in the main directory, you will prompted to visit an url in your browser, click "AUTORIZAR" and you will be provided with a PIN that you should input at the script. If everything goes well, the `.env` file will be rewritten with the new oauth token and oauth secret. With this data provided, you are ready to use the project.

Code example
------------

[](#code-example)

```
use \digfish\meocloudclient\MeocloudClient;

$meo = new MeocloudClient();
// grab the root directory list
$dirlist = $meo->get_metadata();
// send a file to meocloud
$meo->send_file('README.md');
// get a file from meocloud
$meo->get_file('README.md');
// create directory
$meo->create_folder('ola');
// delete file
$meo->delete_file('README.md');
```

Unit tests
----------

[](#unit-tests)

You have a file with unitary tests: `MeocloudClientTest.php`. Just run `phpunit MeocloudClientTest.php`.

Environment variables
---------------------

[](#environment-variables)

The variables `CONSUMER_KEY`,`CONSUMER_SECRET`,`OAUTH_TOKEN` and `OAUTH_TOKEN_SECRET` should hold the value of your API key. You can set this via a .`env` file or your own code using `putenv` or for example `$_ENV['OAUTH_TOKEN_SECRET']`.

What is implemented
-------------------

[](#what-is-implemented)

MethodAPIget\_metadata()GET Metadata/meocloud/get\_file()GET Files/meocloud/:namesend\_file()PUT Files/meocloud/:namedelete\_file()POST Fileops/Deletecreate\_folder()POST Fileops/CreateFolder---

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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

Unknown

Total

1

Last Release

1409d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9053a6f912f05b1e1ea470a81331751af91b7a36a097744070db566332620d2?d=identicon)[digfish](/maintainers/digfish)

---

Top Contributors

[![digfish](https://avatars.githubusercontent.com/u/717142?v=4)](https://github.com/digfish "digfish (3 commits)")

### Embed Badge

![Health badge](/badges/digfish-php-meocloud-cli/health.svg)

```
[![Health](https://phpackages.com/badges/digfish-php-meocloud-cli/health.svg)](https://phpackages.com/packages/digfish-php-meocloud-cli)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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