How algoyounes/bindify works
Project Type and Purpose
• Bindify is a Laravel PHP package (library) that extends Laravel’s service container.
• It leverages PHP 8.2 Attributes to provide declarative, lazy interface-to-implementation bindings inside a Laravel application.
File Structure Overview
• src/Attributes: definitions of the #[BindWith] and #[BindType] attributes.
• src/Contexts: classes (BindContext) holding metadata for each binding.
• src/Contracts: internal interfaces (e.g., BindifyResolver).
• src/Providers: the BindifyServiceProvider that integrates into Laravel’s bootstrapping.
• src/Resolvers: core logic (AttributeResolver) that scans attributes and performs the binding.
• tests & workbench: example contracts and implementations to verify behavior.