PHPackages                             mechawrench/php-skynet - 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. mechawrench/php-skynet

ActiveLibrary

mechawrench/php-skynet
======================

v0.2.1(5y ago)3201[1 issues](https://github.com/mechawrench/php-skynet/issues)MITPHPPHP ^7.4

Since Jul 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mechawrench/php-skynet)[ Packagist](https://packagist.org/packages/mechawrench/php-skynet)[ Docs](https://github.com/mechawrench/php-skynet)[ RSS](/packages/mechawrench-php-skynet/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (6)Versions (7)Used By (0)

PHP-SkyNet
==========

[](#php-skynet)

#### For use with SiaCoin's Global SkyNet Network

[](#for-use-with-siacoins-global-skynet-network)

[![PHP-Skynet](https://camo.githubusercontent.com/23516a4bf9c0fac632bc21ef55dbb4cbd51884334a89c7c7ccb0eefc6873b96a/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f5048502d536b794e65742e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d656368617772656e63682532465048502d536b794e6574267061747465726e3d63616765267374796c653d7374796c655f31266465736372697074696f6e3d536961436f696e2b536b796e65742532432b666f722b504850253231266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667 "PHP-Skynet Package")](https://camo.githubusercontent.com/23516a4bf9c0fac632bc21ef55dbb4cbd51884334a89c7c7ccb0eefc6873b96a/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f5048502d536b794e65742e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d656368617772656e63682532465048502d536b794e6574267061747465726e3d63616765267374796c653d7374796c655f31266465736372697074696f6e3d536961436f696e2b536b796e65742532432b666f722b504850253231266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0f6765558dc6bfb6f98965b947ce6e97223a991aa5693db4762a9656f00fc677/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d656368617772656e63682f7068702d736b796e65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mechawrench/php-skynet)[![Tests](https://github.com/mechawrench/php-skynet/workflows/Tests/badge.svg)](https://github.com/mechawrench/php-skynet/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/5dfef36829658a0009f95d69a1f86e2384680ccf68bd1d15a35a0733e9259823/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d656368617772656e63682f7068702d736b796e65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mechawrench/php-skynet)

SkyNet by SiaCoin allows for users to upload files for download by anyone else in the world. I noticed there was no support for PHP/Laravel so I created a package to upload/download files from SkyNet.

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

[](#installation)

You can install the package via composer:

```
composer require mechawrench/php-skynet
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Mechawrench\PhpSkynet\PhpSkynetServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    'default_portal_url' => env('SKYNET_DEFAULT_PORTAL_URL'),

    'siad_host' => env('SIAD_HOST'),

    'siad_api_key' => env('SIAD_API_KEY'),
];
```

Usage
-----

[](#usage)

- Ensure you fill out the config file, or preferably the environment variables
- Decide if you will use a SkyNet web portal or your own Siad instance
    - We will not get into details of configuring this on your own, technical skills are assumed

```
// SkyNet Portal Usage
// Stores files under storage/app
$upload = \Mechawrench\PhpSkynet\PhpSkynet::upload(storage_path('app/Bitcoin-Accepted-Here-Button-PNG-Clipart.png'));
$download = \Mechawrench\PhpSkynet\PhpSkynet::download('GAAGFVdQTCpf43KH7Wami5iNldaEHbyxQXhjDkd_ifob2g');

// Private Siad Instance Usage
$upload = \Mechawrench\PhpSkynet\PhpSkynet::uploadSiad('Bitcoin-Accepted-Here-Button-PNG-Clipart.png', storage_path('app/Bitcoin-Accepted-Here-Button-PNG-Clipart.png'), $my_optional_siad_host, $my_optional_siad_apiKey);
$download = \Mechawrench\PhpSkynet\PhpSkynet::downloadSiad($skyLink, $optional_filename, $optional_siad_host);
```

Current Limitations
-------------------

[](#current-limitations)

- Can only upload/download single files at a time for now

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jesse Schneider](https://github.com/Mechawrench)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

4

Last Release

2031d ago

### Community

Maintainers

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

---

Top Contributors

[![mechawrench](https://avatars.githubusercontent.com/u/7636463?v=4)](https://github.com/mechawrench "mechawrench (26 commits)")

---

Tags

laravelphpsiacoinskynetphp-skynet

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mechawrench-php-skynet/health.svg)

```
[![Health](https://phpackages.com/badges/mechawrench-php-skynet/health.svg)](https://phpackages.com/packages/mechawrench-php-skynet)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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