PHPackages                             district5/php-slim-framework-routes-builder - 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. district5/php-slim-framework-routes-builder

ActiveLibrary[Framework](/categories/framework)

district5/php-slim-framework-routes-builder
===========================================

Read and generate a routing file based on the directories containing them.

1.0.2(4y ago)012mitPHPPHP &gt;=7.4

Since Jan 13Pushed 4y agoCompare

[ Source](https://github.com/district-5/php-slim-framework-routes-builder)[ Packagist](https://packagist.org/packages/district5/php-slim-framework-routes-builder)[ Docs](https://github.com/district-5/php-slim-framework-routes-builder)[ RSS](/packages/district5-php-slim-framework-routes-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Slim Framework Routes File Builder
==================================

[](#slim-framework-routes-file-builder)

### Information

[](#information)

This library automatically creates the `app/bootstrap.php` file for Slim Framework applications. This is controlled in development and production by the `$scanAndWrite` parameter.

If `$scanAndWrite` parameter is `true` this will rescan the routes directory (or directories) and generate the bootstrap file automatically. If `false`, the library will simply return the path to the bootstrap file.

### Usage...

[](#usage)

In your main `public/index.php` or wherever you currently include your routes file, place this:

```
