Download the PHP
package sw897/easydb without Composer
On this page you can find all versions of the php package
sw897/easydb. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
If you've installed Composer in /usr/bin, you can replace
/path/to/your/local/composer.phar with just composer.
Why Use EasyDB? Because it's cleaner!
Let's refactor a dangerous PHP snippet that previously used string concatenation to pass user input
instead of prepared statements. For example, imagine something that just dropped {$_GET['blogpostid']} into the
middle of a mysql_query() statement. Let's make it secure.
The PDO Way
That's a little wordy for such a simple task. If we do this in multiple places,
we end up repeating ourselves a lot.
The EasyDB Solution
We made it a one-liner.
What else can EasyDB do quickly?
Insert a row into a database table
Build an insert without executing
Update a row from a database table
Delete a row from a database table
Fetch a single row from a table
Fetch a single column from a single row from a table
Try to perform a transaction
Generate dynamic query conditions
Note: Passing values with conditions is entirely optional but recommended.
Variable number of "IN" arguments
Grouping of conditions
What if I need PDO for something specific?
Can I create an EasyDB wrapper for an existing PDO instance?
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package sw897/easydb contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.