Run a WP-CLI command from within PHP without using shell_exec()

If it’s a script you created, then move the function outside of WP CLI, where both WP CLI and your PHP script can access, and then have your WP CLI command run that function.

deneme bonusu veren sitelerbahis casino