Download the PHP package thecsea/mysqltcs without Composer

On this page you can find all versions of the php package thecsea/mysqltcs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package mysqltcs

mysqltcs

Build status: Build Status Scrutinizer Code Quality Code Coverage Build Status Latest Stable Version Total Downloads Latest Unstable Version License

The simplest and the most powerful library for mysql written in php:

Download, install and use

Download

via git

Clone repository

git clone https://github.com/thecsea/mysqltcs.git

via composer

download composer here https://getcomposer.org/

add the following dependence in composer.json

"thecsea/mysqltcs": "3.0.*"

or type

php composer.phar require thecsea/mysqltcs

Install/Update

Update composer (download composer here https://getcomposer.org/)

php composer.phar self-update

Followings commands must be executed in project root directory

Install mysqltcs

php composer.phar install

Update mysqltcs

You can perform an updated if you have added mysqltcs as composer dependency

php composer.phar update

You have to perform an update when a new version is released

How to use

When composer installation is finished you will see vendor/autoload.php that is the auload generated by composer. If you have set mysqltcs as composer dependence the autoload loads both mysqltcs and other dependecies. So you just have to include autload in each file where you want use mysqltcs and create the mysqtcs object in the following way:

$connection = new it\thecsea\mysqltcs\Mysqltcs(...);

or

use it\thecsea\mysqltcs\Mysqltcs; and $connection = new Mysqltcs(...);

You can see examples to understand how to use library

You can also take a look to wiki to see the detailed description or go to generated phpdoc documents (documentations of all classes)

Tests

Mysqltcs is tested with automatic test: phpunit test. So we have a good chance of not having errors, but not the certainty. But we have covered the following percentage of statements with tests: Code Coverage

  1. Go in the root directory
  2. Type phpunit or if you have downloaded the phar php phpunit-xxx.phar

In fact phpunit.xml contains the correct test configuration

CAUTION: each time tests are executed, the database must be in the initial state, like the import has just been executed (you should have a empty table, only the db structure)

Examples

You can find some examples under examples to run it:

There is a simple example simpleExample.php that shows you how to use the library in the simplest way

There are not examples about transactions yet (you have to remember to set autocommit to true after using transactions)

N.B. if you have added mysqltcs as composer dependency you will find example under vendor/thecsea/mysqltcs/examples

By thecsea.it


All versions of mysqltcs with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 thecsea/mysqltcs contains the following files

Loading the files please wait ....