Title: WP_CLI\Utils\is_stream()
Published: October 6, 2026
Last modified: October 7, 2026

---

# WP_CLI\Utils\is_stream()

## In this article

 * [Usage](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-is-stream/?output_format=md#usage)
 * [Related](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-is-stream/?output_format=md#related)

[↑ Back to top](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-is-stream/?output_format=md#wp--skip-link--target)

Check if a path is a PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor)
is a widely-used open source general-purpose scripting language that is especially
suited for web development and can be embedded into HTML. [https://www.php.net/manual/en/index.php](https://www.php.net/manual/en/index.php)
stream URLURL A specific web address of a website or web page on the Internet, such
as a website’s URL www.wordpress.org.

---

## 󠀁[Usage](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-is-stream/?output_format=md#usage)󠁿

    ```
    WP_CLI\Utils\is_stream( $path )
    ```

 **$path** (string) The resource path or URL.
 **@return** (bool) if the path is
a PHP stream URL, false otherwise.

_Internal APIAPI An API or Application Programming Interface is a software intermediary
that allows programs to interact with each other and share data in limited, clearly
defined ways. documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command
Line Interface for WordPress, used to do administrative and development tasks in
a programmatic way. The project page is [http://wp-cli.org/](http://wp-cli.org/)
[https://make.wordpress.org/cli/](https://make.wordpress.org/cli/) codebase on every
release. To suggest improvements, please submit a pull request._

---

## 󠀁[Related](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-is-stream/?output_format=md#related)󠁿

 * **[WP_CLI\Utils\get_home_dir()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-utils-get-home-dir/)**–
   Get the home directory.
 * **[WP_CLI\Utils\trailingslashit()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-utils-trailingslashit/)**–
   Appends a trailing slash.
 * **[WP_CLI\Utils\normalize_path()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-utils-normalize-path/)**–
   Normalize a filesystem path.
 * **[WP_CLI\Utils\get_temp_dir()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-utils-get-temp-dir/)**–
   Get the system’s temp directory. Warns user if it isn’t writable.
 * **[WP_CLI\Utils\make_temp_file()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-utils-make-temp-file/)**–
   Create a unique temporary file safely without following symlinks.
 * **[WP_CLI\Utils\make_temp_dir()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-utils-make-temp-dir/)**–
   Create a unique temporary directory safely without following symlinks.
 * **[WP_CLI\Utils\get_php_binary()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-utils-get-php-binary/)**–
   Get the path to the PHP binary used when executing WP-CLI.
 * **[WP_CLI::get_php_binary()](https://make.wordpress.org/cli/handbook/internal-api/wp-cli-get-php-binary/)**–
   Get the path to the PHP binary used when executing WP-CLI.

First published

October 6, 2026

Last updated

October 7, 2026

Edit article

[ Improve it on GitHub: [article_title] ](https://github.com/wp-cli/handbook/edit/main/references/internal-api/wp-cli-utils-is-stream.md)

Changelog

[ See list of changes: [article_title] ](https://github.com/wp-cli/handbook/commits/main/references/internal-api/wp-cli-utils-is-stream.md)

[  Previous: WP_CLI\Utils\isPiped()](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-ispiped/)

[  Next: WP_CLI\Utils\launch_editor_for_input()](https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-utils-launch-editor-for-input/)