skyzyx / adobe-swatch-exchange
Generates ASE swatch files for use with Adobe products.
Requires
- php: >=5.3.3
- ext-mbstring: *
This package is not auto-updated.
Last update: 2018-05-08 10:33:01 UTC
README
Programmatically generates Adobe .ase
files for use with the Adobe suite of applications.
Requirements
The following software is required for to run:
Examples
use Ase\Color\Hex; use Ase\Generator; use Ase\Palette\Palette; $ase = new Generator(array( new Palette('I got the blues', array( new Hex('One', '0033ff'), new Hex('Two', '#03c'), new Hex('Three', '#0066cc'), )), )); file_put_contents('palette.ase', $ase->makePalette());
Installation
Depending on your needs, there are a few different ways you can install Adobe Swatch Exchange Generator:
Bundle with Composer
To add Adobe Swatch Exchange Generator as a Composer dependency in your composer.json
file:
{ "require": { "skyzyx/adobe-swatch-encoder": ">=1.0" } }
Install source from GitHub
To install the source code for Adobe Swatch Exchange Generator:
git clone git://github.com/skyzyx/adobe-swatch-encoder.git
cd adobe-swatch-encoder
wget --quiet http://getcomposer.org/composer.phar
php composer.phar install -o
Install source from zip/tarball
Alternatively, you can fetch a tarball or zipball:
curl https://github.com/skyzyx/adobe-swatch-encoder/tarball/master | tar xzv
wget https://github.com/skyzyx/adobe-swatch-encoder/tarball/master -O - | tar xzv
Using a Class Loader
If you're using a class loader (e.g., Symfony Class Loader) for PSR-0-style class loading:
$loader->registerNamespace('Ase', 'path/to/vendor/Ase/src');
Contributing
To view the list of existing contributors, run the following command from the Terminal:
git shortlog -sne --no-merges
How?
Here's the process for contributing:
- Fork Adobe Swatch Exchange Generator to your GitHub account.
- Clone your GitHub copy of the repository into your local workspace.
- Write code, fix bugs, and add tests with 100% code coverage.
- Commit your changes to your local workspace and push them up to your GitHub copy.
- You submit a GitHub pull request with a description of what the change is.
- The contribution is reviewed. Maybe there will be some banter back-and-forth in the comments.
- If all goes well, your pull request will be accepted and your changes are merged in.
- You will become "Internet famous" with anybody who runs
git shortlog
from the Terminal. :)
Authors, Copyright & Licensing
- Copyright (c) 2007 Chris Williams
- Copyright (c) 2013 Ryan Parman.
See also the list of contributors who participated in this project.
Licensed for use under the terms of the MIT license.