AdhDoctrineActAsS3SaveablePlugin is a project mainly written in PHP, it's free.
Amazon AWS S3 behavior for Doctrine and Symfony