.gitignore:

- Added vendor folder
composer.json:
- Added required description
- Fixed autoloader classmap
- Removed extra-section
example.php:
- Now has working autoloader and non-autoloader examples
- Better wording in comments and caching example, also includes destination configuration example
Palette.php:
- Added MIT license block and changed the license links from GPL2 to MIT to reflect composer.json file
- Moved file from from a directory to a better one, reflecting class namespace.
- Combined tests to fewer try {} catch {} -blocks
- Added comments to help understand the code
This commit is contained in:
Ismo Vuorinen
2013-07-01 16:03:59 +03:00
parent f0f65c1b94
commit 7aabe2f861
4 changed files with 95 additions and 42 deletions

View File

@@ -1,5 +1,6 @@
{
"name": "ivuorinen/palette",
"description": "Get most used colors from an image",
"keywords": ["image", "colors", "palette", "psr-2"],
"homepage": "https://github.com/ivuorinen/palette",
"type": "library",
@@ -14,12 +15,11 @@
"source": "https://github.com/ivuorinen/palette",
"issues": "https://github.com/ivuorinen/palette/issues"
},
"autoload": {
"psr-0": { "ivuorinen\\Palette\\": "src/" },
"classmap": ["src/"]
},
"require": {
"php": ">=5.2.0"
},
"extra": {
"branch-alias": {
"dev-master": "master"
}
}
}