2017 © Pedro Peláez
 

library whmcs-bundle

WHMCS Bundle for Symfony Framework

image

amenophis/whmcs-bundle

WHMCS Bundle for Symfony Framework

  • Tuesday, March 26, 2013
  • by amenophis
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FPWHMCSBundle

Allow your WHMCS users to signin and signup via symfony2, (*1)

REQUIREMENTS

Notes

Support for composer will be added very soon. Unit tests will soon be included., (*2)

Quick setup

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"

Testing

/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)

The Versions

26/03 2013

dev-master

9999999-dev

WHMCS Bundle for Symfony Framework

  Sources   Download

The Requires