-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreadme.txt
55 lines (36 loc) · 2.67 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
=== Using prefixed Guzzle with PHP-Prefixer ===
Contributors: phpprefixer
Tags: development, prefixer, php, scope, namespace
Requires at least: 3.8.0
Tested up to: 4.2
Stable tag: 1.0.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl.html
A plugin to showcase the PHP-Prefixer service and how to use Guzzle in the WordPress Ecosystem.
== Description ==
**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.
## About the Plugin
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.
## About PHP-Prefixer
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.
- **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.
- **Composer + WordPress**: Use Composer for your WordPress projects. PHP-Prefixer will process the dependencies to run smoothly along with other third-party plugins.
- **Fully integrated with Git**: Declare your name space configuration and let the service produce the packages. No local installation. No Phars. No new dependencies.
## About Guzzle, PHP HTTP client
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>
## References
- 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/)
- Documentation: [How to Prefix a WordPress Plugin](https://php-prefixer.com/docs/guides/how-to-prefix-wordpress-plugin/)
== Installation ==
1. Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your
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`
directory.
1. Activate the plugin through the 'Plugins' menu in WordPress
1. The plugin shows number facts in the Admin area
1. That's it! Really, it is that simple!
== Frequently Asked Questions ==
= What is PHP-Prefier? =
PHP-Prefixer is an automated online service powered by a complex rule-based system to apply prefixes to Composer dependencies.
== Changelog ==
= 1.0.0 =
Initial version.