phpSmug

phpSmug is a simple object orientated wrapper for the new SmugMug API v2, written in PHP.

MIT License

Downloads
59.8K
Stars
41
Committers
7
phpSmug - 4.1.0 Latest Release

Published by lildude about 6 years ago

Release date: 9 Sep '18

Added

  • Support for "non-inline" expansions.

Changed

  • The minimum required and tested version of PHP is now 5.6.
  • The _config option, if provided as an array, is JSON encoded for ease of use.

Fixes

  • Empty arguments are stripped from the URL before calling the API. Fixes #43.
phpSmug - 4.0.0

Published by lildude almost 9 years ago

Release Date: 31 Dec '15

Added

  • Support for SmugMug's v2 API.

Changed

  • Complete rewrite of phpSmug.
  • Introduction of proper semantic versioning.
  • Switched to using Guzzle for requests to the API. This means more reliable and predictable behaviour and allows for easier future improvements in phpSmug without having to worry about maintaining a library that submits requests.
  • All tests are now public and run on Travis CI with every push.
  • phpSmug is now licensed under the MIT license.
  • PSR-1, PSR-2, and PSR-4 coding standards are implemented and enforced by unit testing.
  • phpSmug 4.0.0 is not backwardly compatible with phpSmug 3.5 and earlier.

Removed

  • Caching has been removed from this release.
  • Support for SmugMug's 1.3.0 and earlier API.
phpSmug -

Published by lildude over 10 years ago

Release Date: Nov '08

  • Resolved issue where error code was not passed to Exception() line 350 (Ticket #1)
phpSmug -

Published by lildude over 10 years ago

Release Date: 22 Feb '09

  • Tidied up code so phpSmug.php is E_STRICT compliant and doesn't report any notice messages.
  • Force error log level to be lower than E_STRICT due to limitation of PEAR modules (See notes in Ticket #2).
  • Resolved over-zealous clearCache() function (Ticket #3).
phpSmug -

Published by lildude over 10 years ago

Release Date: 27 Sep '09

  • Changed image_upload method to upload to upload.smugmug.com instead of api.smugmug.com. SmugMug made changes to enforce the use of upload.smugmug.com as uploading to api.smugmug.com was causing problems. (Ticket #5)
  • Resolved issue with recaching of cached data (Ticket #4).
  • SmugMug's mode (ie read-only etc) is now stored in $obj->mode for easy checking of SmugMug's status.
  • Corrected "login with hash" example in the README file.
phpSmug -

Published by lildude over 10 years ago

Release Date: 21 Jul '10

  • https is forced for all calls that use OAuth with the PLAINTEXT signature method. WARNING: Uploads are however rejected by the API if you use PLAINTEXT (which is NOT the default).
  • Failed upload responses and smugmug.auth.* method responses are no longer cached.
  • Upload filenames are now encoded to ensure spaces and non-ascii characters are correctly handled.
  • images_upload() now honours any earlier setProxy() calls so uploads can occur through that proxy.
  • clearCache() now takes a boolean argument to state whether you want the cache location to be removed when the cache is cleared. Default is FALSE, ie the cache location will NOT be removed
  • Added methods to handle calling of the various login.* methods offered by the API when using these instead of the single login() method offered by phpSmug. (Ticket #6)
  • For my own benefit, I've now implemented a full PHPUnit test suite that checks all functionality of phpSmug.
phpSmug - 3.0

Published by lildude about 11 years ago

Release Date: 13 Nov '10

  • The setProxy() method now allows you to set a proxy username and password.
  • OAuth token setting now works correctly again (Ticket #7).
  • phpSmug no longer depends on PEAR so no longer ships any PEAR modules.
  • phpSmug is now 100% PHP 5 E_STRICT compliant (Ticket #2).
  • phpSmug is now licensed under the GPLv3 license.
phpSmug - 3.1

Published by lildude about 11 years ago

Release Date: 28 Mar '11

  • phpSmug now defaults to using the 1.2.2 API endpoint. All earlier endpoints are still available, but technically deprecated by SmugMug.
  • Removed erroneous re-instantiation of processor when setting adapter.
  • Corrected check for safe_dir OR open_basedir so fails over to socket connection correctly
  • Improved connection settings
phpSmug - 3.2

Published by lildude about 11 years ago

Release Date: 30 May '11

  • Improved support for the 1.3.0 API endpoint (Ticket #10)
  • Implemented the ability to force all API communication to occur securely over HTTPS. OAuth Only. (Ticket #9)
  • phpSmug now uses the documented secure.smugmug.com API endpoints (Ticket #8)
  • Updated OAuth example to use new Album URL and to remove its use of the deprecated session_unregister() PHP function.
phpSmug - 3.3

Published by lildude about 11 years ago

Release Date: 3 Jun '11

  • Worked around bizarre behaviour in the way PHP's implode() and http_build_query() handle associative array keys with empty values. Fixes Ticket #11.
phpSmug - 3.4

Published by lildude about 11 years ago

Release Date: 21 Jun '11

  • Added missing hidden header for image uploads that should be hidden. Fixes Ticket #12.
phpSmug - 3.5

Published by lildude about 11 years ago

Release Date: 2 Mar '13

  • Added ability to sign an image URL with OAuth authentication parameters to allow embedding of "non-external" images within external sites. Fixes Ticket #16.
  • Added example-external-links.php example to demonstrate the above.
  • Switched to using Markdown for the README file.
  • Misc other little coding changes and improvements.