Probability-Distributions-for-PHP
Probability-Distributions-for-PHP copied to clipboard
Add autoloader script when not insatlling via composer
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.
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