https://github.com/sanwebinfo/cri-deploy
Deploy Live Cricket Score API for free in Vercel.
https://github.com/sanwebinfo/cri-deploy
api cricket cricket-api cricket-app cricket-data cricket-score php
Last synced: 7 months ago
JSON representation
Deploy Live Cricket Score API for free in Vercel.
- Host: GitHub
- URL: https://github.com/sanwebinfo/cri-deploy
- Owner: sanwebinfo
- License: mit
- Archived: true
- Created: 2023-09-07T13:13:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-26T08:47:32.000Z (almost 2 years ago)
- Last Synced: 2025-04-13T12:09:00.550Z (7 months ago)
- Topics: api, cricket, cricket-api, cricket-app, cricket-data, cricket-score, php
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 0
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Free Cricket API 🏏

**API is not working due to the Cricbuzz Mobile site being Fully Redesigned - The full Site Structure was Changed it's a bit complex to get data - Please Consider using the Python Cricket API Version - **
Cricket API - Deploy Live Cricket Score API for free in Vercel and Docker.
## About API 🌐
Learn More about the API Here -
## Free Deploy 🍔
- Deploy on Vercel
[](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fsanwebinfo%2Fcri-deploy)
## Docker 🐬
Keep Running the PHP API in Docker
- Update the `.dockerfile` before build - Modify it according to your Needs
- on production server use apache or nginx as reverse proxy for this docker container
### Built-in PHP localhost server for Testing
```sh
FROM php:8.1-cli-alpine
COPY . /var/www/html
WORKDIR /var/www/html
EXPOSE 6002
CMD ["php", "-S", "0.0.0.0:6002", "-t", "/var/www/html"]
```
### Production server using apache
```sh
FROM php:8.1-apache
COPY . /var/www/html
WORKDIR /var/www/html
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
```
### Commands for Setup Docker Container
```sh
## Build image
docker build . -t="cri-deploy"
## List the image
docker image ls
## Create and Test Container
docker run -d -p 6002:6002 --name cricket cri-deploy
docker container ps
docker stop (containerID)
## For apache
sudo docker run -d -p 6002:80 --name cricket cri-deploy
## Run the container forever (Localhost server)
docker run -d --restart=always -p 6002:6002 --name cricket cri-deploy
## Apache server
sudo docker run -d --restart=always -p 6002:80 --name cricket cri-deploy
## List Hidden container if error exists
docker ps -a
## other commands
docker logs (containerID)
docker logs --follow (containerID)
docker stop (containerID)
docker rm (containerid)
docker rmi (imageid)
docker image prune
docker builder prune --all -f
docker system prune --all
docker rm $(docker ps -all -q)
docker rmi $(docker image ls -q)
```
## Disclaimer 🗃
- This is not an Offical API from Cricbuzz - it's an Unofficial API
- This is for Education Purpose only - use at your own risk on Production Site
All Credits Goes to
## LICENSE 📕
MIT