dev-master
9999999-devWHMCS Bundle for Symfony Framework
The Requires
WHMCS Bundle for Symfony Framework
Allow your WHMCS users to signin and signup via symfony2, (*1)
Support for composer will be added very soon. Unit tests will soon be included., (*2)
Make the following alterations to have WHMCS working within your application., (*3)
app/autoload.php, (*4)
/* Add just after the if statement that includes composers autoloader. * You will need to change the paths to match your installs for both FPWHMCSBundle and FP-WHMCS-Connector. */ $loader->add('FP\\Bundle\\WHMCSBundle', __DIR__.'/../vendor/fp-whmcs-bundle/src/'); $loader->add('FP\\WHMCS', __DIR__.'/../vendor/fp-whmcs-connector/src/');
app/AppKernel.php, (*5)
$bundles[] = new FP\Bundle\WHMCSBundle\FPWHMCSBundle();
app/config/config.yml, (*6)
fpwhmcs: #please don't provide an absolute url, just the protocol and the domain name host: "https://domainname" username: "api-account" password: "md5-of-your-password"
app/config/security.yml, (*7)
security: encoders: FP\Bundle\WHMCSBundle\Entity\User: id: fp.whmcs.encoder role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] providers: fp.whmcs.user.provider: id: fp.whmcs.user.provider firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/security$ security: false secured_area: pattern: ^/ anonymous: ~ form_login: check_path: /security/check login_path: /security logout: path: /security/signout target: / access_control: - { path: ^/secured, roles: [ROLE_ADMIN, ROLE_USER] }
app/config/routing.yml, (*8)
_fp_whmcs: resource: "@FPWHMCSBundle/Resources/config/routing.yml"
/secured should prompt you with a login and /signin will be your resgistration page, both should work fully providing you have the correct details in config.yml., (*9)
WHMCS Bundle for Symfony Framework