{"id":13828542,"url":"https://github.com/ecrmnn/laravel-https","last_synced_at":"2025-03-25T03:31:12.313Z","repository":{"id":56974806,"uuid":"97561501","full_name":"ecrmnn/laravel-https","owner":"ecrmnn","description":"🔒 Redirect all requests to HTTPS. Also works with load balancing, AWS, Heroku and other services","archived":false,"fork":false,"pushed_at":"2017-08-17T19:08:41.000Z","size":39,"stargazers_count":60,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T07:53:58.300Z","etag":null,"topics":["https","laravel","laravel-package","middleware","php7","secure"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/ecrmnn/laravel-https","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecrmnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-18T06:35:53.000Z","updated_at":"2024-05-23T04:26:24.000Z","dependencies_parsed_at":"2022-08-21T11:50:28.481Z","dependency_job_id":null,"html_url":"https://github.com/ecrmnn/laravel-https","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Flaravel-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Flaravel-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Flaravel-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Flaravel-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecrmnn","download_url":"https://codeload.github.com/ecrmnn/laravel-https/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394623,"owners_count":20608115,"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":["https","laravel","laravel-package","middleware","php7","secure"],"created_at":"2024-08-04T09:02:51.470Z","updated_at":"2025-03-25T03:31:12.047Z","avatar_url":"https://github.com/ecrmnn.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# \u003cimg src=\"https://raw.githubusercontent.com/ecrmnn/laravel-https/master/laravel-https.png\" alt=\"laravel-https\"\u003e\n\n\u003e Generate HTTPS-links and redirect all requests to HTTPS. Also works with load balancing, AWS, Heroku and other \nservices \n\n[![](https://img.shields.io/travis/ecrmnn/laravel-https/master.svg?style=flat-square)](https://travis-ci.org/ecrmnn/laravel-https/builds)\n[![](https://img.shields.io/packagist/dt/ecrmnn/laravel-https.svg?style=flat-square)](https://packagist.org/packages/ecrmnn/laravel-https)\n[![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![](https://img.shields.io/badge/code_style-PSR_2-blue.svg?style=flat-square)](http://www.php-fig.org/psr/psr-2/)\n\n### Installation \n##### Add to your project using Composer\n```bash\ncomposer require ecrmnn/laravel-https\n```\n\n##### Add under ``providers`` in ``config/app.php``\n```php\n\\Ecrmnn\\LaravelHttps\\Providers\\ServiceProvider::class,\n```\n\n##### Add under ``$middleware`` in ``app/Http/Kernel.php``\n```php\n\\Ecrmnn\\LaravelHttps\\Http\\Middleware\\ForceHttps::class,\n```\n\n### Usage\n##### Set environment variable\n*HTTPS will only be forced when ``env('HTTPS')`` is set to ``true``*\n```bash\nHTTPS=true\n```\n\n### What is this?\n##### Generate HTTPS-links automagically \n``LaravelHTTPS`` forces the URL scheme in Laravel to use the HTTPS prefix for all links generated using ``url()`` \nand ``route()``. That mean that all your links can be converted to use HTTPS just by installing ``LaravelHTTPS``\n\n##### Force redirect HTTP to HTTPS\nWith the middleware included; ``ForceHttps``, you can simply specify that as a global middleware and all requests \nwill be redirected correctly when accessing a non-HTTPS URL.\n\n### Requirements\n- Laravel 5.0 +\n- PHP 7 +\n\n### License\nMIT © [Daniel Eckermann](http://danieleckermann.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecrmnn%2Flaravel-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecrmnn%2Flaravel-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecrmnn%2Flaravel-https/lists"}