|
| 1 | +=== Using prefixed Guzzle with PHP-Prefixer === |
| 2 | +Contributors: phpprefixer |
| 3 | +Tags: development, prefixer, php, scope, namespace |
| 4 | +Requires at least: 3.8.0 |
| 5 | +Tested up to: 4.2 |
| 6 | +Stable tag: 1.0.0 |
| 7 | +License: GPLv3 or later |
| 8 | +License URI: http://www.gnu.org/licenses/gpl.html |
| 9 | + |
| 10 | +A plugin to showcase the PHP-Prefixer service and how to use Guzzle in the WordPress Ecosystem. |
| 11 | + |
| 12 | +== Description == |
| 13 | + |
| 14 | +**Using prefixed Guzzle with PHP-Prefixer** plugin for WordPress. A plugin to showcase the PHP-Prefixer service and how to use Guzzle in the WordPress Ecosystem. |
| 15 | + |
| 16 | +## About the Plugin |
| 17 | + |
| 18 | +A plugin to integrate Guzzle, PHP HTTP client, in a WordPress plugin with PHP-Prefixer. The plugin shows a number fact from numbersapi.com using Guzzle as HTTP client. It is inspired by the Hello Dolly plugin. |
| 19 | + |
| 20 | +## About PHP-Prefixer |
| 21 | + |
| 22 | +It’s super quick to get a [PHP-Prefixer](https://php-prefixer.com/) project up and running. Install any library freely. PHP-Prefixer will manage your namespaces. |
| 23 | + |
| 24 | +- **Use the same libraries across all platforms**: Develop your solutions using the same libraries for all the platforms you work in, specifically WordPress, Joomla, Drupal, Laravel, Symfony, Slim Framework, etc. |
| 25 | +- **Composer + WordPress**: Use Composer for your WordPress projects. PHP-Prefixer will process the dependencies to run smoothly along with other third-party plugins. |
| 26 | +- **Fully integrated with Git**: Declare your name space configuration and let the service produce the packages. No local installation. No Phars. No new dependencies. |
| 27 | + |
| 28 | +## About Guzzle, PHP HTTP client |
| 29 | + |
| 30 | +Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services. For more information, please, visit <https://docs.guzzlephp.org/en/stable/index.html> |
| 31 | + |
| 32 | +## References |
| 33 | + |
| 34 | +- Blog: [New Tutorial: Using PHP Composer in the WordPress Ecosystem](https://blog.php-prefixer.com/2020/10/23/new-tutorial-using-php-composer-in-the-wordpress-ecosystem/) |
| 35 | +- Documentation: [How to Prefix a WordPress Plugin](https://php-prefixer.com/docs/guides/how-to-prefix-wordpress-plugin/) |
| 36 | + |
| 37 | +== Installation == |
| 38 | + |
| 39 | +1. Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your |
| 40 | + server. In the latter case we suggest you to upload the files into your site's `/wp-content/plugins/using-guzzle-in-a-word-press-plugin-with-php-prefixer` |
| 41 | + directory. |
| 42 | +1. Activate the plugin through the 'Plugins' menu in WordPress |
| 43 | +1. The plugin shows number facts in the Admin area |
| 44 | +1. That's it! Really, it is that simple! |
| 45 | + |
| 46 | +== Frequently Asked Questions == |
| 47 | + |
| 48 | += What is PHP-Prefier? = |
| 49 | + |
| 50 | +PHP-Prefixer is an automated online service powered by a complex rule-based system to apply prefixes to Composer dependencies. |
| 51 | + |
| 52 | +== Changelog == |
| 53 | + |
| 54 | += 1.0.0 = |
| 55 | +Initial version. |
0 commit comments