CSS Minifier has a solid API and can be used from any language as well as our web frontend.
Many people have sent language examples over the years, but we want more! We'd love to add more examples in your favourite programming language, so please send them our way. Email andychilton at that gmail place in the sky, tweet me @andychilton, or open an issue or PR on webdev-sh/cssminfier.com.
Click on the language of your choice to see an example: