brw / navigator
A WordPress plugin and theme framework
v0.0.1
2024-09-06 15:40 UTC
Requires
- php: ^8.3
- deliciousbrains/wp-queue: ^2.1
- doctrine/inflector: ^2.0
- dragonmantank/cron-expression: ^3.3
- erusev/parsedown: ^1.7
- fakerphp/faker: ^1.23
- filp/whoops: ^2.15
- nesbot/carbon: ^2.0|^3.6
- psr/container: ^2.0
- rakit/validation: ^1.4
- symfony/var-dumper: ^6.4
README
Navigator is a fluent interface to WordPress
Todo
- Auth
- Policies/gates
- Broadcasting
- Bus
- Cache
- Collections
- Conditionable
- Config
- Console
- Container
- Contracts
- Cookie
- Database
- Attachment model
- User capabilities
- Encryption
- Events
- Faker
- WP faker provider
- Filesystem
- Foundation
- Hashing
- Http
- Log
- Macroable
- Notifications
- Number @inprogress
- Pagination
- Pipeline
- Process
- Queue
- Redis
- Routing
- Schedule
- Session
- Support
- Testing
- Translation
- Validation
- View
Additional todo
- Move helpers.php into theme
- Create theme repo
- Navigator as composer package
- use reflection in container
- use attributes e.g. listeners priority
- set relevent classes to readonly and final
Container todo
The container has been expanded to include a make method (that injects dependencies in constructors) and a call method (that injects dependencies in methods and functions). The next task is to update all services where useful to use make or call instead of how they are currently resolving dependencies (usually passed directly). This will be most useful in controllers and listeners so the user can specify the dependencies on controller constructors or in route methods.
- Router: route class constructor
- Router: route method
- Events: Listener constructor
- Validator