Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk: Generate php sdk and point php autoloader to lib folder #736

Merged
merged 2 commits into from
Feb 5, 2018

Conversation

pnicolcev-tulipretail
Copy link
Contributor

Generate php sdk and include it in the project.
Point php autoloader to lib folder.

@aeneasr
Copy link
Member

aeneasr commented Jan 10, 2018

That look pretty solid already, thank you!

Could you add a quick guide on how to instantiate this to docs/sdk/php.md?

@aeneasr
Copy link
Member

aeneasr commented Jan 12, 2018

ping @pnicolcev-tulipretail :)

Add docs/sdk/php.md

Signed-off-by: Philip Nicolcev <phil.nicolcev@tulip.io>
@pnicolcev-tulipretail
Copy link
Contributor Author

pnicolcev-tulipretail commented Jan 25, 2018

@arekkas I'm here! Added and squashed. You may also want to fork/take ownership of the oauth2 client: https://github.com/tulipretail/oauth2-hydra which is referenced in the php.md.

Also please register on packagist.org and submit this sdk once you merge so that composer users have an easier time pulling in your sdk.

Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! That looks pretty solid. I registered at packagist here: https://packagist.org/packages/ory/hydra-sdk

docs/sdk/php.md Outdated
```json
{
"repositories": {
"tulip/hydra-php-sdk": { "type": "vcs", "url": "git@git.internal.tulip.io:shared/composer-libraries/hydra-php-sdk.git" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this can be updated? I registered packagist here: https://packagist.org/packages/ory/hydra-sdk

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, the above was from internal testing. Fixed this reference to your packagist repo.

client that has had this work done for us.

```sh
composer require tulip/oauth2-hydra
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here I guess?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Different repo. I can change the org to ory but maybe it's better if you take ownership if it's official. You can fork this guy https://github.com/tulipretail/oauth2-hydra, change tulip/oauth2-hydra to ory/oauth2-hydra in composer.json and submit it to packagist.

You could also make it official by making a PR to add it to the league's list https://github.com/thephpleague/oauth2-client/blob/master/docs/providers/thirdparty.md

@aeneasr aeneasr merged commit f84eb65 into ory:master Feb 5, 2018
@aeneasr
Copy link
Member

aeneasr commented Feb 5, 2018

Thank you!

@pnicolcev-tulipretail pnicolcev-tulipretail deleted the gen-php-sdk branch February 5, 2018 16:28
@aeneasr
Copy link
Member

aeneasr commented Mar 16, 2018

This PR was made against master which is currently scheduled for the first alpha of 1.0.0, but that will take a some time before being published.

Could you re-open this PR against the 0.11 branch? Then I can create a release for that version which includes the PHP SDK.

@aeneasr
Copy link
Member

aeneasr commented Mar 16, 2018

Damn, I see that the branch was deleted... Maybe you have a backup locally?

@pnicolcev-tulipretail pnicolcev-tulipretail restored the gen-php-sdk branch March 18, 2018 18:51
@pnicolcev-tulipretail
Copy link
Contributor Author

Hm, I just restored it. Will try opening one to 0.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants