Download the PHP package mrdulal/laravel-wp-connector without Composer
On this page you can find all versions of the php package mrdulal/laravel-wp-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrdulal/laravel-wp-connector
More information about mrdulal/laravel-wp-connector
Files in mrdulal/laravel-wp-connector
Package laravel-wp-connector
Short Description A Laravel package for WordPress database integration with Filament admin management
License MIT
Informations about the package laravel-wp-connector
Laravel WordPress Connector
A comprehensive Laravel package that seamlessly integrates WordPress database functionality into Laravel applications with full Filament admin panel support.
Features
- 🔗 WordPress Database Integration: Connect to WordPress database with Eloquent models
- 🎨 Filament Admin Panel: Complete admin interface for managing WordPress content
- 📊 Dashboard Widgets: Real-time statistics and recent content widgets
- 🔍 Advanced Queries: Easy-to-use facade for complex WordPress queries
- 🏷️ Relationships: Full relationship mapping between WordPress entities
- ⚙️ Configurable: Publishable config with database connection options
Installation
-
Install the package via Composer:
-
Publish the configuration file:
-
Configure your WordPress database connection in
config/wordpress.php: - Add your WordPress database credentials to your
.envfile:
Usage
Basic Queries
Working with Models
Meta Data
WordPress Options
Filament Admin Panel
The package includes complete Filament resources for managing WordPress content:
- Users: Manage WordPress users with full CRUD operations
- Posts: Create, edit, and manage WordPress posts and pages
- Comments: Moderate and manage comments
- Terms: Manage categories, tags, and custom taxonomies
Dashboard Widgets
- Recent Posts Widget: Shows latest published posts
- User Count Widget: Displays user statistics
- Comment Count Widget: Shows comment statistics
Configuration
Database Connection
The package automatically sets up a WordPress database connection. You can customize the connection settings in the config file.
Filament Configuration
Models
WpUser
- Primary key:
ID - Relationships:
posts(),comments(),meta() - Scopes:
published()
WpPost
- Primary key:
ID - Relationships:
author(),comments(),terms(),meta() - Scopes:
published(),type(),byAuthor()
WpComment
- Primary key:
comment_ID - Relationships:
post(),user(),parent(),children(),meta() - Scopes:
approved(),byPost()
WpTerm
- Primary key:
term_id - Relationships:
posts(),taxonomy(),meta() - Scopes:
categories(),tags()
Advanced Usage
Custom Queries
Relationship Loading
Requirements
- PHP 8.1+
- Laravel 10.0+
- Filament 3.0+
- WordPress database
License
This package is open-sourced software licensed under the MIT license.
Contributing
Please see CONTRIBUTING.md for details.
Changelog
Please see CHANGELOG.md for more information on what has changed recently.
Credits
- Sanjaya Dulal
- All Contributors
All versions of laravel-wp-connector with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0
filament/filament Version ^3.0