I've created a custom php helper class for use in my Laravel 4 project.
The SASHelper.php file is in app/libraries/elf/sas and after adding libraries into the composer.json file I've done a composer dumpautoload.
autload_classmap (last line only):
'elf\\sas\\SASHelper' => $baseDir . '/app/libraries/elf/sas/SASHelper.php',
Helper class (simplified for brevity):
<?php
namespace elf\sas;
class SASHelper
{
static public function SupportIntToText($status)
{
return 'Supported';
}
static public function LicTypeToText($lic)
{
return '32-Bit';
}
}
When I attempt to call either static method from my controller:
$statustext = SASHelper::SupportIntToText($client->SupportStatus);
At this point Fiddler is reporting:
"Class SASHelper not found."