szonov / slim-route-export
Display routes and postman import for Slim application
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/szonov/slim-route-export
Requires
- php: >=7.0
- slim/php-view: ^2.0
- slim/slim: ^3.0
This package is auto-updated.
Last update: 2025-10-08 08:59:29 UTC
README
3 additional endpoints for your slim application under defined root (by default /export).
- /export/documentation.html - html list of routes
- /export/documentation.json - json file for html documentation
- /export/postman.json - can be imported to postman
How to use:
<?php // vendor should be included require __DIR__ . '/../vendor/autoload.php'; // Slim app should be created $settings = require __DIR__ . '/../src/settings.php'; $app = new \Slim\App($settings); // then you can attach these 3 routes (new SZonov\SlimRouteExport\ExportBootstrap('/export'))->__invoke($app);