Run without Composer #98
Replies: 2 comments 3 replies
-
|
You can first use composer to get the package and set up all autoload files. It'll create a parent autoload.php in vendor/ directory. namespace src; // Use whatever namespace you're in
require_once '../autoload/autoload.php'; // Adjust the path relative to this source-file
use Aranyasen\HL7\Message;
$msg = new Message("MSH|^~\\&|1|\rPV1|1|O|^AAAA1^^^BB|", null, true);
echo $msg->toString(true);Once it works, you can start removing the files that are not needed anymore, including composer.json, composer.lock etc. |
Beta Was this translation helpful? Give feedback.
-
|
Hi sir, this is file of autoloader.php i have used before load thats file with and i'm used like below how to structure your HL7 library of class to load sir? because your trick is more big file to keep, can we do like i do before with autoloader.php, i'm doing this with EscPos PHP like below
thanks any kind of help sir!! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
can you describe how to use this library without composer, but with autoload?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions