Deploying Custom Facts from Modules

I have created a custom fact (to get the PHP version installed on the server) and have added it here /etc/puppet/modules/custom/lib/facter/phpversion.rb.

This gets deployed to clients as /var/lib/puppet/lib/facter/phpversion.rb.

When running facter the custom fact does not load, but when running facter -p it does. I want this fact to be available to catalogue runs (I don't intent to only use this manually at all) but as this does not show on a standard facter run I don't believe it will be available?