{"id":23453801,"url":"https://github.com/elsayed85/laravel-github-copilot-chat","last_synced_at":"2025-04-10T23:53:41.399Z","repository":{"id":189503251,"uuid":"680800178","full_name":"elsayed85/laravel-github-copilot-chat","owner":"elsayed85","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-09T02:44:15.000Z","size":51,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T23:53:35.742Z","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/elsayed85.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-20T12:55:32.000Z","updated_at":"2023-08-30T14:45:04.000Z","dependencies_parsed_at":"2024-12-24T02:30:00.070Z","dependency_job_id":"1e12f5fc-1cd7-40b3-ad02-24a8d42cf9a0","html_url":"https://github.com/elsayed85/laravel-github-copilot-chat","commit_stats":null,"previous_names":["elsayed85/laravel-github-copilot-chat"],"tags_count":3,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsayed85%2Flaravel-github-copilot-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsayed85%2Flaravel-github-copilot-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsayed85%2Flaravel-github-copilot-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsayed85%2Flaravel-github-copilot-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elsayed85","download_url":"https://codeload.github.com/elsayed85/laravel-github-copilot-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317704,"owners_count":21083528,"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-12-24T02:29:51.680Z","updated_at":"2025-04-10T23:53:41.383Z","avatar_url":"https://github.com/elsayed85.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This is my package laravel-github-copilot-chat\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/elsayed85/laravel-github-copilot-chat.svg?style=flat-square)](https://packagist.org/packages/elsayed85/laravel-github-copilot-chat)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/elsayed85/laravel-github-copilot-chat/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/elsayed85/laravel-github-copilot-chat/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/elsayed85/laravel-github-copilot-chat/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/elsayed85/laravel-github-copilot-chat/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/elsayed85/laravel-github-copilot-chat.svg?style=flat-square)](https://packagist.org/packages/elsayed85/laravel-github-copilot-chat)\n\nChat With Github Copilot inside Command Line using Laravel.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require elsayed85/laravel-github-copilot-chat\n```\n\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-github-copilot-chat-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'stream' =\u003e true,\n    'intent' =\u003e false,\n    'model' =\u003e 'copilot-chat',\n    'temperature' =\u003e 0.1,\n    'top_p' =\u003e 1,\n    'n' =\u003e 1,\n\n    'client_id' =\u003e '01ab8ac9400c4e429b23', // Don't change this\n    'user_agent' =\u003e 'GithubCopilot/3.99.99', // Don't change this\n];\n```\n## Usage\n\n## [Github Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat)\n\nRun : \n```bash\nphp artisan copilot:chat\n```\n\nfor First Time You need to login to your github account and copy the code from the terminal and auth with github\n\n``` bash\nGot To https://github.com/login/device/ and enter the code: B720-C162\n```\n\nthen after auth you need to confirm that \n\n``` bash\n    ┌ Do you entered the code successfully? ───────────────────────┐\n        Yes / No \n    └──────────────────────────────────────────────────────────────┘\n```\n\n## Github Copilot CLI\n### [NodeJs Package](https://www.npmjs.com/package/@githubnext/github-copilot-cli)\n\nTo use github-copilot-cli \n\nA CLI experience for letting GitHub Copilot help you on the command line.\n\nGitHub Copilot CLI translates natural language into shell commands, with modes for different domains. After installation, you can use the following three command:\n\n```php\nuse Elsayed85\\CopilotChat\\CopilotCli;\n\n$cli = new CopilotCli();\n$q = \"install laravel\";\n$cli = $cli-\u003einit();\n$cli-\u003esetQuestion($q);\n$a = $cli-\u003eshell(); // you can use shell() or git() or gitCli()\n// call explanation() after shell() or git() or gitCli() to get explanation of the generated cli command\n$explanation = $cli-\u003eexplanation();\ndd($a , $explanation);\n```\n\nThen We Will Generate Copilot Token and it will be saved locally using cache for (30 min) and \nwhen it expired another token will be generated automatically.\n\nand Now You can Chat With Github copilot Have Fun :)\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [elsayed kamal](https://github.com/elsayed85)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsayed85%2Flaravel-github-copilot-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felsayed85%2Flaravel-github-copilot-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsayed85%2Flaravel-github-copilot-chat/lists"}