Probability-Distributions-for-PHP icon indicating copy to clipboard operation
Probability-Distributions-for-PHP copied to clipboard

Add autoloader script when not insatlling via composer

Open henrydatei opened this issue 4 years ago • 1 comments

When using this repo without installing it via composer it is not enough to just download all files. You also have to include then manually. Thankfully someone on Stackoverflow (https://stackoverflow.com/a/6962046) has written an autoloader to automatically include all files. Since it worked for me flawlessly I think mentioning this is a good idea.

henrydatei avatar Sep 08 '21 15:09 henrydatei

Thanks, helped, but you need to mention to put folder "gburtini" from "Probability-Distributions-for-PHP-master\src" near file where you use this code from example. Shame to author you can't just use require_once("Probability-Distributions-for-PHP-master\src\gburtini\entryfile.php"); Spent 40 minutes trying to connect files just to calculate some useless numbers

Devocub avatar Jul 18 '22 06:07 Devocub