# wordpress-seo/28.2/src/helpers/curl-helper.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.2. 34 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.2/code/src/helpers/curl-helper.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.2/raw/src/helpers/curl-helper.php
- Modified: 2022-09-01T06:45:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.2/code/src/helpers/curl-helper.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Helpers;

/**
 * Helper class for getting information about the installed cURL version.
 */
class Curl_Helper {

	/**
	 * Checks is cURL is installed.
	 *
	 * @return bool Returns true if cURL is installed.
	 */
	public function is_installed() {
		return \function_exists( 'curl_version' );
	}

	/**
	 * Returns the currently installed cURL version.
	 *
	 * @return string|null Returns a string containing the cURL version, or null if cURL is not installed.
	 */
	public function get_version() {
		$version = \curl_version();

		if ( ! isset( $version['version'] ) ) {
			return null;
		}

		return $version['version'];
	}
}

```
