EzMinify is a project mainly written in PHP and JAVASCRIPT, it's free.
Minify and concat all Javascript and CSS automagically
This little plugin for Wordpress adds minify functionality to your theme.
NOTE: It uses the dependency functionality of Wordpress so the theme needs to use wp_enqueue_script and wp_enqueue_style to be effective.