PHPackages                             dmelo/embed-files - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. dmelo/embed-files

ActiveLibrary[File &amp; Storage](/categories/file-storage)

dmelo/embed-files
=================

0.1.3(8y ago)143PHPPHP ^7.0

Since Feb 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dmelo/embed-files)[ Packagist](https://packagist.org/packages/dmelo/embed-files)[ RSS](/packages/dmelo-embed-files/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Embed-Files
===========

[](#embed-files)

Prepare files to be written on Arduino and MBed OS devices flash.

Install:
--------

[](#install)

```
composer require dmelo/embed-files

```

Usage:
------

[](#usage)

```
Usage: ./vendor/bin/embed-files PLATFORM SOURCE_DIR OUTPUT_H

    PLATFORM - Possible values are "arduino" and "mbedos"
    SOURCE_DIR - Directory that contains all files to be encoded
    OUTPUT_H - Output C header file name where the encoded failes will be stored

```

Where `SOURCE_DIR` is the directory containing all the files to be encoded. So far, it is not recursive. And `OUTPUT_H` is the output C header file that will contain the files, in binary format.

If `SOURCE_DIR` contains a file name `jquery.min.js`, then that file will be availeble on the variable named `JQUERY_MIN_JS`.

Accessing strings on Arduino and ESP8266
----------------------------------------

[](#accessing-strings-on-arduino-and-esp8266)

Due to the fact that Arduino/ESP8266 flash can only be fetched in chunks of 32 bits. You need be carefull accessing that data. Refer to http://arduino-esp8266.readthedocs.io/en/latest/PROGMEM.html to get the details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2928d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05ab8aebb8755f73e27f31b70bc7b64536abec420fdcf30f3f7c6bc3c45ee639?d=identicon)[dmelo](/maintainers/dmelo)

---

Top Contributors

[![dmelo](https://avatars.githubusercontent.com/u/89710?v=4)](https://github.com/dmelo "dmelo (7 commits)")

### Embed Badge

![Health badge](/badges/dmelo-embed-files/health.svg)

```
[![Health](https://phpackages.com/badges/dmelo-embed-files/health.svg)](https://phpackages.com/packages/dmelo-embed-files)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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