Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agonyz/github-readme-packagist-stats
Dynamically generated statistics of your Packagist Bundles for your GitHub readme
https://github.com/agonyz/github-readme-packagist-stats
api awesome awesome-readme github packagist readme readme-badge readme-badges readme-stats svg typescript
Last synced: 29 days ago
JSON representation
Dynamically generated statistics of your Packagist Bundles for your GitHub readme
- Host: GitHub
- URL: https://github.com/agonyz/github-readme-packagist-stats
- Owner: agonyz
- License: mit
- Created: 2023-07-11T19:56:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-30T19:01:45.000Z (4 months ago)
- Last Synced: 2024-08-03T23:15:35.397Z (4 months ago)
- Topics: api, awesome, awesome-readme, github, packagist, readme, readme-badge, readme-badges, readme-stats, svg, typescript
- Language: TypeScript
- Homepage: https://github-readme-packagist-stats-agonyz.vercel.app/
- Size: 156 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-readme-tools - GitHub Readme Packagist Stats - Dynamically generated statistics of your Packagist Bundles for your GitHub readme. (Statistical Tools (Widgets))
README
GitHub Readme Packagist Stats
[![Badge](https://img.shields.io/github/issues/agonyz/github-readme-packagist-stats?style=for-the-badge)](https://github.com/agonyz/github-readme-packagist-stats/issues)
[![Badge](https://img.shields.io/github/issues-pr/agonyz/github-readme-packagist-stats?style=for-the-badge)](https://github.com/agonyz/github-readme-packagist-stats/pulls)
[![Badge](https://img.shields.io/github/stars/agonyz/github-readme-packagist-stats?style=for-the-badge)](https://github.com/agonyz/github-readme-packagist-stats/stargazers)
Dynamically generated statistics of your Packagist Bundles for your GitHub README## Features
- [Top bundles](#top-bundles)
- [By vendor](#by-vendor)
- [By maintainer](#by-maintainer)
- [Themes](#themes)
- [Add own themes](#add-own-themes)
- [Skip Bundles](#skip-bundles)
- [Caching](#caching)## Top bundles
### By vendor
Retrieves the top bundles for the given vendor
- How to use:
```markdown
/api/packagist/card?vendor={your-packagist-user}
```
- Example:
```markdown
![Packagist Top Bundles](https://github-readme-packagist-stats.vercel.app/api/packagist/card?vendor=agonyz)
```
![Packagist Top Bundles](https://github-readme-packagist-stats.vercel.app/api/packagist/card?vendor=agonyz)### By maintainer
Retrieves the top bundles for the given maintainer from the given vendor
- How to use:
```markdown
/api/packagist/card?vendor={your-example-organization}&maintainer={your-packagist-user}
```
- Example:
```markdown
![Packagist Top Bundles](https://github-readme-packagist-stats.vercel.app/api/packagist/card?vendor=exampleOrganization&maintainer=agonyz)
```## Themes
You can use different themes for the cards
- How to use:
```markdown
/api/packagist/card?vendor={your-packagist-user}&theme=dark
```
- Example:
```markdown
![Packagist Top Bundles](https://github-readme-packagist-stats.vercel.app/api/packagist/card?vendor=agonyz&theme=dark)
```
![Packagist Top Bundles](https://github-readme-packagist-stats.vercel.app/api/packagist/card?vendor=agonyz&theme=dark)### Add own themes
To add your own themes, do the following:
- Navigate to the theme directory `src/themes/`
- Create a theme file e.g. `dark.ts`
- Place your styles inside the theme file and export your theme
- Create a pull request e.g. `feature/add-theme-{theme-name}`## Skip Bundles
You can skip bundles you don't want to display
- How to use:
```markdown
/api/packagist/card?vendor={your-packagist-user}&skip={bundle-name1, bundle-name2, ..}
```
- Example:
```markdown
![Packagist Top Bundles](https://github-readme-packagist-stats.vercel.app/api/packagist/card?vendor=agonyz&skip=contao-countdown-bundle,contao-page-speed-insights-bundle)
```
![Packagist Top Bundles](https://github-readme-packagist-stats.vercel.app/api/packagist/card?vendor=agonyz&skip=contao-countdown-bundle,contao-page-speed-insights-bundle)## Caching
- In order to not overuse the packagist api a cache time of `12 hours` was implemented.