Comments (5)
While we do vendor in the core libraries, we refrained from including the GCP and S3 dependencies, as they each depend on their cloud vendors' PHP SDK and are measured in many megabytes - several times more as our repository at this time.
Let's take this as an opportunity to improve our installation documentation. In short, you will need to have composer installed or available on your system and then run either of these commands to use S3 storage or the GCS one:
# for S3 storage:
$ composer require aws/aws-sdk-php
# for GCS storage:
$ composer require google/cloud-storage
from privatebin.
So as it seems this question has been answered and I thus close this issue. If anyone has further questions on that topic, feel free to comment here, again.
from privatebin.
Thanks @rugk.
Sorry for the late response, but composer require aws/aws-sdk-php
+ installing PHP simplexml resolved the original problem, but now PrivateBin won´t start!
Now getting this error:
[08-Jan-2024 08:04:03 ...] PHP Fatal error: Uncaught Error: Class "PrivateBin\Controller" not found in <root>/index.php:18
Stack trace:
#0 {main}
thrown in <root>/index.php on line 18
This is the composer log of the install:
./composer.json has been created
Running composer update aws/aws-sdk-php
Loading composer repositories with package information
Updating dependencies
Lock file operations: 12 installs, 0 updates, 0 removals
- Locking aws/aws-crt-php (v1.2.4)
- Locking aws/aws-sdk-php (3.295.7)
- Locking guzzlehttp/guzzle (7.8.1)
- Locking guzzlehttp/promises (2.0.2)
- Locking guzzlehttp/psr7 (2.6.2)
- Locking mtdowling/jmespath.php (2.7.0)
- Locking psr/http-client (1.0.3)
- Locking psr/http-factory (1.0.2)
- Locking psr/http-message (2.0)
- Locking ralouphie/getallheaders (3.0.3)
- Locking symfony/deprecation-contracts (v3.4.0)
- Locking symfony/polyfill-mbstring (v1.28.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 12 installs, 0 updates, 0 removals
- Downloading psr/http-message (2.0)
- Downloading symfony/polyfill-mbstring (v1.28.0)
- Downloading mtdowling/jmespath.php (2.7.0)
- Downloading ralouphie/getallheaders (3.0.3)
- Downloading psr/http-factory (1.0.2)
- Downloading guzzlehttp/psr7 (2.6.2)
- Downloading guzzlehttp/promises (2.0.2)
- Downloading symfony/deprecation-contracts (v3.4.0)
- Downloading psr/http-client (1.0.3)
- Downloading guzzlehttp/guzzle (7.8.1)
- Downloading aws/aws-crt-php (v1.2.4)
- Downloading aws/aws-sdk-php (3.295.7)
- Installing psr/http-message (2.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.28.0): Extracting archive
- Installing mtdowling/jmespath.php (2.7.0): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-factory (1.0.2): Extracting archive
- Installing guzzlehttp/psr7 (2.6.2): Extracting archive
- Installing guzzlehttp/promises (2.0.2): Extracting archive
- Installing symfony/deprecation-contracts (v3.4.0): Extracting archive
- Installing psr/http-client (1.0.3): Extracting archive
- Installing guzzlehttp/guzzle (7.8.1): Extracting archive
- Installing aws/aws-crt-php (v1.2.4): Extracting archive
- Installing aws/aws-sdk-php (3.295.7): Extracting archive
7 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
5 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^3.295 for aws/aws-sdk-php
from privatebin.
./composer.json has been created
It may be that our projects composer.json (and possibly composer.lock) is required to be present for this operation, as we instruct composer there how to include the PrivateBin namespace into the autoloader:
Lines 39 to 43 in 9fb7aee
See also our docker install, where these get downloaded just before running the require:
https://github.com/PrivateBin/docker-nginx-fpm-alpine/blob/master/Dockerfile#L72-L76
from privatebin.
Yeah… maybe that should be documented somewhere?
from privatebin.
Related Issues (20)
- Url Shortener POST Request HOT 2
- An option to require all pastes to be protected with a password HOT 2
- Improve documentation regarding comments. HOT 4
- `Save Paste` button should save to .md extension if paste format is markdown HOT 7
- `url` property served in api responses is incomplete HOT 3
- When shorten the url, link should be opened in a new window HOT 1
- Removing page template and cleaning up code HOT 2
- PHP 8.4 tests failing HOT 2
- 1.7.2 / valid to / paste lifetime / lease time / always 23 hours HOT 11
- Feature Request: Rephrase the WebAssembly error on unsupported browsers HOT 2
- bs5 file upload too small
- bs5 sourcecode highlighting hard to read
- S3 provider broken in 1.7.2 HOT 2
- bs5 text wrapping in menu bar instead of collapsing HOT 5
- In version 1.7.2, the user-selected expiration is ignored HOT 5
- End-to-end testing with PHP backend and JS Frontend
- Improve JS (Frontend) unit testing coverage HOT 13
- Could not create paste: Error saving paste. Sorry. (1.7.2 and later) HOT 6
- bs5 feedback HOT 8
- "Dark mode" toggle in Bootstrap 5 theme is not syncronised with prefers-color-scheme at start (when dark)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from privatebin.