{"id":13405254,"url":"https://github.com/composer/packagist","last_synced_at":"2025-05-14T02:09:55.627Z","repository":{"id":38109400,"uuid":"1872943","full_name":"composer/packagist","owner":"composer","description":"Package Repository Website - try https://packagist.com if you need your own -","archived":false,"fork":false,"pushed_at":"2025-04-20T08:47:21.000Z","size":11863,"stargazers_count":1779,"open_issues_count":75,"forks_count":475,"subscribers_count":80,"default_branch":"main","last_synced_at":"2025-04-20T09:47:31.045Z","etag":null,"topics":["packagist","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/","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/composer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":"https://packagist.com","tidelift":"packagist/composer/composer","github":"composer"}},"created_at":"2011-06-09T20:50:15.000Z","updated_at":"2025-04-19T03:12:54.000Z","dependencies_parsed_at":"2023-02-14T00:45:35.741Z","dependency_job_id":"806b712f-bd5b-4168-96a3-4be24e5d5cae","html_url":"https://github.com/composer/packagist","commit_stats":{"total_commits":2367,"total_committers":165,"mean_commits":"14.345454545454546","dds":"0.31220954795099287","last_synced_commit":"fb75c17d75bc032cc88b997275d40077511d0cd9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fpackagist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fpackagist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fpackagist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fpackagist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/composer","download_url":"https://codeload.github.com/composer/packagist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254053321,"owners_count":22006717,"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":["packagist","php"],"created_at":"2024-07-30T19:01:57.970Z","updated_at":"2025-05-14T02:09:50.593Z","avatar_url":"https://github.com/composer.png","language":"PHP","funding_links":["https://packagist.com","https://tidelift.com/funding/github/packagist/composer/composer","https://github.com/sponsors/composer"],"categories":["PHP"],"sub_categories":[],"readme":"# Packagist\n\nPackage Repository Website for Composer, see the\n[about page](https://packagist.org/about) on\n[packagist.org](https://packagist.org/) for more.\n\n**This project is not meant for re-use.**\n\nIt is open source to make it easy to contribute. We provide no support\nif you want to run your own, and will do breaking changes without notice.\n\nCheck out [Private Packagist](https://packagist.com/) if you want to\nhost your own packages.\n\n## Development\n\nThese steps are provided for development purposes only.\n\n### Requirements\n\n- **PHP** for the web app\n- **NPM** (or Docker) for the frontend build\n- **[Symfony CLI](https://symfony.com/download)** to run the web server\n- **MySQL** (or Docker) for the main data store\n- **Redis** (or Docker) for some functionality (favorites, download statistics)\n- **git / svn / hg** depending on which repositories you want to support\n\n### Installation\n\n1. Clone the repository\n2. Install dependencies:\n   ```bash\n   composer install\n   npm install\n   ```\n   Ensure env vars are set up correctly, you probably need to set `APP_MAILER_FROM_EMAIL`, `APP_MAILER_FROM_NAME` and `APP_DEV_EMAIL_RECIPIENT` in `.env.local`. Set also `MAILER_DSN` if you'd like to receive email.\n\n3. Start the web server:\n   ```bash\n   symfony serve -d\n   ```\n\n4. Start MySQL \u0026 Redis:\n   ```bash\n   docker compose up -d # or somehow run MySQL \u0026 Redis on localhost without Docker\n   ```\n   This mounts the current working directory into the node container and runs npm install and npm run build automatically.\n\n5. Create 2 databases:\n    - `packagist` - for the web app\n    - `packagist_test` - for running the tests\n   ```bash\n   bin/console doctrine:database:create\n   bin/console doctrine:database:create --env=test\n   ```\n\n6. Setup the database schema:\n   ```bash\n   bin/console doctrine:schema:create\n   ```\n\n7. Run a CRON job `bin/console packagist:run-workers` to make sure packages update.\n\n8. Run `npm run build` or `npm run dev` to build (or build\u0026watch) css/js files. When using Docker run `docker compose run node npm run dev` to watch css/js files.\n\nYou should now be able to access the site, create a user, etc.\n\n### Fixtures\n\nYou can get test data by running the fixtures:\n\n```bash\nbin/console doctrine:fixtures:load --group base\nbin/console doctrine:fixtures:load --group downloads --append\n ```\n\nThis will create some packages, update them from GitHub, populate them\nwith fake download stats, and assign a user named `dev` (with password: `dev`)\nas their maintainer.\n\nThere is also a user `user` (with password: `user`) that has no access if you\nneed to check readonly views.\n\nFinally there is a user `admin` (with password: `admin`) that has super admin\npermissions.\n\n### Search\n\nTo use the search in your local development environment, setup an\n[Algolia Account](https://www.algolia.com/) and configure following keys\nin your `.env.local`:\n\n```dotenv\nALGOLIA_APP_ID=\nALGOLIA_ADMIN_KEY=\nALGOLIA_SEARCH_KEY=\nALGOLIA_INDEX_NAME=\n```\n\nTo setup the search index, run:\n\n```bash\nbin/console algolia:configure\nbin/console packagist:index\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomposer%2Fpackagist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomposer%2Fpackagist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomposer%2Fpackagist/lists"}