8889841cPK`[ Package.phpnuW+Aname = $properties['name']; $this->url = $properties['url']; $this->repository = $properties['repository']; } public function hasNamespaceThatContainsClassName(string $className): bool { return $this->getNamespaces()->contains(function ($namespace) use ($className) { return Str::startsWith(strtolower($className), strtolower($namespace)); }); } protected function getNamespaces(): Collection { $details = json_decode(file_get_contents("https://packagist.org/packages/{$this->name}.json"), true); return collect($details['package']['versions']) ->map(function ($version) { return collect($version['autoload'] ?? []) ->map(function ($autoload) { return array_keys($autoload); }) ->flatten(); }) ->flatten() ->unique(); } } PK`[3 Packagist.phpnuW+Aresults); } } PK`[ Package.phpnuW+APK`[3 NPackagist.phpnuW+APKw