PHPackages                             manuelj555/dev-access-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. [Security](/categories/security)
4. /
5. manuelj555/dev-access-bundle

ActiveSymfonybundle[Security](/categories/security)

manuelj555/dev-access-bundle
============================

Agregar seguridad al usar app\_dev.php

0.1.x-dev(7y ago)01.6kMITPHP

Since Nov 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/manuelj555/DevAccessBundle)[ Packagist](https://packagist.org/packages/manuelj555/dev-access-bundle)[ RSS](/packages/manuelj555-dev-access-bundle/feed)WikiDiscussions 0.1 Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DevAccessBundle
===============

[](#devaccessbundle)

Este bundle permite proteger el accesso a **app\_dev.php** en los proyectos Symfony, con la finalidad de que solo usuarios autorizados puedan acceder por este medio.

**NOTA** El proyecto se ha configurado para funcionar en Symfony 2.8 y Symfony 3.

Instalación
-----------

[](#instalación)

Ejecutar

```
composer require manuelj555/dev-access-bundle ~0.1@dev

```

Registrar el Bundle en el AppKernel:

```
public function registerBundles()
{
    $bundles = array(
        ...
        new Manuel\Bundle\DevAccessBundle\DevAccessBundle(),
    );

    ...
}
```

En el **app/config/routing.yml** agregar:

```
dev_access:
    resource: "@DevAccessBundle/Controller/"
    type:     annotation
    prefix:   /admin
```

Y por último ajustar el archivo app\_dev.php de la siguiente manera:

```
...
// Comentar las lineas que verifican el acceso local
//if (isset($_SERVER['HTTP_CLIENT_IP'])
//    || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
//    || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'], true) || PHP_SAPI === 'cli-server')
//) {
//    header('HTTP/1.0 403 Forbidden');
//    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
//}

// y agregar debajo de la carga del autoload lo siguiente:
require __DIR__.'/../vendor/autoload.php';
Manuel\Bundle\DevAccessBundle\Security\Access::check(__DIR__.'/var/cache'); // Agregar esta linea

Debug::enable();
```

y con eso ya el bundle ha quedado configurado:

Ruta de configuración de acceso
-------------------------------

[](#ruta-de-configuración-de-acceso)

Para administrar los accesos se debe acceder a:

```
/admin/dev-access/config

```

Configuración adicional
-----------------------

[](#configuración-adicional)

```
dev_access:
    roles:       # Roles con acceso al modulo de administracion
        - ROLE_ADMIN
    users:   # Usuarios especificos con acceso al modulo de administracion
        - admin
    sessions_path: '%kernel.project_dir%/var/cache'   # Ruta donde se van a generar los archivos de sesion
    environment: dev         # entorno en el que se está trabajando con acceso restringido
```

Importante
==========

[](#importante)

En el app\_dev.php al añadir la linea `Manuel\Bundle\DevAccessBundle\Security\Access::check(__DIR__.'/var/cache');` la ruta pasada como argumento debe ser la misma que la colocada en la configuracion del bundle.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

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

2746d ago

### Community

Maintainers

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

---

Top Contributors

[![manuelj555](https://avatars.githubusercontent.com/u/1214013?v=4)](https://github.com/manuelj555 "manuelj555 (12 commits)")[![maguirreoptime](https://avatars.githubusercontent.com/u/213988915?v=4)](https://github.com/maguirreoptime "maguirreoptime (1 commits)")

### Embed Badge

![Health badge](/badges/manuelj555-dev-access-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/manuelj555-dev-access-bundle/health.svg)](https://phpackages.com/packages/manuelj555-dev-access-bundle)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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