Download the PHP package phil/route-access-check-bundle without Composer

On this page you can find all versions of the php package phil/route-access-check-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package route-access-check-bundle

phil/route-access-check-bundle

bin/console phil:route-access:check: every route of the application has an access rule, or the CI step fails.

phil/route-access-check-bundle brings phil/route-access-check into a Symfony application as a console command. It checks every route of the router against the rules that protect it — #[IsGranted], the firewalls and the access_control entries of the security configuration, and the explicit public declarations — and exits with 1 when a route has no rule, or contradicts itself. The report lists each route with its resolved rule, in text for a person, in JSON for a tool, as GitHub annotations on the controllers, or as JUnit for a CI server.

It is for any Symfony application that wants its access rules reviewed by the build rather than by memory. The security configuration is read from the services SecurityBundle builds, after every configuration file is merged, so the check sees exactly what the application runs: when@ blocks, PHP configuration, parameters, route: entries. It registers its services in the dev and test environments only: no listener, nothing in production.

It is built on the components Symfony already ships: Config and DependencyInjection for the configuration and the compiler pass, Console for the command, Filesystem for the baseline file.

Status

Part State
The command, its four formats, its baseline and its strict mode Implemented and tested
Firewalls and access_control read from SecurityBundle's services Implemented and tested, against SecurityBundle in a kernel
Controller services whose id is not their class Implemented and tested
Detectors and formats of the application, autoconfigured Implemented and tested
Nothing registered outside the configured environments Implemented and tested

Documentation

Document What it covers
Installation Requirements, installing, registering the bundle for dev and test only.
Configuration Every key of phil_route_access_check.
The command Its options, exit codes, and a continuous integration step.
Extension points Detectors and formats of the application, the services and parameters.
Testing The bundle's tests, and the check as a test of the application.
Reference Every class, service, tag and parameter of the bundle.

The rules themselves — how each source is read, when a route is public, the statuses — are documented with the library, in phil/route-access-check.

Quick start

Requirements

PHP 8.5 or later, phil/route-access-check, and Symfony 8.2: Config, Console, DependencyInjection, Filesystem, HttpFoundation and Routing. SecurityBundle is read when it is installed.

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of route-access-check-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
phil/route-access-check Version ^0.1@dev
symfony/config Version ^8.2
symfony/console Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/filesystem Version ^8.2
symfony/http-foundation Version ^8.2
symfony/routing Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phil/route-access-check-bundle contains the following files

Loading the files please wait ...