PHPackages                             strukt/pkg-asset - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. strukt/pkg-asset

ActiveStrukt-module[Utility &amp; Helpers](/categories/utility)

strukt/pkg-asset
================

Simple Asset Finder

v1.0.8-alpha(1y ago)023MITPHP

Since Nov 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/struktapp/pkg-asset)[ Packagist](https://packagist.org/packages/strukt/pkg-asset)[ RSS](/packages/strukt-pkg-asset/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (6)Versions (10)Used By (0)

Strukt Asset
============

[](#strukt-asset)

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

[](#installation)

```
composer require strukt/pkg-asset:v1.0.8-alpha
```

If need be you need to install the middlewares, providers and commands:

```
./xcli publish:package pkg-asset
```

Usage
-----

[](#usage)

### Environment Variables

[](#environment-variables)

You may put a reference in `.env` for your static directory.

```
rel_static_dir = static
```

You will also need to make sure you bootstrap.

```
Env::withFile(".env");
env("root_dir", getcwd());
```

### Simple Asset Manager

[](#simple-asset-manager)

```
// $finder = new \Strukt\Asset($root_dir, $static_dir);
// $finder = asset($root_dir, $static_dir);
$finder = asset();
$finder->exists("/js/script.js");
$finder->getInfo("/js/script.js");//SplFileInfo
$finder->get("/js/script.js");//returns contents of file
```

### Image Resize

[](#image-resize)

```
$image = new \Gumlet\ImageResize();
$image = new \Gumlet\ImageResize('image.jpg');
$image->scale(50);
$image->save('image2.jpg')

$image = new \Gumlet\ImageResize('image.jpg');
$image->resizeToHeight(500);
$image->save('image2.jpg')
```

Credits
-------

[](#credits)

For more on `Gumlet` see [Gumlet/ImageResize](https://github.com/gumlet/php-image-resize) on Github.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance47

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Recently: every ~285 days

Total

9

Last Release

390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f77a56030c77ce25f7fcf6db800e45bb6a31bf3c07740b43aeabcdf5e9edec2?d=identicon)[pitsolu](/maintainers/pitsolu)

---

Top Contributors

[![pitsolu](https://avatars.githubusercontent.com/u/16669704?v=4)](https://github.com/pitsolu "pitsolu (39 commits)")

### Embed Badge

![Health badge](/badges/strukt-pkg-asset/health.svg)

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

###  Alternatives

[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[wp-hooks/generator

Generates a JSON representation of the WordPress actions and filters in your code

86178.4k3](/packages/wp-hooks-generator)[stepanenko3/nova-cards

A Laravel Nova info cards.

33143.0k](/packages/stepanenko3-nova-cards)

PHPackages © 2026

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