Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer
Package summary
Share
0
issues
1
license
8
MIT
Package created
22 Jul 2013
Version published
15 Apr 2022
Maintainers
3
Total deps
8
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
guzzlehttp/guzzle@7.8.1
guzzlehttp/promises@2.0.2
guzzlehttp/psr7@2.6.2
league/oauth1-client@v1.10.1
psr/http-client@1.0.3
psr/http-factory@1.1.0
ralouphie/getallheaders@3.0.3
symfony/deprecation-contracts@v3.5.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of league/oauth1-client 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
guzzlehttp/guzzle7.8.1112.34 kBMIT
prod
guzzlehttp/psr72.6.276.41 kBMIT
prod

Visualizations

Frequently Asked Questions

What does league/oauth1-client do?

The league/oauth1-client is an OAuth RFC 5849 standards-compliant library designed for performing authentication against OAuth 1 servers. It seemingly makes it trivial to integrate and authenticate commonly used services like Twitter, Tumblr, Bitbucket, Trello, Magento, Uservoice, and Xing, amongst others. The library requires PHP 7.1+, ensuring compatibility with modern PHP versions.

How do you use league/oauth1-client?

To use league/oauth1-client, start by installing it via Composer using the command composer require league/oauth1-client. Once installed, you can set up OAuth 1.0 authentication for a particular service. For servers like Bitbucket, Trello, Tumblr, Twitter, and Xing, initialize a new instance and set 'identifier', 'secret', and 'callback_uri' values. For example,

$server = new League\OAuth1\Client\Server\Twitter([
    'identifier' => 'your-identifier',
    'secret' => 'your-secret',
    'callback_uri' => "http://your-callback-uri/",
    'scope' => 'your-application-scope' // optional ('read', 'write'), empty by default
]);

To start authentication, retrieve and store temporary credentials in the session and redirect the user to the server for login. After the user has authenticated and redirected back, you can retrieve token credentials to make calls on their behalf. User information and other resources can be accessed by invoking methods like getUserDetails() and getUserEmail() on server instances.

Where are the league/oauth1-client docs?

The league/oauth1-client library doesn't explicitly list a dedicated documentation page. However, comprehensive usage instructions and other pertinent details pertaining to the library can be found in the package's README file on its GitHub repository: https://github.com/thephpleague/oauth1-client. To get more acquainted with its usage, you can look at the examples available under the resources/examples directory in the repository.