Download the PHP package dominik317/team-members-directory without Composer
On this page you can find all versions of the php package dominik317/team-members-directory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dominik317/team-members-directory
More information about dominik317/team-members-directory
Files in dominik317/team-members-directory
Package team-members-directory
Short Description Team Members Directory plugin
License proprietary
Informations about the package team-members-directory
Team Members Directory
WordPress plugin for managing and displaying team members with Themosis Framework conventions.
Requirements
- PHP: >= 8.1
- WordPress: >= 6.0
- Themosis Framework: 3.1 (conventions followed)
- Composer: >= 2.0
- ACF Plugin: Required
Installation
Method 1: Drop-in Installation
- Copy plugin folder to
wp-content/plugins/team-members-directory - Run
composer installin plugin directory - Activate plugin in WordPress admin
- Install and activate ACF plugin
- Flush permalinks: Settings → Permalinks → Save Changes
Method 2: Composer Installation
Step 1: Ensure your WordPress project's composer.json has composer/installers configured:
Step 2: Install the plugin:
This will automatically install the plugin to wp-content/plugins/team-members-directory/
Step 3: Complete setup:
- Activate the plugin in WordPress Admin → Plugins
- Install and activate Advanced Custom Fields (ACF) plugin
- Flush permalinks: Settings → Permalinks → Save Changes
Usage
Creating Team Members
- Go to Team Members → Add New in WordPress admin
- Fill required fields:
- Full Name (required)
- Role/Title (required)
- Email (optional, validated)
- Photo (optional)
- Bio (optional)
- Click Publish
Displaying Team Members
Shortcode (embed anywhere):
Dedicated Route:
In PHP Templates:
Configuration
Edit config/team.php:
Filter for custom route slug:
Architecture Notes
This plugin follows Themosis Framework conventions while remaining installable as a standard WordPress plugin. Key decisions:
- WordPress hooks over ServiceProvider - Uses
add_action/add_filterinstead of Themosis ServiceProvider to maintain standard plugin compatibility - WordPress Rewrite API for routes - Custom
/teamroute uses WP Rewrite API since Themosis routing requires Application instance unavailable in standard plugins - ACF for fields - Programmatic field registration with graceful degradation if ACF is missing
- Controller pattern - Shared
TeamMemberControllerused by both shortcode and route (DRY principle) - Static methods - Simpler API for services/controllers, suitable for plugin scope
Project Structure
Testing
Run unit tests:
Coverage: 7 tests, 16 assertions (TeamMemberValidator service)
Screenshots
Admin Interface
Team Members List:
Add/Edit Team Member:
Validation Errors:
Frontend Display
Shortcode Output & Route Output (/team):
Shortcode Output & Route Output (/team) on Mobile:
Author
Dominik Sopic | Version 0.1.0