dev-master
9999999-devOpeninviter service
WTFPL
The Requires
- php >=5.3.2
- symfony/framework-bundle >=2.1,<=2.3
by Dmitry Kozlovich
service contacts openinviter addressbook
Openinviter service
The ArtseldOpeninviterBundle
integrates the OpenInviter
PHP library with Symfony2. This means easy-to-implement invitation mechanism from many social networks and mail providers
in your Symfony2 application., (*1)
Installation is quick and easy, 5 steps process, (*2)
Add the following entries to the deps in the root of your project file:, (*3)
[ArtseldOpeninviterBundle] git=git://github.com/artseld/ArtseldOpeninviterBundle.git target=bundles/Artseld/OpeninviterBundle
Run the vendors script to download the bundle:, (*4)
``` bash $ php bin/vendors install, (*5)
### Step 2: Configure the Autoloader If it is the first Artseld bundle you install in your Symfony2 project, you need to add the Artseld namespace to your autoloader: ``` php <?php // app/autoload.php $loader->registerNamespaces(array( // ... 'Artseld' => __DIR__.'/../vendor/bundles', ));
Enable the bundle in the kernel:, (*6)
``` php <?php // app/AppKernel.php, (*7)
public function registerBundles() { $bundles = array( // ... new Artseld\OpeninviterBundle\ArtseldOpeninviterBundle(), ); }, (*8)
### Step 4: Minimal configuration Add configuration into your application config.yml (recommended): ``` yaml artseld_openinviter: username: "USERNAME" private_key: "API-KEY" plugins_cache_time: "1800" plugins_cache_file: "oi_plugins.php" cookie_path: "/tmp" local_debug: "on_error" remote_debug: "" hosted: "" proxies: [] stats: "" stats_user: "" stats_password: "" update_files: "1" transport: "wget"
or add resource link to imports section in application config.yml:, (*9)
``` yaml, (*10)
imports: - { resource: '@ArtseldOpeninviterBundle/Resources/config/config.yml' }, (*11)
Add your USERNAME and API-KEY and edit another configuration settings if necessary. Finally, add route to application routing.yml (example): ``` yaml # app/config/routing.yml ArtseldOpeninviterBundle: resource: "@ArtseldOpeninviterBundle/Resources/config/routing.yml" prefix: /open-inviter
You can use another url prefix., (*12)
bash
$ php app/console assets:install web/
, (*13)
ArtseldOpeninviterBundle includes OpenInviter original code. One or more classes of this bundle based on OpenInviter original code., (*14)
Openinviter service
WTFPL
service contacts openinviter addressbook