Download the PHP package m35/thecsv without Composer

On this page you can find all versions of the php package m35/thecsv. 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 thecsv

yii2-thecsv

yii2 csv export extension

1. Install

Run php composer.phar require m35/thecsv
or
Add "m35/thecsv": "*" in your composer.json file.

2. Usage

3. Parameters & Examples

3.0 Parameters

3.0.1 string type

You can specify a table name as the parameter, and it would export all the data of the table and automatically generate the table fields name as csv header.

3.0.2 array type

3.1 Examples: export the table data(assume we have a table named 'user')

3.1.1 Export all data from 'user' table

3.1.2 Export just 'username' and 'password' fields of the 'user' table

3.1.3 Export data without 'status' field

3.1.4 Export just 'username' and 'password' fields of the 'user' table and specify the csv header

3.1.5 Export the data without header

3.1.6 Export the active user data using condition

for details: http://www.yiiframework.com/doc-2.0/yii-db-query.html#where()-detail

3.1.7 Export the active user data using condition, orderby and limit

3.1.8 Using SQL syntax

3.1.9 Using SQL syntax and bind values

3.1.10 Using Query object

for details: http://www.yiiframework.com/doc-2.0/yii-db-query.html

3.1.11 Using DataReader object

for details: http://www.yiiframework.com/doc-2.0/yii-db-datareader.html

3.2 Example: export data

3.3、Examples: other

3.3.1

3.3.2

3.3.3


yii2-thecsv(Yii2框架csv数据导出扩展)

1、安装

运行 php composer.phar require m35/thecsv

添加 "m35/thecsv": "*"

2、使用

3、参数及示例

3.0、参数列表

3.0.1、string类型

直接指定表名称,下载该表所有数据,自动生成表字段名称。

3.0.2、array类型参数

3.1、示例:导出数据表(以user表为例子)

3.1.1、导出数据表完整数据

3.1.2、导出user表的用户名和密码

3.1.3、导出user表除status字段外的所有数据

3.1.4、导出user表的用户名和密码,自定义表头

3.1.5、导出user表的用户名和密码,不要表头

3.1.6、导出user表有效用户,使用condition

condition请参考http://www.yiiframework.com/doc-2.0/yii-db-query.html#where()-detail

3.1.7、导出user表有效用户,使用orderby和limit

3.1.8、自定义SQL

3.1.9、自定义SQL,绑定参数

3.1.10、使用Query

3.1.11、使用reader

3.2、示例:导出数据

3.3、示例:其他

3.3.1

3.3.2

3.3.3


All versions of thecsv with dependencies

PHP Build Version
Package Version
No informations.
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 m35/thecsv contains the following files

Loading the files please wait ....