{"id":36988091,"url":"https://github.com/kalprajsolutions/bitly","last_synced_at":"2026-01-13T23:24:26.416Z","repository":{"id":57004155,"uuid":"470976295","full_name":"kalprajsolutions/bitly","owner":"kalprajsolutions","description":"Laravel Bitly package is developed to for generating bitly short urls with advance features and full control over the short url generation.","archived":false,"fork":false,"pushed_at":"2024-07-09T10:32:28.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T13:51:03.039Z","etag":null,"topics":["bitly","bitly-api","bitly-client","bitly-v4","kalprajsolutions-bitly","laravel","laravel-bitly","url-shortener","url-shortner"],"latest_commit_sha":null,"homepage":"https://github.com/kalprajsolutions/bitly","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/kalprajsolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-17T12:01:54.000Z","updated_at":"2024-07-09T10:32:03.000Z","dependencies_parsed_at":"2022-08-21T12:10:51.942Z","dependency_job_id":null,"html_url":"https://github.com/kalprajsolutions/bitly","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kalprajsolutions/bitly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalprajsolutions%2Fbitly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalprajsolutions%2Fbitly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalprajsolutions%2Fbitly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalprajsolutions%2Fbitly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalprajsolutions","download_url":"https://codeload.github.com/kalprajsolutions/bitly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalprajsolutions%2Fbitly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28404266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bitly","bitly-api","bitly-client","bitly-v4","kalprajsolutions-bitly","laravel","laravel-bitly","url-shortener","url-shortner"],"created_at":"2026-01-13T23:24:25.739Z","updated_at":"2026-01-13T23:24:26.389Z","avatar_url":"https://github.com/kalprajsolutions.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Bitly Advanced Package\n\nA laravel package for generating [Bitly](https://bitly.com/) advanced short URLs and BITLINKS.\n\nBitly is the most widely trusted link management platform in the world. By using the Bitly API, you will exercise the full power of your links through automated link customization, mobile deep linking, and click analytics.\n\nFor more information see [BITLY DEV DOCS](https://dev.bitly.com/)\n\n[![Latest Stable Version](https://poser.pugx.org/kalprajsolutions/bitly/v/stable)](https://packagist.org/packages/kalprajsolutions/bitly)\n[![License](https://poser.pugx.org/kalprajsolutions/bitly/license)](https://packagist.org/packages/kalprajsolutions/bitly)\n[![Total Downloads](https://poser.pugx.org/kalprajsolutions/bitly/downloads)](https://packagist.org/packages/kalprajsolutions/bitly)\n\n## Requirements\n\nLaravel 5.1 or Later\n\nPHP 7.1 or Later\n\nBitly [Access Token](https://app.bitly.com/settings/api/ \"Access Token\")\n\n## Installation\n\nInstallation is a quick 3 step process:\n\n1. Download kalprajsolutions/bitly using composer\n2. Enable the package in app.php\n3. Configure your Bitly credentials\n4. (Optional) Configure the package facade\n\n### Step 1: Download kalprajsolutions/bitly using composer\n\nAdd **kalprajsolutions/bitly** by executing the command:\n\n```\ncomposer require kalprajsolutions/bitly\n```\n\n### Step 2: Enable the package in app.php\n\nRegister the Service in: **config/app.php**\n\n```php\nKalprajSolutions\\Bitly\\BitlyServiceProvider::class,\n```\n\n### Step 3: Configure Bitly credentials\n\n```\nphp artisan vendor:publish --provider=\"KalprajSolutions\\Bitly\\BitlyServiceProvider\"\n```\n\nAdd this in you **.env** file\n\n```\nBITLY_ACCESS_TOKEN=your_secret_bitly_access_token\n```\n\n### Step 4 (Optional): Configure the package facade\n\nRegister the Bitly Facade in: **config/app.php**\n\n```php\nreturn [\n\n    'aliases' =\u003e [\n\n        'App' =\u003e Illuminate\\Support\\Facades\\App::class,\n        'Artisan' =\u003e Illuminate\\Support\\Facades\\Artisan::class,\n        'Auth' =\u003e Illuminate\\Support\\Facades\\Auth::class,\n        // ...\n        'Bitly' =\u003e KalprajSolutions\\Bitly\\Facade\\Bitly::class,\n    ],\n\n];\n```\n\n## Quick Usage\n\n```php\n$url = app('bitly')-\u003eshort('https://www.example.com/'); // http://bit.ly/abcdefg\n```\n\nOr if you want to use facade, add this in your class after namespace declaration:\n\n```php\nuse Bitly;\n```\n\nThen you can use it directly by calling `Bitly::` like:\n\n```php\n$url = Bitly::short('https://www.example.com/'); // http://bit.ly/abcdefg\n```\n\nIn quick usage you can also use Proxy to short the url asap using `-\u003eproxy()`\n\n```php\n$url = Bitly::proxy('user:pass@1.1.1.1:80')-\u003eshort('https://www.example.com/'); // http://bit.ly/abcdefg\n```\n\n## Advance Usage\n\nThis Bitly package allow you to use advance bitlink attributes to customize bitly urls and proxies.\n\n#### Guarding Attributes\n\n\u003e Note: While using attribues you will have to provide `-\u003eurl()` and `-\u003eget()` to retrive short url!\n\n**URL**\n\nYou will have to provide long URL to this function which will be used to shorten the url.\n\n```php\n$url = Bitly::url('http://example.com')-\u003eget(); // http://bit.ly/nHcn3\n```\n\n**TITLE**\n\nIts a short description that appears in the Bitly UI.\nYou can now set the title of the URL which you are shortning by passing title in title function\n\n```php\n$url = Bitly::url('http://example.com')\n\t\t-\u003etitle('This will be the title')\n\t\t-\u003eget();\n```\n\n**PROXY**\n\nPass an associative array to specify HTTP proxies for specific URI schemes (i.e., \"http\", \"https\"). Provide a no key value pair to provide a list of host names that should not be proxied to.\n\n\u003e Note: You can provide proxy URLs that contain a scheme, username, and password. For example, \"http://user:pass@localhost:8125\".\n\n```php\n$url = Bitly::url('http://example.com')\n\t\t-\u003eproxy('user:pass@localhost:8125')\n\t\t-\u003eget();\n\n```\n\nOR\n\n```php\n$url = Bitly::url('http://example.com')\n\t\t-\u003eproxy([\n\t\t\t'http'  =\u003e 'http://localhost:8125', // Use this proxy with \"http\"\n\t\t\t'https' =\u003e 'http://localhost:9124', // Use this proxy with \"https\"\n\t\t])\n\t\t-\u003eget();\n```\n\n**TAGS**\n\nSet multiple tags with tags attributes. Tags must be provided in array.\n\n```php\n$url = Bitly::url('http://example.com')\n\t\t-\u003etags([\n\t\t'First Tag',\n\t\t'Second Tag',\n\t\t])-\u003eget();\n```\n\n**GUID**\n\nguid can be used to set your group id. GUID Identifies a group of users in your account. Every user will belong to at least one group within an organization. Most actions on our API will be on behalf of a group. Always verify your default group in Bitly and specify a group in the call with `-\u003eguid()` attribute.\n\n```php\n$url = Bitly::url('http://example.com')\n\t\t-\u003eguid('Ba1bc23dE4F')\n\t\t-\u003eget();\n```\n\n**DOMAIN**\n\nCustomizing the domain requires that you have a custom domain attached to your Bitly account. The default value is bit.ly.\nTo brand your short links use domain attribute. Premium Bitly customers can set custom domain added in dashboard with `-\u003edomain()` . This is only for Premium Bitly Customers\n\n```php\n$url = Bitly::url('http://example.com')\n\t\t-\u003edomain('custom.com')\n\t\t-\u003eget();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalprajsolutions%2Fbitly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalprajsolutions%2Fbitly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalprajsolutions%2Fbitly/lists"}