Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabrydawood/php-cdn
https://github.com/sabrydawood/php-cdn
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sabrydawood/php-cdn
- Owner: sabrydawood
- Created: 2023-11-10T01:25:45.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-05T00:45:50.000Z (10 months ago)
- Last Synced: 2024-04-13T08:36:09.830Z (9 months ago)
- Language: PHP
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# simple php cdn
## installition
### make sure you have php installed in your machine
open any cmd you have run command
```bach
php -v
```### use sqlite
go to path to php dirctory
open `php.ini` with any editor
you will Found#### for sqlite database
```php
;extension=sqlite3
```To :
```php
extension=sqlite3
```#### for postgres database
```php
;extension=pgsql
```To :
```php
extension=pgsql
```##### now you are reay to use this cdn
## Avilable Databases
| Name | Type |
| ----------- | ------ |
| MySql | [x] |
| PostgresSql | [x] |
| SQLite | [x] |
| MongoDb | [ ] |## Main Route
| Name | Route |
| ----------- | ------------- |
| MySql | /cdn/mysql |
| PostgresSql | /cdn/pg |
| SQLite | /cdn/sqlite |## Avilable Routes
| Name | Method | Route | QueryStrings |
| -------- | ------ | ----------------------- | ---------------------------------------------- |
| upload | POST | /upload/index.php | none |
| download | POST | /download | file:`number` , base: `bool` , download:`bool` |
| view | GET | /view | file : `number` |