PHPackages                             sauls/components-bundle - 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. sauls/components-bundle

ActiveSymfony-bundle

sauls/components-bundle
=======================

All Sauls components bundle for Symfony framework

v1.0.5(5y ago)154MITPHPPHP &gt;=7.4

Since Aug 21Pushed 5y agoCompare

[ Source](https://github.com/sauls/components-bundle)[ Packagist](https://packagist.org/packages/sauls/components-bundle)[ RSS](/packages/sauls-components-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (8)Versions (8)Used By (0)

Sauls Components Bundle
=======================

[](#sauls-components-bundle)

[![Build Status](https://camo.githubusercontent.com/30ce608c6e97c7654023388ff624e024335cb65daffce821748c9900b7fd0cbc/68747470733a2f2f7472617669732d63692e6f72672f7361756c732f636f6d706f6e656e74732d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sauls/components-bundle)[![Packagist](https://camo.githubusercontent.com/0f52351e6d601c598d0851104114a31e834e895cb910676763bfe3d051937152/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7361756c732f636f6d706f6e656e74732d62756e646c652e737667)](https://packagist.org/packages/sauls/components-bundle)[![Total Downloads](https://camo.githubusercontent.com/252fa8f7618d79403660f8ff6c736e2d772d8563cc35fbdf78714149f78cefae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7361756c732f636f6d706f6e656e74732d62756e646c652e737667)](https://packagist.org/packages/sauls/components-bundle)[![Coverage Status](https://camo.githubusercontent.com/f003c445af7340d10b5eff79aecbd2bebc693703a6f63ab655e6b866224aafbd/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f7361756c732f636f6d706f6e656e74732d62756e646c652e737667)](https://coveralls.io/github/sauls/components-bundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4d0fa7f497aaf8a033cf2727fb474f2c116ef928c9d275f1ff15ea21aaf645fd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7361756c732f636f6d706f6e656e74732d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sauls/components-bundle/?branch=master)[![License](https://camo.githubusercontent.com/3639f2295e7bd429a1ad4dea59b92999035ed1d9b719307e29f4b2cb2ad7c1d9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7361756c732f636f6d706f6e656e74732d62756e646c652e737667)](https://packagist.org/packages/sauls/components-bundle)

All Sauls components bundle for Symfony framework.

This bundle integrates the following packages:

- [sauls/helpers](https://github.com/sauls/helpers)
- [sauls/widget](https://github.com/sauls/widget)
- [sauls/collections](https://github.com/sauls/collections)
- [sauls/options-resolver](https://github.com/sauls/options-resolver)

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

[](#requirements)

PHP &gt;= 7.2

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

[](#installation)

### Using composer

[](#using-composer)

```
$ composer require sauls/components-bundle
```

> If you are using Symfony flex the bundle will be auto registered.

### Apppend the composer.json file manually

[](#apppend-the-composerjson-file-manually)

```
{
    "require": {
        "sauls/components-bundle": "^1.0"
    }
}
```

Register bundle
---------------

[](#register-bundle)

If you are using symfony/flex the bundle will be auto registered for you. Otherwise append your bundles.php file.

```
return [
    // ...
    new Sauls\Bundle\Components\SaulsComponentsBundle:class => ['all'],
    //...
];
```

Full configuration
------------------

[](#full-configuration)

```
sauls_components:
    helpers: ~ # default true
    widgets: ~ # default true
    components:
      # Access component
      # access: ~ # default false
      access:
        protected_routes: # Routes that only allowed ips can access
          - "secret_route_"
          - "users_"
        allowed_ips:
          - "127.0.0.1/8"
```

Helpers in twig
---------------

[](#helpers-in-twig)

```
{{ '2018-01-12'|elapsed }}
{{ '2017-12-31'|countdown('2018-01-01') }}
{{ 'weird_string'|camelize }}
{{ 'AnotherWeirdString'|snakeify }}
{% set ms = 'super,duper#string'|multi_split([',', '#']) %}
{{ 'test&nottest=2'|base64_url_encode }}
{{ 'dGVzdCZub3R0ZXN0PTI='|base64_url_decode }}
{{ 'one two three'|count_words }}
{{ 'Helllo. World. Is it? Or not?'|count_sentences }}
{{ 'Hello world!'|truncate(5) }}
{{ 'Hello magical world!'|truncate_words(2) }}
{{ 'Hello. World. Are you real?'|truncate_sentences(2, '..') }}
{{ 'Hello world!'|truncate_html(5, '') }}
{{ 'Hello world of life.'|truncate_html_words(2, '') }}
{{ 'Hello world. How is your life? is it good?'|truncate_html_sentences(2, '') }}
```

Widgets support
---------------

[](#widgets-support)

Create your widget(s)

```
class MyWidget extends Widget
{
    // Implement methods or add your own logic
}

class MyViewWidget extends ViewWidget
{
    // Implement methods or add your own logic
}
```

Register them to container

```
services:
    MyWidget:
      tags: ['sauls_widget.widget']
    MyViewWidget:
      tags: ['sauls_widget.widget']
```

Or if you are using autowire feature, you don't need to do anything it will be added automatically.

Views
-----

[](#views)

Create your own view(s)

```
use Sauls\Component\Widget\View\ViewInterface;

class MyView implements ViewInterface
```

Register them to container

```
services:
    MyWiew:
      tags: ['sauls_widget.view']
```

Or if you are using autowire feature, you don't need to do anything it will be added automatically.

Additional collection type converters
-------------------------------------

[](#additional-collection-type-converters)

Create your converter(s)

```
use Sauls\Component\Helper\Operation\TypeOperation\Converter\ConverterInterface;

class IntToStringConverter implements ConverterInterface
{
    // Implement the methods
}
```

Register them to container

```
services:
    IntToStringConverter:
      tags: ['sauls_collection.converter']
```

Or if you are using autowire feature, you don't need to do anything it will be added automatically.

After that you can use your new converter `convert_to(1, 'string')`.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

7

Last Release

2086d ago

### Community

Maintainers

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

---

Top Contributors

[![sauls](https://avatars.githubusercontent.com/u/7901434?v=4)](https://github.com/sauls "sauls (40 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sauls-components-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sauls-components-bundle/health.svg)](https://phpackages.com/packages/sauls-components-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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