Download the PHP package lildude/phpsmug without Composer
On this page you can find all versions of the php package lildude/phpsmug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lildude/phpsmug
More information about lildude/phpsmug
Files in lildude/phpsmug
Package phpsmug
Short Description A simple object orientated wrapper for the SmugMug API v2
License MIT
Homepage http://phpsmug.com
Informations about the package phpsmug
phpSmug
phpSmug is a simple object orientated wrapper for the new SmugMug API v2, written in PHP.
The intention of this class is to allow PHP application developers quick and easy interaction with the SmugMug API, without having to worry about the finer details of the API.
Not already a SmugMug user? Here, have a $5 discount off your first year on me by registering using this code:
The development of phpSmug takes place in my free time. If you find phpSmug useful and found it has saved you a lot of time, consider sponsoring this project.
Note: Due to significant changes in the SmugMug API, phpSmug 4.0.0 and later is not backwardly compatible with the SmugMug API v1.x.x releases.
Requirements
- PHP >= 7.3.0,
- Guzzle 6 library and the Guzzle OAuth1 Subscriber,
- (optional) PHPUnit and php-cs-fixer to run tests.
Installation
The recommended method of installing phpSmug is using Composer. If you have Composer installed, you can install phpSmug and all its dependencies from within your project directory:
Alternatively, you can add the following to your project's composer.json
:
.. and then run composer update
from within your project directory.
If you don't have Composer installed, you can download it using:
Basic Usage of the phpSmug Client
phpSmug
follows the PSR-1, PSR-2 and PSR-4 conventions, which means you can easily use Composer's autoloading to integrate phpSmug
into your projects.
From the $client
object, you can access to all the SmugMug 2.0 API methods.
Documentation
See the https://lildude.github.io/phpSmug/ for more detailed documentation.
Examples
phpSmug comes with 3 examples to help get you on your way. All 3 examples perform the same thing, just using differing authentication methods. They all show thumbnails of the first album found for the respective authentication methods:
example.php
illustrates anonymous, unauthenticated access.example-oauth.php
illustrates an OAuth login.example-external-links.php
illustrates displaying private images.
Getting Help
The best way to get help with implementing phpSmug into your projects is to open an issue. This allows you to easily search for other issues where others may have asked to the same questions or hit the same problems and if they haven't, your issue will add to the resources available to others at a later date.
Please don't be shy. If you've got a question, problem or are just curious about something, there's a very good chance someone else is too, so go ahead and open an issue and ask.
Contributing
Found a bug or want to make phpSmug even better? Please feel free to open a pull request with your changes, but be sure to check out the CONTRIBUTING.md first for some tips and guidelines. No pull request is too small.
Changes
All notable changes to this project are documented in CHANGELOG.md.
License
phpSmug is licensed under the MIT License - see the LICENSE file for details
All versions of phpsmug with dependencies
guzzlehttp/guzzle Version ~6.2
guzzlehttp/oauth-subscriber Version 0.3.*