{"id":15488988,"url":"https://github.com/winxaito/laravel-https","last_synced_at":"2025-10-11T17:16:10.400Z","repository":{"id":57081146,"uuid":"118955562","full_name":"WinXaito/laravel-https","owner":"WinXaito","description":"Redirects http requests to https according to the configuration","archived":false,"fork":false,"pushed_at":"2018-01-25T21:07:39.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T16:33:31.407Z","etag":null,"topics":["https-redirect","laravel-5-package","laravel-https"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WinXaito.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":"2018-01-25T19:07:05.000Z","updated_at":"2018-01-25T21:08:11.000Z","dependencies_parsed_at":"2022-08-24T14:58:14.013Z","dependency_job_id":null,"html_url":"https://github.com/WinXaito/laravel-https","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinXaito%2Flaravel-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinXaito%2Flaravel-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinXaito%2Flaravel-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinXaito%2Flaravel-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WinXaito","download_url":"https://codeload.github.com/WinXaito/laravel-https/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246059336,"owners_count":20717085,"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-redirect","laravel-5-package","laravel-https"],"created_at":"2024-10-02T07:02:47.907Z","updated_at":"2025-10-11T17:16:05.353Z","avatar_url":"https://github.com/WinXaito.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"*Si vous souhaitez lire ce fichier README en français, [cliquez ici](https://github.com/WinXaito/laravel-https/blob/master/README_fr.md).*\n\n# Laravel HTTPS redirection\nThis package aims to redirect your HTTP requests to HTTPS very simply.\n\n## Installation\n\n*NB: This package has not been tested below Laravel 5.5*\n\n\nFirst, use the function below:\n\n```\ncomposer require winxaito/laravel-https\n```\n\nIf you don't use auto-discovery, add the ServiceProvider to the providers \narray in `config/app.php`\n\n```php\nWinXaito\\LaravelHttpsRedirect\\LaravelHttpsServiceProvider::class,\n```\n\nIf you want to work with the configurations without going through an environment \nfile, run the following command and then edit the `config/https-redirection.php` \nfile\n\n```php\nphp artisan vendor:publish --provider=\"WinXaito\\LaravelHttpsRedirect\\LaravelHttpsServiceProvider\"\n```\n\n## How to use it ?\n\nThis package works with environment variables in order of priority.  \nList of constants in order of priority:\n\n- `HTTPS_FORCE`: If this value is true, then in all cases the requests will be \nredirected to *HTTPS*, otherwise we go to the following constant:\n- `HTTPS_PROHIBIT`: If this constant is true, the queries will not be redirected, \nif it is false, then we go to the following constant:\n- `APP_ENV`: If this constant is *production*, then we redirect to *HTTPS*, \notherwise we go to the following constant:\n- `APP_DEBUG`: If the application is not in debug mode, it is redirected to \n*HTTPS*, unless *HTTPS_PROHIBIT* is true. If the application is in debug mode \nthen the address will not be redirected.\n\n\nBy default if no environment variable is defined we have the following values:\n\n- `HTTPS_FORCE = false`\n- `HTTPS_PROHIBIT = false`\n- `APP_ENV = production`\n- `APP_DEBUG = false`\n\nTherefore by default the redirection is enabled.\n\n## License\n\nThe license is GNU GPL3, therefore if you use this you must respect the \nindications of the license. For proprietary software that would like to \nuse this library without making their source code available, please contact me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinxaito%2Flaravel-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinxaito%2Flaravel-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinxaito%2Flaravel-https/lists"}