{"comment":{"created_at":"2011-10-15T16:26:01Z","body":"Why should I avoid require()? Not way to to otherwise if I don't want to use\r\nan autoloader.\r\n\r\nA PSR-0 autoloader is a dependency. For now, this project has none, and\r\ntherefore is very easy to install. I'd like to keep that.\r\n\r\nBesides, there are a lot of good libs that don't feel obliged to use an\r\nautoloader. See, for instance:\r\n\r\nhttps://github.com/fabpot/yaml\r\n\r\n2011/10/15 William DURAND <\r\nreply@reply.github.com>\r\n\r\n> You should avoid `require()` methods too.\r\n> And a PSR-0 autoloader is a standard, I guess you want to follow\r\n> conventions for this lib :)\r\n>\r\n> Le 15 oct. 2011  14:15, Francois Zaninotto<reply@reply.github.com> a\r\n> crit :\r\n>\r\n> > Yeah, not sure about that. The factory will work if you add an autoloaded\r\n> Provider. But I'm not sure I'll add Yet Another Autoloader - or a dependency\r\n> to PSR-0 autoloader.\r\n> >\r\n> > --\r\n> > Reply to this email directly or view it on GitHub:\r\n> > https://github.com/fzaninotto/Faker/issues/5#issuecomment-2415259\r\n>\r\n> --\r\n> Reply to this email directly or view it on GitHub:\r\n> https://github.com/fzaninotto/Faker/issues/5#issuecomment-2415796\r\n>","updated_at":"2011-10-15T16:26:01Z","url":"https://api.github.com/repos/fzaninotto/Faker/issues/comments/2416169","id":2416169,"user":{"gravatar_id":"8ad62a25686796c42fedbe3ddedce1f1","avatar_url":"https://secure.gravatar.com/avatar/8ad62a25686796c42fedbe3ddedce1f1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/fzaninotto","id":99944,"login":"fzaninotto"}},"action":"created","issue":{"number":5,"created_at":"2011-10-15T11:52:14Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi,\r\n\r\nWhat about adding an autoloader for this lib ? And to set a \"standard\" directory structure as below:\r\n\r\n```\r\n Faker\r\n    |_ src/\r\n    |    |_  Faker/\r\n    |        |_ Provider/\r\n    |        |_ Factory.php\r\n    |        |_ Generator.php\r\n    |_ tests/\r\n         |_  Faker/\r\n             |_ Provider/\r\n             |_ FactoryTest.php\r\n             |_ GeneratorTest.php\r\n```\r\n\r\nThat will follow the PSR-0 standard and will ease integration in other projects. You won't have to provide a dependency with ClassLoader except for unit test or standalone usage (which is more or less the same thing).\r\n\r\nSee: https://github.com/knplabs/Gaufrette\r\nNote: Propel2 will follow the same standard.","comments":3,"title":"Adding an autoloader","updated_at":"2011-10-15T16:26:01Z","url":"https://api.github.com/repos/fzaninotto/Faker/issues/5","id":1917273,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"c44ab7aed2bd14539fafb9175fcf2085","avatar_url":"https://secure.gravatar.com/avatar/c44ab7aed2bd14539fafb9175fcf2085?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/willdurand","id":217628,"login":"willdurand"},"html_url":"https://github.com/fzaninotto/Faker/issues/5","labels":[],"state":"open"},"legacy":{"issue_id":1917273,"comment_id":2416169}}