{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/974","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/974/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/974/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/974","id":94503673,"number":974,"title":"PHP Namespace Is Not API-Specific","user":{"login":"andrewmunsell","id":357386,"avatar_url":"https://avatars.githubusercontent.com/u/357386?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewmunsell","html_url":"https://github.com/andrewmunsell","followers_url":"https://api.github.com/users/andrewmunsell/followers","following_url":"https://api.github.com/users/andrewmunsell/following{/other_user}","gists_url":"https://api.github.com/users/andrewmunsell/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmunsell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmunsell/subscriptions","organizations_url":"https://api.github.com/users/andrewmunsell/orgs","repos_url":"https://api.github.com/users/andrewmunsell/repos","events_url":"https://api.github.com/users/andrewmunsell/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmunsell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-11T20:03:49Z","updated_at":"2015-07-12T02:59:21Z","closed_at":null,"body":"Right now, the generated PHP client SDK uses a generic namespace (`SwaggerClient`) and generic class names for some of the classes (`Configuration`, for example). This could cause conflicts if multiple Swagger based API SDKs were included in a single project.\r\n\r\nThe namespace of the generated API SDKs should be specific to the API itself, either generated automatically from the API name, or specified manually."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/120682047","html_url":"https://github.com/swagger-api/swagger-codegen/issues/974#issuecomment-120682047","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/974","id":120682047,"user":{"login":"wing328","id":934260,"avatar_url":"https://avatars.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T02:59:21Z","updated_at":"2015-07-12T02:59:21Z","body":"@andrewmunsell may I know if you've tested the PHP client in the `develop_2.0` branch? You can also customize the PHP client via a config.json, e.g.\r\n```\r\njava -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \\\r\n  -i http://petstore.swagger.io/v2/swagger.json \\\r\n  -l php \\\r\n  -o /var/tmp/php/ \\\r\n  -c /var/tmp/config.json\r\n```\r\nand here is the available option in the config.json \r\n```\r\njava -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar config-help -l php\r\n\r\nCONFIG OPTIONS\r\n\tmodelPackage\r\n\t    package for generated models\r\n\r\n\tapiPackage\r\n\t    package for generated api classes\r\n\r\n\tpackagePath\r\n\t    main package name for classes\r\n\r\n\tsrcBasePath\r\n\t    directory directory under packagePath to serve as source root\r\n```"}}