Inlinestylerlib is a project mainly written in PHP, it's free.
Torchbox's InlineStyler PHP API
## Usage
$in = new InlineStyler('/path/to/file.html');
see the Class file for detailed documentation.
There are some stuff I plan to apply to this project such as batch feature, which will handle up to 10 requsts in a minute.