PHPackages                             sansis/basebundle - 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. [Framework](/categories/framework)
4. /
5. sansis/basebundle

ActiveSymfony-bundle[Framework](/categories/framework)

sansis/basebundle
=================

SanSIS Base Bundle for Symfony development

v1.0.0(9y ago)3413BSDJavaScript

Since Jul 19Pushed 9y ago5 watchersCompare

[ Source](https://github.com/phackwer/BaseBundle)[ Packagist](https://packagist.org/packages/sansis/basebundle)[ RSS](/packages/sansis-basebundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

README
======

[](#readme)

This Bundle for Symfony solves some of the most basic issues on web development at SanSIS. Currently, there are over 15 projects using it directly on the brazilian government.

A responsive interface, an easy to use way to create cruds (automation on the way), user administration, and the mini data-mining bundle plus the messaging bundle provides eveything small enterprises look for when trying to reduce costs on their development.

Serving as base for the development, it forces the programmer to adopt a lot of good practices and to follow standards for their codind.

Requires
--------

[](#requires)

```
        "friendsofsymfony/jsrouting-bundle" : "1.4.*@dev",
        "braincrafted/bootstrap-bundle" : "2.0.*",
        "twitter/bootstrap" : "3.1.*",
        "knplabs/knp-menu-bundle" : "1.1.2",
        "knplabs/knp-paginator-bundle" : "~2.4",
        "psliwa/pdf-bundle" : "dev-master"
```

Use it in another project
-------------------------

[](#use-it-in-another-project)

composer.json:

```
    [...]
    "require" : {
        [...]
        "sansis/basebundle" : "dev-master"
    },
    "repositories" : [{
        "type" : "vcs",
        "url" : "https://github.com/phackwer/BaseBundle.git"
    }],
    [...]
```

Add to AppKernel
----------------

[](#add-to-appkernel)

```
         //SanSIS Core Production Bundles
         new SanSIS\Core\BaseBundle\SanSISCoreBaseBundle(),
```

Add to routing.yml
------------------

[](#add-to-routingyml)

```
san_sis_core_base:
    resource: "@SanSISCoreBaseBundle/Resources/config/routing.yml"
    prefix:   /
```

Extend your twigs
-----------------

[](#extend-your-twigs)

Use {% extends "SanSISCoreBaseBundle::base.html.twig" %} on your twig templates to work ok Remember you can change a lot of blocks. Check the resource and modify the blocks you want.

Extend your AppKernel
---------------------

[](#extend-your-appkernel)

Change your kernel to extend from the one provided by BaseBundle.

Change:

```
use Symfony\Component\HttpKernel\Kernel;
```

To:

```
use SanSIS\Core\BaseBundle\Component\HttpKernel\Kernel;
```

Customize your base.html.twig to extend from BaseBundle
-------------------------------------------------------

[](#customize-your-basehtmltwig-to-extend-from-basebundle)

This is a sample on how to create your own visual identity and the main blocks of code for your page layout

{% extends "SanSISCoreBaseBundle::base.html.twig" %}

{% block css %}

{% endblock %} {% block title %}Company's name - System's name{% endblock %}

{% block sigla\_sistema %}SYS{% endblock %} {% block descricao\_sistema %}System's name{% endblock %}

{% block entidade\_sistema %}Entity's name{% endblock %} {% block info\_sessao %}Anything you want{% endblock %}

{% block page\_menu %}{{ knp\_menu\_render('YourProjectBundle:Builder:menu', {'nav\_type': 'navbar', 'template':'SanSISCoreBaseBundle:menu:sansis\_menu.html.twig'}) }}{% endblock %}

{% block copyright\_footer %} © Company's name {% endblock %}

{% block javascript\_libs %}

&lt;script type="text/javascript" src="{{ asset('bundles/yourproject/js/functions.js') }}"&gt;&lt;/script&gt; {% endblock %}

Use the CRUD structure of BaseBundle for powerfull and fast development!
------------------------------------------------------------------------

[](#use-the-crud-structure-of-basebundle-for-powerfull-and-fast-development)

The most amazing and useful function of BaseBundle is the Crud Infrastructure created for it.

You may use it for complex entities with a huge number of inner entities (that can have their own inner entity as well!).

For this, you must declare the @innerEntity annotation on top of vars that are ArrayCollections from Doctrine project.

And your form field's names must follow the object infrastructure.

Here are the objects you must extend from in order to get it working:

- Controllers: \\SanSIS\\Core\\BaseBundle\\Controller\\ControllerCrudAbstract
- Services: \\SanSIS\\Core\\BaseBundle\\Service\\EntityServiceAbstract
- Entities: \\SanSIS\\Core\\BaseBundle\\Entity\\AbstractBase
- Repositories: \\SanSIS\\Core\\BaseBundle\\EntityRepository\\AbstractBase

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 89.9% 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

Unknown

Total

1

Last Release

3590d ago

### Community

Maintainers

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

---

Top Contributors

[![phackwer](https://avatars.githubusercontent.com/u/4871786?v=4)](https://github.com/phackwer "phackwer (187 commits)")[![regisnew](https://avatars.githubusercontent.com/u/2974576?v=4)](https://github.com/regisnew "regisnew (17 commits)")[![dsousap](https://avatars.githubusercontent.com/u/5314077?v=4)](https://github.com/dsousap "dsousap (4 commits)")

---

Tags

base bundle symfony development

### Embed Badge

![Health badge](/badges/sansis-basebundle/health.svg)

```
[![Health](https://phpackages.com/badges/sansis-basebundle/health.svg)](https://phpackages.com/packages/sansis-basebundle)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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