MODX Services
Last updated Aug 15th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moreWhat is a Service?¶
A service is any object that is loaded via $modx->getService. It can be a custom class provided by the user, or by MODX itself.
Once an object is loaded with getService, it is accessible via $modx->(servicename)
. So, for example:
$modx->getService('twitter','myTwitter','/path/to/twitter/model/',array(
'api_key' => 3212423,
));
$modx->twitter->tweet('Success!');
What are the Default Included Services?¶
A list of the core-included MODX Services is as follows:
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn more