Anonymous
PHP -Klasse nicht gefunden (aber es existiert)
Post
by Anonymous » 27 Feb 2025, 09:53
Ich erkenne, dass dieses
Problem mit ziemlicher Sicherheit durch einen der acht Millionen Vorschläge in früheren Fragen desselben Problems gelöst wird, aber ich kann das
Problem oder die Lösung nicht finden. /> Ich habe den Komponist aktualisiert, um das Paket zu benötigen. < /li>
Ich habe das Vorhandensein der Datei verprüft. /> Verwenden der PHP-Funktion class_exists () kann ich andere Klassen in meiner App verifizieren, aber nichts im Lieferantenverzeichnis scheint (was auf ein Komponistenproblem hinweist). NPM (nicht unbedingt in dieser Reihenfolge) < /li>
Diese Anforderungen sind im PHP -Fehlerprotokoll nichts vorhanden.
Code: Select all
{
"name": "jess/wcr-local",
"autoload": {
"psr-4": {
"Jess\\WcrLocal\\": "src/"
}
},
"authors": [
{
"name": "",
"email": ""
}
],
"require": {
"algolia/algoliasearch-client-php": "^3.3",
"phpclassic/php-shopify": "^1.1"
}
}
< /code>
Composer.lock
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "84220834899a78925602aeeef0ab3571",
"packages": [
{
"name": "algolia/algoliasearch-client-php",
"version": "3.3.0",
"source": {
"type": "git",
"url": "https://github.com/algolia/algoliasearch-client-php.git",
"reference": "aa491a36579d8470c99c15064a79b6b4f83e85e4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/algolia/algoliasearch-client-php/zipball/aa491a36579d8470c99c15064a79b6b4f83e85e4",
"reference": "aa491a36579d8470c99c15064a79b6b4f83e85e4",
"shasum": ""
},
"require": {
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"php": "^7.2 || ^8.0",
"psr/http-message": "^1.0",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
"fzaninotto/faker": "^1.8",
"phpunit/phpunit": "^8.0 || ^9.0",
"symfony/yaml": "^2.0 || ^4.0"
},
"suggest": {
"guzzlehttp/guzzle": "If you prefer to use Guzzle HTTP client instead of the Http Client implementation provided by the package"
},
"bin": [
"bin/algolia-doctor"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-2.0": "2.0.x-dev"
}
},
"autoload": {
"files": [
"src/Http/Psr7/functions.php",
"src/functions.php"
],
"psr-4": {
"Algolia\\AlgoliaSearch\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Algolia Team",
"email": "contact@algolia.com"
}
],
"description": "Algolia Search API Client for PHP",
"keywords": [
"algolia",
"api",
"client",
"php",
"search"
],
"support": {
"issues": "https://github.com/algolia/algoliasearch-client-php/issues",
"source": "https://github.com/algolia/algoliasearch-client-php/tree/3.3.0"
},
"time": "2022-07-06T14:08:05+00:00"
},
{
"name": "phpclassic/php-shopify",
"version": "v1.1.23",
"source": {
"type": "git",
"url": "https://github.com/phpclassic/php-shopify.git",
"reference": "5bc3d3affeb4fcb0c5d7a1233ff58d1b503bad80"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpclassic/php-shopify/zipball/5bc3d3affeb4fcb0c5d7a1233ff58d1b503bad80",
"reference": "5bc3d3affeb4fcb0c5d7a1233ff58d1b503bad80",
"shasum": ""
},
"require": {
"ext-curl": "*",
"ext-json": "*",
"php": ">=5.6"
},
"require-dev": {
"phpunit/phpunit": "^5.5"
},
"type": "library",
"autoload": {
"psr-4": {
"PHPShopify\\": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "Tareq Mahmood",
"email": "tareqtms@yahoo.com"
}
],
"description": "PHP SDK for Shopify API",
"homepage": "https://github.com/phpclassic/php-shopify",
"keywords": [
"php",
"sdk",
"shopify"
],
"support": {
"issues": "https://github.com/phpclassic/php-shopify/issues",
"source": "https://github.com/phpclassic/php-shopify/tree/v1.1.23"
},
"time": "2022-07-14T15:39:59+00:00"
},
{
"name": "psr/http-message",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/master"
},
"time": "2016-08-06T14:39:51+00:00"
},
{
"name": "psr/log",
"version": "3.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/log.git",
"reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001",
"reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001",
"shasum": ""
},
"require": {
"php": ">=8.0.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Log\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for logging libraries",
"homepage": "https://github.com/php-fig/log",
"keywords": [
"log",
"psr",
"psr-3"
],
"support": {
"source": "https://github.com/php-fig/log/tree/3.0.0"
},
"time": "2021-07-14T16:46:02+00:00"
},
{
"name": "psr/simple-cache",
"version": "3.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/simple-cache.git",
"reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865",
"reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865",
"shasum": ""
},
"require": {
"php": ">=8.0.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\SimpleCache\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interfaces for simple caching",
"keywords": [
"cache",
"caching",
"psr",
"psr-16",
"simple-cache"
],
"support": {
"source": "https://github.com/php-fig/simple-cache/tree/3.0.0"
},
"time": "2021-10-29T13:26:27+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.3.0"
}
< /code>
Verwenden Sie in meiner Klasse (der Rest der Klassen wie erwartet) < /p>
1740646402
Anonymous
Ich erkenne, dass dieses [url=viewtopic.php?t=15738]Problem[/url] mit ziemlicher Sicherheit durch einen der acht Millionen Vorschläge in früheren Fragen desselben Problems gelöst wird, aber ich kann das [url=viewtopic.php?t=15738]Problem[/url] oder die Lösung nicht finden. /> Ich habe den Komponist aktualisiert, um das Paket zu benötigen. < /li> Ich habe das Vorhandensein der Datei verprüft. /> Verwenden der PHP-Funktion class_exists () kann ich andere Klassen in meiner App verifizieren, aber nichts im Lieferantenverzeichnis scheint (was auf ein Komponistenproblem hinweist). NPM (nicht unbedingt in dieser Reihenfolge) < /li> Diese Anforderungen sind im PHP -Fehlerprotokoll nichts vorhanden.[code]{ "name": "jess/wcr-local", "autoload": { "psr-4": { "Jess\\WcrLocal\\": "src/" } }, "authors": [ { "name": "", "email": "" } ], "require": { "algolia/algoliasearch-client-php": "^3.3", "phpclassic/php-shopify": "^1.1" } } < /code> Composer.lock { "_readme": [ "This file locks the dependencies of your project to a known state", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], "content-hash": "84220834899a78925602aeeef0ab3571", "packages": [ { "name": "algolia/algoliasearch-client-php", "version": "3.3.0", "source": { "type": "git", "url": "https://github.com/algolia/algoliasearch-client-php.git", "reference": "aa491a36579d8470c99c15064a79b6b4f83e85e4" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/algolia/algoliasearch-client-php/zipball/aa491a36579d8470c99c15064a79b6b4f83e85e4", "reference": "aa491a36579d8470c99c15064a79b6b4f83e85e4", "shasum": "" }, "require": { "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", "php": "^7.2 || ^8.0", "psr/http-message": "^1.0", "psr/log": "^1.0 || ^2.0 || ^3.0", "psr/simple-cache": "^1.0 || ^2.0 || ^3.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.0", "fzaninotto/faker": "^1.8", "phpunit/phpunit": "^8.0 || ^9.0", "symfony/yaml": "^2.0 || ^4.0" }, "suggest": { "guzzlehttp/guzzle": "If you prefer to use Guzzle HTTP client instead of the Http Client implementation provided by the package" }, "bin": [ "bin/algolia-doctor" ], "type": "library", "extra": { "branch-alias": { "dev-2.0": "2.0.x-dev" } }, "autoload": { "files": [ "src/Http/Psr7/functions.php", "src/functions.php" ], "psr-4": { "Algolia\\AlgoliaSearch\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Algolia Team", "email": "contact@algolia.com" } ], "description": "Algolia Search API Client for PHP", "keywords": [ "algolia", "api", "client", "php", "search" ], "support": { "issues": "https://github.com/algolia/algoliasearch-client-php/issues", "source": "https://github.com/algolia/algoliasearch-client-php/tree/3.3.0" }, "time": "2022-07-06T14:08:05+00:00" }, { "name": "phpclassic/php-shopify", "version": "v1.1.23", "source": { "type": "git", "url": "https://github.com/phpclassic/php-shopify.git", "reference": "5bc3d3affeb4fcb0c5d7a1233ff58d1b503bad80" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/phpclassic/php-shopify/zipball/5bc3d3affeb4fcb0c5d7a1233ff58d1b503bad80", "reference": "5bc3d3affeb4fcb0c5d7a1233ff58d1b503bad80", "shasum": "" }, "require": { "ext-curl": "*", "ext-json": "*", "php": ">=5.6" }, "require-dev": { "phpunit/phpunit": "^5.5" }, "type": "library", "autoload": { "psr-4": { "PHPShopify\\": "lib/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "authors": [ { "name": "Tareq Mahmood", "email": "tareqtms@yahoo.com" } ], "description": "PHP SDK for Shopify API", "homepage": "https://github.com/phpclassic/php-shopify", "keywords": [ "php", "sdk", "shopify" ], "support": { "issues": "https://github.com/phpclassic/php-shopify/issues", "source": "https://github.com/phpclassic/php-shopify/tree/v1.1.23" }, "time": "2022-07-14T15:39:59+00:00" }, { "name": "psr/http-message", "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", "shasum": "" }, "require": { "php": ">=5.3.0" }, "type": "library", "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "autoload": { "psr-4": { "Psr\\Http\\Message\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "http://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", "homepage": "https://github.com/php-fig/http-message", "keywords": [ "http", "http-message", "psr", "psr-7", "request", "response" ], "support": { "source": "https://github.com/php-fig/http-message/tree/master" }, "time": "2016-08-06T14:39:51+00:00" }, { "name": "psr/log", "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", "shasum": "" }, "require": { "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { "dev-master": "3.x-dev" } }, "autoload": { "psr-4": { "Psr\\Log\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for logging libraries", "homepage": "https://github.com/php-fig/log", "keywords": [ "log", "psr", "psr-3" ], "support": { "source": "https://github.com/php-fig/log/tree/3.0.0" }, "time": "2021-07-14T16:46:02+00:00" }, { "name": "psr/simple-cache", "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/simple-cache.git", "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", "shasum": "" }, "require": { "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { "dev-master": "3.0.x-dev" } }, "autoload": { "psr-4": { "Psr\\SimpleCache\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "https://www.php-fig.org/" } ], "description": "Common interfaces for simple caching", "keywords": [ "cache", "caching", "psr", "psr-16", "simple-cache" ], "support": { "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" }, "time": "2021-10-29T13:26:27+00:00" } ], "packages-dev": [], "aliases": [], "minimum-stability": "stable", "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": [], "platform-dev": [], "plugin-api-version": "2.3.0" } < /code> Verwenden Sie in meiner Klasse (der Rest der Klassen wie erwartet) < /p>