dbp/relay-verity-connector-verapdf-bundle
/api/pdf/validate).maxsize config) align with business needs (e.g., 50MB vs. 100MB).bundles.php).config/packages/).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| VeraPDF Dependency | High | Test VeraPDF API availability before integration. |
| Symfony Version Lock | Medium | Verify compatibility with target Symfony version. |
| Error Handling | Medium | Bundle lacks docs on retries/timeouts; may need custom middleware. |
| Performance | Low | maxsize config helps, but large PDFs may bottleneck. |
| License (AGPL-3.0) | High | Ensure compliance if using in proprietary software. |
composer require dbp/relay-verity-connector-verapdf-bundle
config/bundles.php (as per README).dbp_relay_verity-connector-verapdf.yaml with:
dbp_relay_verity_connector_verapdf:
url: "%env(VERAPDF_URL)%" # or hardcoded URL
maxsize: 50M # adjust based on needs
config/routes.yaml or a controller to trigger validation:
dbp_relay_verity_connector_verapdf.validate:
path: /api/pdf/validate
methods: [POST]
controller: Dbp\Relay\VerityConnectorVerapdfBundle\Controller\ValidateController::validate
curl -X POST -F "pdf=@test.pdf" http://localhost/api/pdf/validate
200 for valid, 400 for invalid PDFs).| Component | Compatibility Notes |
|---|---|
| Symfony Version | Tested on 5.4+; may need adjustments for older versions. |
| VeraPDF API | Assumes VeraPDF’s REST API is stable. Check for breaking changes in newer versions. |
| PHP Version | Requires PHP 7.4+ (Symfony’s minimum). |
| Relay Core Bundle | Must be placed before DbpRelayCoreBundle in bundles.php. |
| Environment Variables | Supports .env for VERAPDF_URL (recommended for security). |
maxsize based on real-world PDF sizes.VERAPDF_URL and maxsize in environment variables or config management (e.g., Ansible).503 Service Unavailable).maxsize config helps, but chunked uploads may be needed for >100MB files.| Failure Scenario | Impact | Mitigation Strategy |
|---|---|---|
| VeraPDF API Down | Validations fail silently. | Implement circuit breaker (e.g., Hystrix). |
How can I help you explore Laravel packages today?