Introducing pdf-service: A PDF Generation Microservice with Symfony 7
I'm excited to present pdf-service, a new open source project I just published on GitHub. It's a modern and efficient microservice for generating PDFs from HTML content, built with Symfony 7.2 and Chrome Headless.
🚀 Key Features
- Based on Symfony 7.2 and FrankenPHP
- Uses Chrome Headless via browserless/chrome
- Hexagonal Architecture
- Simple and intuitive REST API
- Full Docker containerization
- Next.js 15 demo application included
💡 Use Cases
- Invoice generation
- Report exports
- Document creation from HTML templates
- Web page archiving to PDF
- Certificate and statement generation
🛠️ Technologies Used
- Backend: Symfony 7.2, PHP 8.2+
- Server: FrankenPHP
- PDF: Chrome Headless (browserless)
- Demo: Next.js 15 with Bun
- Containerization: Docker & Docker Compose
🔧 Quick Installation
bash
📝 Usage Example
bash
🎯 Strong Points
- Performance: Optimized for fast PDF generation
- Flexibility: Extensive configuration options
- Modern: Using latest technology versions
- Maintainable: Hexagonal architecture and automated tests
- Secure: Strict input validation and error handling
- Documented: Complete documentation and usage examples
🔜 Coming Soon
I plan to publish a detailed technical article soon that will explain in depth:
- Project architecture
- Technical choices
- Used patterns
- Implemented best practices
- Advanced use cases
- Possible optimizations
🤝 Contributing
The project is open source under MIT license. Feel free to:
- ⭐ Star the repository
- 🐛 Report bugs
- 💡 Suggest improvements
- 🔧 Contribute to the code
📚 More Information
For more details, check out:
- The GitHub repository
- Documentation in the README
- The included demo application
A detailed technical article will follow soon to explain all aspects of the project in depth. Stay tuned! 🚀