{"id":21201684,"url":"https://github.com/oleander/googl-php","last_synced_at":"2025-07-10T06:31:53.464Z","repository":{"id":16251680,"uuid":"18999583","full_name":"oleander/googl-php","owner":"oleander","description":"Google URL shortener API in PHP","archived":false,"fork":false,"pushed_at":"2014-08-13T20:53:43.000Z","size":157,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-26T15:31:58.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oleander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-21T16:59:31.000Z","updated_at":"2015-05-08T12:48:56.000Z","dependencies_parsed_at":"2022-09-10T15:00:55.132Z","dependency_job_id":null,"html_url":"https://github.com/oleander/googl-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fgoogl-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fgoogl-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fgoogl-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fgoogl-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/googl-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225622846,"owners_count":17498168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T20:10:30.807Z","updated_at":"2024-11-20T20:10:31.248Z","avatar_url":"https://github.com/oleander.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Googl\n\nGoogle URL shortener API in PHP\n\n## Usage\n\n### Shorten url\n\n``` php\n$client = new Googl\\Base(\"username@gmail.com\", \"password\");\n$url = $client-\u003eshorten(\"http://www.bbc.co.uk/\");\necho $url-\u003eshort; # =\u003e \"http://goo.gl/wZts\"\n```\n\nYour url should now be visible at [http://goo.gl/](http://goo.gl/).\n\n### Expand url\n\n``` php\n$long = Googl\\Base::expand(\"http://goo.gl/wZts\");\necho $url-\u003eoriginal; # =\u003e \"http://www.bbc.co.uk/\"\n```\n\n## Install\n\n### Without Composer\n\nClone the project using `git clone https://github.com/oleander/googl-php` \nand include the source file with `require_once(\"googl-php/src/Googl.class.php\");`\n\n### With Composer\n\nAdd the following json to your `composer.json` file and run `composer update`.\n\n    {\n      \"require\" : {\n        \"oleander/googl\" : \"dev-master\"\n      }\n    }\n\n## Test\n\nTests can be found in the `tests` folder and executed by running\n`USER=\"username@gmail.com\" PASSWORD=\"gmail-password\" phpunit`. Don't\nforget to run `composer update` before you run the test suite.\n\n## Contributing\n\n1. Fork it ( http://github.com/oleander/googl-php/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fgoogl-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2Fgoogl-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fgoogl-php/lists"}