PHPackages                             alexpts/php-simple-static-manager - 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. alexpts/php-simple-static-manager

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

alexpts/php-simple-static-manager
=================================

Simple static manager

1.2.1(8y ago)1102[2 issues](https://github.com/alexpts/php-simple-static-manager/issues)MITPHPPHP &gt;=7.1

Since Sep 18Pushed 8y ago1 watchersCompare

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

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

php-simple-static-manager
=========================

[](#php-simple-static-manager)

[![SensioLabsInsight](https://camo.githubusercontent.com/1a7712a233fd51d8910b2dfe66cccfcd785575ce8016dfa07a7140012116fa7d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61303138336366662d326538632d346336642d383436362d3237353661643337343030322f6269672e706e67)](https://insight.sensiolabs.com/projects/a0183cff-2e8c-4c6d-8466-2756ad374002)

[![Build Status](https://camo.githubusercontent.com/02334b72ecbb869a14932744822fcbfa1d22f4ccd8fddff653408db36e34186d/68747470733a2f2f7472617669732d63692e6f72672f616c65787074732f7068702d73696d706c652d7374617469632d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexpts/php-simple-static-manager)[![Test Coverage](https://camo.githubusercontent.com/99cc6e7ab08c24b0bb578b9a1523230cdd6cb063347d786fc31300593bf75f78/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f616c65787074732f7068702d73696d706c652d7374617469632d6d616e616765722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/alexpts/php-simple-static-manager/coverage)[![Code Climate](https://camo.githubusercontent.com/e1194ab009ec62e4f20c907defb255da002bc0e36debd29f04437743a38fb0d3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f616c65787074732f7068702d73696d706c652d7374617469632d6d616e616765722f6261646765732f6770612e737667)](https://codeclimate.com/github/alexpts/php-simple-static-manager)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/caaead318553e8ddc8f048bcc01116b951cf54a9a72c4de1398eb612b0890b55/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f7068702d73696d706c652d7374617469632d6d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/php-simple-static-manager/?branch=master)

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

[](#installation)

```
$ composer require alexpts/php-simple-static-manager

```

Пример
------

[](#пример)

```
$staticManager = new StaticManager(new Collection);
$css = $staticManager->getCssSet();
$js = $staticManager->getJsHeaderSet();

$package = new Package(new StaticVersionStrategy('v1'));

$css->addItem('bootstrap2', $package->getUrl('/bootstrap/3.3.6/css/bootstrap.css'));
$css->addItem('bootstrap', '/bootstrap/3.3.6/css/bootstrap.min.css', 90);
$css->addItem('bootstrap', ['href' => '/bootstrap/3.3.6/css/bootstrap.min.css', 'rel' => 'less'], 90);

$js->addItem('vue.js', ['src' => '/vue.min.js', 'type' => 'module'], 100);
$js->addItem('vue-router.js', '/vue-router.min.js');
$js->addItem('vue-router.js', 'https://yandex.st/vue-resource.min.js', 10); // cdn

echo $staticManager->drawStyles();
```

Вы можете зарегистрировать js/css ресурс с определенным приоритетом. Это позволяет загрузить библиотеки, вроде jquery с высшим приоритетом до вашего кода. При этом объявить зависимость в коде можно где угодно и в любом порядке.

Коллекция ресурсов представлена объектом коллекции:

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

3219d ago

PHP version history (2 changes)1.0.0PHP &gt;7.0.0

1.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/31106536118e11bf9d0c9d7f467db5b534efa9c46ee76680b308f0c39d9a798c?d=identicon)[alexpts](/maintainers/alexpts)

---

Top Contributors

[![alexpts](https://avatars.githubusercontent.com/u/1306916?v=4)](https://github.com/alexpts "alexpts (10 commits)")

---

Tags

assetsresource-managerstaticsymfony3packagecssJSstaticassetresources

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexpts-php-simple-static-manager/health.svg)

```
[![Health](https://phpackages.com/badges/alexpts-php-simple-static-manager/health.svg)](https://phpackages.com/packages/alexpts-php-simple-static-manager)
```

###  Alternatives

[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k32.3M424](/packages/matthiasmullie-minify)[composer/satis

Simple Repository Generator

3.3k1.4M19](/packages/composer-satis)[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8884.8M41](/packages/fxp-composer-asset-plugin)[stolz/assets

An ultra-simple-to-use assets management library

289527.4k8](/packages/stolz-assets)[onokumus/metismenu

A jQuery menu plugin

2.0k268.5k5](/packages/onokumus-metismenu)[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177289.8k26](/packages/foxy-foxy)

PHPackages © 2026

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