belisoful / prado-wp-integrator
Integrates Wordpress into PRADO
Package info
github.com/belisoful/prado-wp-integrator
Type:prado4-extension
pkg:composer/belisoful/prado-wp-integrator
Requires
- php: >=7.4.0
- pradosoft/prado: ^4.2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.94
- phpdocumentor/shim: ^3
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10
This package is auto-updated.
Last update: 2026-03-26 05:26:17 UTC
README
This PRADO module integrates WordPress into PRADO applications, providing access to WordPress content and users within PRADO applications.
Features
- Access to WordPress posts and pages
- WordPress user authentication
- WordPress database integration
- Seamless integration with PRADO's authentication and user management
Requirements
- PRADO 4.2.0 or higher
- PHP 7.4 or higher
- WordPress 4.0 or higher
Install
The best way to install PRADO WordPress Integrator is through composer.
Integrate the PRADO WordPress Integrator using composer:
composer require belisoful/prado-wp-integrator
The plugin will be installed in the "vendor" directory.
Add PRADO WordPress Integrator to an existing application
Just create a composer.json file for your project:
{
"require": {
"belisoful/prado-wp-integrator": "^0.0.1"
}
}
The PRADO WordPress Integrator is a PRADO 7.4+ extension to plug in new functionality directly into a PRADO application.
Documentation
The Tutorial
Usage
To use this module:
- Add the module to your PRADO application configuration
- Configure database connection parameters
- Access WordPress content from your PRADO application
<module id="belisoful\prado-wp-integrator" ConnectionID="db" WPUserManagerID="wpusermanager" WPAuthManagerID="wpauthmanager" WPDbParameterID="wpdbparameter" DatabasePrefix="wp_"/>
Contributing
In the spirit of free software, everyone is encouraged to help improve this project.
Here are some ways you can contribute:
- by using prerelease versions
- by reporting bugs
- by writing specifications
- by writing code (no patch is too small: fix typos, add comments, clean up inconsistent whitespace)
- by refactoring code
- by resolving issues
- by reviewing patches
- by writing your own PRADO extension and posting it on Packagist
- by supporting and contributing to your favorite PRADO extensions
Starting point:
- Fork the repo
- Clone your repo
- Make your changes
- Write tests for your changes to ensure that later changes to PRADO WordPress Integrator won't break your code.
- Submit your pull request
Testing
Not yet Implemented: PRADO WordPress Integrator uses phpunit (https://phpunit.de/) for unit testing.
In order to run tests, first clone the PRADO WordPress Integrator repository and have composer install the needed development libraries:
git clone https://github.com/belisoful/prado-wp-integrator.git
cd prado-wp-integrator
composer install
Now you are ready to run tests; a phpunit configuration file is provided, to run the tests just execute
composer unittest to run unit tests and
Test results will be saved in in the build/tests/ directory.