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: 6 months 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 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T01:00:12.000Z (11 months ago)
- Last Synced: 2025-07-02T07:03:42.328Z (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: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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;
```
```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, $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.