class_exists

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the class has been defined
<?php class_exists(string $class, bool $autoload = true): bool
<?php     protected function isRoadRunnerInstalled()

    {

        return class_exists(PSR7Worker::class);

    }
<?php             return $this->ddInfo($throwable, $verbosity);

        }



        if (! class_exists('NunoMaduro\Collision\Writer')) {

            $this->label($throwable['message'], $verbosity, $throwable['class'], 'red', 'white');



            $this->newLine();
<?php         return match (true) {

            app()->bound(DispatchesTasks::class) => app(DispatchesTasks::class),

            app()->bound(Server::class) => new SwooleTaskDispatcher,

            class_exists(Server::class) => (fn (array $serverState) => new SwooleHttpTaskDispatcher(

                $serverState['state']['host'] ?? '127.0.0.1',

                $serverState['state']['port'] ?? '8000',

                new SequentialTaskDispatcher
<?php         });



        $this->app->bind(DispatchesCoroutines::class, function ($app) {

            return class_exists('Swoole\Http\Server')

                        ? new SwooleCoroutineDispatcher($app->bound('Swoole\Http\Server'))

                        : $app->make(SequentialCoroutineDispatcher::class);

        });