PHPackages                             maniaba/asset-connect - 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. maniaba/asset-connect

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

maniaba/asset-connect
=====================

AssetConnect is a file management library for CodeIgniter 4 that allows you to associate files with any entity in your application

v1.0.1(3w ago)814.1k↑83.1%[1 PRs](https://github.com/maniaba/asset-connect/pulls)MITPHPPHP ^8.3CI passing

Since Dec 19Pushed 3w ago1 watchersCompare

[ Source](https://github.com/maniaba/asset-connect)[ Packagist](https://packagist.org/packages/maniaba/asset-connect)[ Docs](https://github.com/maniaba/asset-connect)[ RSS](/packages/maniaba-asset-connect/feed)WikiDiscussions develop Synced 1w ago

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

AssetConnect for CodeIgniter 4
==============================

[](#assetconnect-for-codeigniter-4)

[![PHPUnit](https://github.com/maniaba/asset-connect/actions/workflows/phpunit.yml/badge.svg)](https://github.com/maniaba/asset-connect/actions/workflows/phpunit.yml)[![PHPStan](https://github.com/maniaba/asset-connect/actions/workflows/phpstan.yml/badge.svg)](https://github.com/maniaba/asset-connect/actions/workflows/phpstan.yml)[![Deptrac](https://github.com/maniaba/asset-connect/actions/workflows/deptrac.yml/badge.svg)](https://github.com/maniaba/asset-connect/actions/workflows/deptrac.yml)[![Psalm](https://github.com/maniaba/asset-connect/actions/workflows/psalm.yml/badge.svg)](https://github.com/maniaba/asset-connect/actions/workflows/psalm.yml)[![Docs](https://github.com/maniaba/asset-connect/actions/workflows/docs.yml/badge.svg)](https://github.com/maniaba/asset-connect/actions/workflows/docs.yml)

[![PHP](https://camo.githubusercontent.com/9d9ec35e438d32eee58734a510238e61050b48e92f67595cd0047b61f5ece336/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e332d626c7565)](https://camo.githubusercontent.com/9d9ec35e438d32eee58734a510238e61050b48e92f67595cd0047b61f5ece336/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e332d626c7565)[![CodeIgniter](https://camo.githubusercontent.com/14f84477742f9319323f384e501b25958c1f5fe98dd93b4b281003e6ec0ac2a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d342e362b2d626c75652e7376673f7374796c653d666c61742d737175617265)](http://codeigniter.com/)[![License](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)

AssetConnect is a file management library for CodeIgniter 4 that allows you to associate files with any entity in your application. It provides a robust, flexible solution for handling file uploads, storage, and retrieval with powerful features like collections, custom properties, and secure access control.

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

[](#requirements)

- PHP 8.3 or higher
- CodeIgniter 4.6 or higher
- CodeIgniter Queue

Example Usage
-------------

[](#example-usage)

```
// Add an asset to a user
$asset = $user->addAsset('/path/to/file.jpg')
    ->withCustomProperties([
        'title' => 'Profile Picture',
        'description' => 'User profile picture'
    ])
    ->toAssetCollection();

// Get all assets for a user
$assets = $user->getAssets();

// Get the URL to an asset
$url = $user->getFirstAsset()->getUrl();

// Delete assets from a specific collection
$user->deleteAssets(ImagesCollection::class);
```

Documentation
-------------

[](#documentation)

Comprehensive documentation is available at .

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the media library? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

Testing
-------

[](#testing)

Run the test suite with:

```
composer test
```

For more detailed testing options:

```
# Run with code coverage
composer test -- --coverage-html=build/coverage

# Run static analysis
composer analyze
```

Changelog
---------

[](#changelog)

All notable changes to this project are documented in the [CHANGELOG.md](CHANGELOG.md) file.

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

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.

Security
--------

[](#security)

If you discover a security vulnerability, please send an email to  instead of using the issue tracker. All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

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

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance95

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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 ~49 days

Total

4

Last Release

24d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61078470?v=4)[maniaba](/maintainers/maniaba)[@maniaba](https://github.com/maniaba)

---

Top Contributors

[![maniaba](https://avatars.githubusercontent.com/u/61078470?v=4)](https://github.com/maniaba "maniaba (142 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")

---

Tags

asset-managementcodeingitercodigniter4file-uploadfilemanagementphp83codeigniterfilesfile-uploadphp8.3asset managementcodeigniter4filemanagementfile-connect

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/maniaba-asset-connect/health.svg)

```
[![Health](https://phpackages.com/badges/maniaba-asset-connect/health.svg)](https://phpackages.com/packages/maniaba-asset-connect)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k665.7M2.4k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k277.8M952](/packages/league-flysystem-aws-s3-v3)[league/flysystem-local

Local filesystem adapter for Flysystem.

226254.9M71](/packages/league-flysystem-local)[mikehaertl/php-tmpfile

A convenience class for temporary files

9731.5M20](/packages/mikehaertl-php-tmpfile)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8535.9M247](/packages/league-flysystem-memory)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6333.1M132](/packages/league-flysystem-sftp-v3)

PHPackages © 2026

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