#!/usr/bin/env php title("Remi's RPM git repostiories") ->description('Change') ->url('https://git.remirepo.net/cgit') ->language('en-US') ->copyright('Copyright 2005-2017, Remi Collet') ->pubDate(time()) ->lastBuildDate(time()) ->ttl(60) ->appendTo($feed); $item = new Item(); $item ->title($msg) ->description($msg) ->url('https://git.remirepo.net/cgit') ->author($author) ->pubDate($time) ->guid("${repo}_${hash}", true) ->appendTo($channel); echo $feed; // or echo $feed->render();