Corevia WP
WordPress Plugin
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sadekur/corevia-wp/archive/refs/heads/modern.zipSteps to Run
- Update composer
composer update - Install Node packages
npm install - Build
npm run build - Watch
npm run watch
Available Commands
Create a Controller
Creates a new controller in the app/Controller directory.
wp coreviawp controller <ControllerName>
Example:
wp coreviawp controller Product
Create a Model
Creates a new model in the app/Model directory.
wp coreviawp model <ModelName>
Example:
wp coreviawp model User
Create an Abstract Class
Creates a new abstract class in the app/Abstract directory.
wp coreviawp abstract <AbstractClassName>
Example:
wp coreviawp abstract Base
Create an API Class
Creates a new API class in the app/API directory.
wp coreviawp api <ApiClassName>
Example:
wp coreviawp api Option
Create a Trait
Creates a new trait in the app/Trait directory.
wp coreviawp trait <TraitName>
Example:
wp coreviawp trait Logger
Create an Interface
Creates a new interface in the app/Interface directory.
wp coreviawp interface <InterfaceName>
Example:
wp coreviawp interface Entity