Git Product home page Git Product logo

google's Introduction

Kdyby/Google

Build Status Downloads this Month Latest stable Join the chat at https://gitter.im/Kdyby/Help

Integration of google/google-api-php-client into Nette Framework with authorization component using Google services.

Requirements

Kdyby/Google requires PHP 5.3.2 or higher with cUrl extension enabled.

Installation

The best way to install Kdyby/Google is using Composer:

$ composer require kdyby/google:~0.1

For Nette 2.1 and newer is ~0.1

Documentation

Learn how to authenticate the user using Google's oauth or call Google's api in documentation.


Homepage http://www.kdyby.org and repository http://github.com/Kdyby/Google.

google's People

Contributors

fprochazka avatar janlanger avatar mikulas avatar newpope avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google's Issues

composr: requirements could not be resolved on ~0.1

in my composer.json i have: "kdyby/google": "~0.1"
error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - kdyby/google v0.1.1 requires google/apiclient ~1.0.4@beta -> no matching package found.
    - kdyby/google v0.1 requires google/apiclient ~1.0.4@beta -> no matching package found.
    - Installation request for kdyby/google ~0.1 -> satisfiable by kdyby/google[v0.1, v0.1.1].

Update google/apiclient dependecy

Why is required version ~1.0.4@beta while there is a stable v2.0.2? Can it be changed? I can't install kdyby/google through composer, it says:
kdyby/google v0.1.1 requires google/apiclient ~1.0.4@beta -> satisfiable by google/apiclient[1.0.4-beta, 1.0.5-beta, 1.0.6-beta] but these conflict with your requirements or minimum-stability.

Loading composer repositories failed

Dependency for this extension not found (google/apicllient)

here is mine trial:

C:\Users\xantin\Desktop>composer require kdyby/google:~0.1
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for kdyby/google ~0.1 -> satisfiable by kdyby/google[
v0.1].
    - kdyby/google v0.1 requires google/apiclient ~1.0.4@beta -> no matching pac
kage found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your min
imum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common
 problems.

Installation failed, reverting ./composer.json to its original content.

Support for dynamical pages

Is there a plan to support google oauth for dynamical pages? I want to add oauth to comments and the return url is different for each item where comments are created. And in that case, google refuse this dynamicaly generated return url.

requirements could not be resolved on ~0.1

in my composer.json i have: "kdyby/google": "~0.1"
error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - kdyby/google v0.1.1 requires google/apiclient ~1.0.4@beta -> no matching package found.
    - kdyby/google v0.1 requires google/apiclient ~1.0.4@beta -> no matching package found.
    - Installation request for kdyby/google ~0.1 -> satisfiable by kdyby/google[v0.1, v0.1.1].

isUrl & nette 2.3

Nová verze nette nejspíše změnila způsob jak pracuje s konfiguračními soubory. Nevím jestli je to BC break nové verze, nebo si to má hlídat Kdyby/Google nicméně vznikl problém

google:
    returnUri: "Server:googleLogin"(do=googleLogin-response)

A výsledkem je

Warning
preg_match() expects parameter 2 to be string, object given
// in Kdyby/Google/DI/GoogleExtension.php:164

Jako druhý argument se totiž do metody předá

Nette\DI\Statement #01
    entity private => "Server:googleLogin"
    arguments => array (1)
        do => "googleLogin-response"

Když se v konfiguraci odmaže ten signál, tak už to projde. Problém bude zase ale při návratu od goolu.

Composer: Cannot install kdyby/google package

Hello, I cannot instal this package cause following errors:

 Problem 1
    - kdyby/google v0.1.1 requires google/apiclient ~1.0.4@beta -> no matching package found.
    - kdyby/google v0.1 requires google/apiclient ~1.0.4@beta -> no matching package found.
    - Installation request for kdyby/google ~0.1 -> satisfiable by kdyby/google[v0.1, v0.1.1].

Remove dependency on nette\nette

I dont think so, that it is necessary install complete nette/nette.
Stuff like nette/deprecated & nette/database are not usefull everywhere.

New maintainer?

Hello everyone.
We're looking for a new maintainer for this repository. If you're using it in your project, I offer you to take over this repository.

It would be a great help for everyone and IMHO it's better than to maintain a fork :)

Otherwise, It will be marked as abadoned on packagist in a week or so.

Add ability to set back updated google client

What about to add method "setClient(Google_Client $client)" ?
There is possibility to get client from google, but no way back how to set i back to google.

Reason why i'm wondering is to add one more parameter to google client:

$client = $google->getClient();
$client->setAccessType('offline');
$google->setClient($client);

When you set access type to offline you will get refresh_token and with this token you could get user data when the access token is expired (after one hour)

Or add this call to your google client?

    public function __construct(
        Application\Application $app, Configuration $config, Request $httpRequest, SessionStorage $session,
        Google_Client $client, Google_IO_Abstract $io)
    {
        //...
        $this->client->setAccessType('offline');
    }

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.