# Solace PubSub+ and PHP

**URL:** <https://community.solace.com/t/solace-pubsub-and-php/459>\
**Category:** Connectors & Integrations\
**Tags:** mqtt, php, smf\
**Created:** [October 20, 2020, 7:27pm UTC](https://community.solace.com/t/solace-pubsub-and-php/459 "2020-10-20T19:27:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nram](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/nram/32/742_2.png) [@nram](https://community.solace.com/u/nram)\
**Post date:** [October 20, 2020, 7:27pm UTC](https://community.solace.com/t/solace-pubsub-and-php/459/1 "2020-10-20T19:27:25Z")

</div>

Friends, If you are looking to emit/consume [Solace PubSub+](https://solace.com/products/event-broker/) events from [PHP](https://www.php.net/), please checkout the following links. You will find wrapper/connector ideas, reference implementation and sample Publisher/Subscribe PHP code.

- [Solace PHP MQTT Samples](https://github.com/nram-dev/solace-php-mqtt): This github repo has PHP samples to access Solace with [Mosquitto](https://mosquitto.org/) [MQTT](https://mqtt.org/) API using [Mosquitto-PHP](https://github.com/mgdm/Mosquitto-PHP) extension.
- [Solace PHP SMF Extension](https://github.com/nram-dev/solace-php-smf) : This is a reference PHP extension providing C bindings to Solace. Using the [PHP-CPP](http://www.php-cpp.com/) framework, this extension enables PHP scripts to call Solace APIs natively with [SMF](https://docs.solace.com/PubSub-ConceptMaps/Component-Maps.htm#SMF) (Solace message format) protocol with underlying [CCSMP](https://docs.solace.com/API-Developer-Online-Ref-Documentation/c/index.html) libraries.

Hope you find them useful.
