{"comment":{"created_at":"2011-10-25T13:50:22Z","body":"Why not add a small autoload.php file (like the autoload function in https://wiki.php.net/rfc/splclassloader) for people that doesn't use an autoloader or use a not PSR-0 compatible autoloader ?\r\n\r\nIt could be a compromise beetween the requires and the dependency to an autoloader...","updated_at":"2011-10-25T13:50:22Z","url":"https://api.github.com/repos/fzaninotto/Faker/issues/comments/2517319","id":2517319,"user":{"gravatar_id":"36e04f5e8d7167c94c8ed78baff0cd4c","avatar_url":"https://secure.gravatar.com/avatar/36e04f5e8d7167c94c8ed78baff0cd4c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/yohang","id":608984,"login":"yohang"}},"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":11,"title":"Adding an autoloader","updated_at":"2011-10-25T13:50:22Z","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":2517319}}