Coder Social home page Coder Social logo

artseldopeninviterbundle's Introduction

ArtseldOpeninviterBundle

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.

Installation

Installation is quick and easy, 5 steps process

  1. Download ArtseldOpeninviterBundle
  2. Configure the Autoloader
  3. Enable the bundle
  4. Minimal configuration
  5. Initialize assets

Step 1: Download ArtseldOpeninviterBundle

Add the following entries to the deps in the root of your project file:

[ArtseldOpeninviterBundle]
    git=git://github.com/artseld/ArtseldOpeninviterBundle.git
    target=bundles/Artseld/OpeninviterBundle

Run the vendors script to download the bundle:

$ php bin/vendors install

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
// app/autoload.php

$loader->registerNamespaces(array(
    // ...
    'Artseld' => __DIR__.'/../vendor/bundles',
));

Step 3: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Artseld\OpeninviterBundle\ArtseldOpeninviterBundle(),
    );
}

Step 4: Minimal configuration

Add configuration into your application config.yml (recommended):

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:

# app/config/config.yml

imports:
    - { resource: '@ArtseldOpeninviterBundle/Resources/config/config.yml' }

Add your USERNAME and API-KEY and edit another configuration settings if necessary.

Finally, add route to application routing.yml (example):

# app/config/routing.yml

ArtseldOpeninviterBundle:
    resource: "@ArtseldOpeninviterBundle/Resources/config/routing.yml"
    prefix:   /open-inviter

You can use another url prefix.

Step 5: Initialize assets

$ php app/console assets:install web/

Copyright

ArtseldOpeninviterBundle includes OpenInviter original code. One or more classes of this bundle based on OpenInviter original code.

artseldopeninviterbundle's People

Contributors

artseld avatar

Stargazers

Evan Owens avatar  avatar David Rolston avatar

Watchers

David Rolston avatar  avatar  avatar

artseldopeninviterbundle's Issues

postinstall.php problems

I customize Form Type to Symfony 2.1.
Now Symfony renders login.html.twig but when I run postinstall.php I have this problems:

Checking username and private key... OK
Checking PHP version... OK
Checking DOMDocument support... OK
Checking transport method... libcurl is installed. Using cURL to handle requests
SQLite is NOT installed. Unable to keep stats. This will not affect the OpenInviter modules since they will run without keeping any stats.
Checking write permisions... C:\xampp\tmp is writable. Using C:\xampp\tmp to store cookie files and logs
Checking for new versions of OpenInviter...
Warning: fopen(C: mpp mp\oi.1360335290.8620.cookie): failed to open stream: Invalid argument in C:\xampp\htdocs\project\vendor\bundles\Artseld\OpeninviterBundle\Openinviter\plugins_base.php on line 261

Warning: fclose() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\project\vendor\bundles\Artseld\OpeninviterBundle\Openinviter\plugins_base.php on line 262
Could not connect to server

Warning: file_put_contents(C: mpp mp/oi_plugins.php): failed to open stream: Invalid argument in C:\xampp\htdocs\project\vendor\bundles\Artseld\OpeninviterBundle\Openinviter\openinviter.php on line 342

Checking Abv...
Warning: fopen(C: mpp mp\oi.1360335290.5156.cookie): failed to open stream: Invalid argument in C:\xampp\htdocs\project\vendor\bundles\Artseld\OpeninviterBundle\Openinviter\plugins_base.php on line 261

So I have the same problem with every

Symfony 2.3

Hi, is it possible for you to update your bundle to make it work with sf 2.3 ? and maybe add it to packagist ?

Incorrect login. Please check E-mail and password and try again

I modified login and invite form type to Sym 2.1 but whenI try to submit email and password the system shows:

Incorrect login. Please check E-mail and password and try again

I'm sure email and password are correct.
I tried with gmail and libero providers.

Many thanks!

openinviter usage

Hi,
is it possible to use this bundle by this symple snip code in my twig?

{% render 'ArtseldOpeninviterBundle:Default:login' %}

I have this exception:

An exception has been thrown during the rendering of a template ("Warning: file_put_contents(/tmp/oi_plugins.php): failed to open stream: No such file or directory in C:\xampp\htdocs\project\vendor\bundles\Artseld\OpeninviterBundle\ArtseldOpeninviter\ArtseldOpeninviter.php line 169") in "projectMainBundle:Center:home.html.twig".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.