Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riaz-mahmud/websitebackup
This package is used to backup any website link. It will download all the files including images, css, js, etc. and save it in a folder.
https://github.com/riaz-mahmud/websitebackup
backup download-css download-image download-js download-websites php website-backup website-clone website-code website-content-download website-file-download website-image-download webstie
Last synced: about 1 month ago
JSON representation
This package is used to backup any website link. It will download all the files including images, css, js, etc. and save it in a folder.
- Host: GitHub
- URL: https://github.com/riaz-mahmud/websitebackup
- Owner: Riaz-Mahmud
- License: mit
- Created: 2022-11-06T19:29:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T16:31:03.000Z (about 2 years ago)
- Last Synced: 2024-06-17T09:55:47.485Z (6 months ago)
- Topics: backup, download-css, download-image, download-js, download-websites, php, website-backup, website-clone, website-code, website-content-download, website-file-download, website-image-download, webstie
- Language: PHP
- Homepage: https://packagist.org/packages/backdoor/websitebackup
- Size: 15.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Website Backup
This package is used to backup any website link. It will download all the files including images, css, js, etc. and save it in a folder.
## Installation
```bash
composer require backdoor/websitebackup
```
## Usage
```php
use Backdoor\WebsiteBackup\WebsiteBackup;
```
```php
function siteBackup(){$url = 'link to your website page to backup';
$path = 'path to save backup file';
$filePath = 'path to set as file path in backup file. This is optional. If not set, it will use the $path';$websiteBackup = new WebsiteBackup();
$backup = $websiteBackup->backup($url, $path);}
```
## Return
```php
array:3 [▼[
'error' => false,
'message' => 'Backup created successfully',
'path' => 'your_given_path/index.html'
];```
## Example
```php
use Backdoor\WebsiteBackup\WebsiteBackup;
```
```phpfunction siteBackup(){
$url = 'link to your website page to backup';
$path = 'path to save backup file';
$filePath = 'path to set as file path in backup file. This is optional. If not set, it will use the $path';$websiteBackup = new WebsiteBackup();
$backup = $websiteBackup->backup($url, $path, $filePath);if(!$backup['error']){
echo $backup['path'];
}
}```
## License
The MIT License (MIT). Please see [License](LICENSE) for more information.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.