considbrs-webdev / modularity-opening-hours
Modularity OpeningHours Module
Package info
github.com/Considbrs-Webdev/modularity-opening-hours
Type:wordpress-plugin
pkg:composer/considbrs-webdev/modularity-opening-hours
1.0.0
2026-02-17 14:54 UTC
Requires
- helsingborg-stad/wpservice: ^2.0
- helsingborg-stad/wputilservice: ^0.2.44
Requires (Dev)
- carthage-software/mago: ^1.0.0-rc.3
- phpunit/phpunit: ^11.5
Suggests
- helsingborg-stad/municipio: ^6.0.0
This package is auto-updated.
Last update: 2026-03-26 11:14:20 UTC
README
A opening-hours for creating Modularity modules.
Getting Started
- Clone this repository
- Run
composer installto install PHP dependencies - Run
npm installto install Node dependencies - Run
npm run buildto build assets
Development
npm run dev- Start development servernpm run watch- Watch for changes and rebuildnpm run build- Build for productioncomposer test- Run PHP testscomposer lint- Lint PHP codecomposer format- Format PHP code
Structure
├── modularity-opening-hours.php # Main plugin file
├── source/
│ ├── php/
│ │ ├── App.php # Application bootstrap
│ │ ├── AcfFields/ # ACF field definitions
│ │ └── Module/ # Module classes
│ │ ├── OpeningHours.php # Main module class
│ │ ├── assets/ # Module assets (icons)
│ │ └── views/ # Blade templates
│ └── sass/ # SCSS files
├── assets/ # Compiled assets (generated)
└── languages/ # Translation files
Creating Your Module
- Rename
modularity-opening-hours.phpand update the plugin header - Update the namespace in
composer.jsonand all PHP files - Rename
source/php/Module/OpeningHours.phpto your module name - Update ACF fields in
source/php/AcfFields/json/ - Customize views in
source/php/Module/views/ - Add styles in
source/sass/
License
MIT