Answer the question
In order to leave comments, you need to log in
How to include a class with autoload, which does not have namespaces?
Hello. There is a project in which I use the Pchart library.
Connected it via composer. Inside this library is the following json file:
{
"name": "dmelo/pchart",
"description": "pChart is a PHP library that will help you to create anti-aliased charts or pictures directly from your web server. You can then display the result in the client browser, sent it by mail or insert it into PDFs. pChart provide object oriented coding syntax and is fully in line with the new web standards allowing you to enhance your web2.0 applications.",
"type": "library",
"homepage": "http://www.pchart.net/",
"autoload": {
"psr-0": {
"": "./library/"
}
},
"include-path": [
"library/"
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question