# [![Weblate](https://hosted.weblate.org/widgets/xbackbone/-/xbackbone/svg-badge.svg)](https://hosted.weblate.org/engage/xbackbone/?utm_source=widget) [![Donations](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6RXF8ZGCZBL68&item_name=Support+the+XBackBone+Development¤cy_code=EUR&source=url)
XBackBone is a simple, self-hosted, lightweight PHP file manager that support the instant sharing tool ShareX and *NIX systems. It supports uploading and displaying images, GIF, video, code, formatted text, and file downloading and uploading. Also have a web UI with multi user management, past uploads history and search support. ## Features + Supports every upload type from ShareX. + Config generator for ShareX. + Low memory footprint. + Multiple backends support: Local storage, AWS S3, Google Cloud, Dropbox, FTP(s). + Web file upload. + Code uploads syntax highlighting. + Video and audio uploads webplayer. + PDF viewer. + Files preview page. + Bootswatch themes support. + Responsive theme for mobile use. + Multi language support. + User management, multi user features and roles. + Public and private uploads. + Web UI for each user. + Logging system. + Share to Telegram. + Linux supported via a per-user custom generated script (server and desktop). + Direct downloads using curl or wget commands. + Direct images links support on Discord, Telegram, Facebook, etc. + System updates without FTP or CLI. + Easy web installer. ## How to Install #### Prerequisites XBackBone require PHP >= `7.1`, with installed the required extensions: + `php-sqlite3` for SQLite. + `php-mysql` for MariaDB/MySQL. + `php-gd` image manipualtion library. + `php-json` json file support. + `php-intl` internationalization functions. + `php-fileinfo` file related functions. ### Web installation + **[release, stable]** Download latest release from GitHub: [Latest Release](https://github.com/SergiX44/XBackBone/releases/latest) + Extract the release zip to your document root. + Navigate to the webspace root (ex. `http://example.com/xbackbone`, this should auto redirect your browser to the install page `http://example.com/xbackbone/install/`) + Follow the instructions. ### Manual installation + **[release, stable]** Download latest release from GitHub: [Latest Release](https://github.com/SergiX44/XBackBone/releases/latest) + Extract the release zip to your document root. + Copy and edit the config file: ```sh cp config.example.php config.php && nano config.php ``` By default, XBackBone will use Sqlite3 as DB engine, and a `storage` dir in the main directory. You can leave these settings unchanged for a simple personal installation. You must set the `base_url`, or remove it for get dynamically the url from request (not recommended). ```php return [ 'base_url' => 'https://example.com', // no trailing slash 'storage' => [ 'driver' => 'local', 'path' => 'storage', ], 'db' => [ 'connection' => 'sqlite', // current support for sqlite and mysql 'dsn' => 'resources/database/xbackbone.db', 'username' => null, // username and password not needed for sqlite 'password' => null, ] ]; ``` + Finally, run the migrate script to setup the database ```sh php bin/migrate --install ``` + Delete the `/install` directory. + Now just login with `admin/admin`, **be sure to change these credentials after your first login**. ## How to update Self-update (since v2.5): + Navigate to the system page as admin. + Click the check for update button, and finally the upgrade button. + Wait until the browser redirect to the install page. + Click the update button. + Done. Manual update: + Download and extract the release zip to your document root, overwriting any file. + Navigate to the `/install` path (es: `http://example.com/` -> `http://example.com/install/`) + Click the update button. + Done. #### Docker deployment + [Docker container](https://hub.docker.com/r/pe46dro/xbackbone-docker) ## Translations You can help translating the project on [Weblate](https://hosted.weblate.org/projects/xbackbone/xbackbone/). ## Changing themes XBackBone supports all [bootswatch.com](https://bootswatch.com/) themes. From the web UI: + Navigate to the web interface as admin -> System Menu -> Choose a theme from the dropdown. From the CLI: + Run the command `php bin/theme` to see the available themes. + Use the same command with the argument name (`php bin/theme