From 9f955259fa6aaef3e96f02c86dcd06ba9413cdc5 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Wed, 29 Jun 2016 23:50:32 -0400 Subject: [PATCH] better manual installation instructions --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db8878d..b67e0c4 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,13 @@ You are now ready to use NeatCharts. ### Install NeatCharts manually -Just download the NeatCharts class and require it in your application file. +Just download the folder `NeatCharts` (in `src`) and place it alongside your php file. Add the following at the top of your PHP file: -`require 'NeatCharts.php';` +```php +spl_autoload_extensions(".php"); +spl_autoload_register(); +``` +This will automatically require the correct files when they are referenced, since the namespace and class names match the folder structure. ## Usage ```php