Support Opscale
At Opscale, we’re passionate about contributing to the open-source community by providing solutions that help businesses scale efficiently. If you’ve found our tools helpful, here are a few ways you can show your support:
⭐ Star this repository to help others discover our work and be part of our growing community. Every star makes a difference!
💬 Share your experience by leaving a review on Trustpilot or sharing your thoughts on social media. Your feedback helps us improve and grow!
📧 Send us feedback on what we can improve at feedback@opscale.co. We value your input to make our tools even better for everyone.
🙏 Get involved by actively contributing to our open-source repositories. Your participation benefits the entire community and helps push the boundaries of what’s possible.
💼 Hire us if you need custom dashboards, admin panels, internal tools or MVPs tailored to your business. With our expertise, we can help you systematize operations or enhance your existing product. Contact us at hire@opscale.co to discuss your project needs.
Thanks for helping Opscale continue to scale! 🚀
Enforce software architecture guidelines for your Laravel projects with opinionated, battle-tested rules that promote maintainable, scalable code.
Modern software projects face increasing complexity as they scale. Without clear architectural boundaries, codebases become tangled, difficult to test, and expensive to maintain. Our approach focuses on preventing architectural debt before it accumulates, ensuring your Laravel applications remain clean and extensible as they grow. Learn more about our architectural philosophy in software-architecture.md.
We follow a business-centric design methodology that starts with understanding the domain before writing code. Our systematic approach guides you through identifying business units, mapping information flows, modeling data architecture, and defining business rules that create value. This methodology ensures your software components genuinely reflect how the business operates, making them both maintainable and AI-friendly. Discover our complete design process in design-methodology.md.
Through real-world examples and data stories, we implement three proven architectural approaches that work together to create robust Laravel applications. Each guideline is illustrated with practical scenarios that demonstrate both common problems and their solutions. See concrete implementations in data-story.md.
Guideline | Purpose | Key Concepts | Documentation |
---|---|---|---|
DDD | Domain modeling with Laravel pragmatism | Aggregates, Entities, Value Objects, Repositories, Domain Services | DDD Assumptions |
Clean Architecture | Layered separation of concerns | Representation, Communication, Transformation, Orchestration, Interaction | Clean Assumptions |
SOLID | Code smell prevention through proven principles | SRP, OCP, LSP, ISP, DIP with practical Laravel application | SOLID Assumptions |
You can install the package in to a Laravel project via composer:
composer require opscale-co/strict-rules --dev
Next up, you must create a phpstan.neon
file in the root of your project with this content:
includes:
- vendor/nunomaduro/larastan/extension.neon
- vendor/opscale-co/strict-rules/rules.clean.neon
- vendor/opscale-co/strict-rules/rules.ddd.neon
- vendor/opscale-co/strict-rules/rules.smells.neon
- vendor/opscale-co/strict-rules/rules.solid.neon
parameters:
level: 8
phpVersion: 80200
paths:
- src
You are free to use only a subset of rules commenting the not needed guidelines.
You can run the command vendor/bin/phpstan analyze to execute the rules.
npm run test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email development@opscale.co instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.