I need to integrate a payment gateway into a Fuel project, but I'm probably going to use it again and whack on GitHub when it's up to standard - would this be counted as a package, or something else?
Thanks for the pointers guys. I'm really struggling to understand how packages work at the moment, can't get the bloody thing to call from a Controller, just get "ErrorException [ Error ]: Class 'Gateway' not found" all the time.
If that doesn't work, you have made an error in defining the package classes. Have a look at my simplepie package as an example: https://github.com/WanWizard/fuel-simplepie
All package related operations should be from within the package, to minimize the dependencies, loading a config should happen from the package class, just by using \Config::load().
Note that both the global config directories and the package directories are searched for a config file, in the sequence: APPPATH, package paths (in the order defined in config.php), COREPATH.
So if you name your file config.php, it will never be loaded from the package, as there is a match on APPPATH for a config file by that name.