summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorignace nyamagana butera <nyamsprod@gmail.com>2014-02-28 15:00:47 +0100
committerignace nyamagana butera <nyamsprod@gmail.com>2014-02-28 15:00:47 +0100
commitf8953568fa1b6910f0cb7e0ec4b861d47db34b17 (patch)
treef76fea2674a633f8cfb15174371caf3bbe5702c1 /examples
parent4f1ed587c59c1524599457f8fcc562dcb5b845ed (diff)
parentef58410e9c67a734eb6bdf3a9264b7df6082f501 (diff)
downloadcsv-5.0.0.zip
csv-5.0.0.tar.gz
csv-5.0.0.tar.bz2
Merge pull request #17 from thephpleague/update-namespace5.0.0
Update namespace
Diffstat (limited to 'examples')
-rw-r--r--examples/download.php2
-rw-r--r--examples/extract.php6
-rw-r--r--examples/filtering.php6
-rw-r--r--examples/json.php2
-rw-r--r--examples/merge.php10
-rw-r--r--examples/switchmode.php6
-rw-r--r--examples/table.php2
-rw-r--r--examples/writing.php4
-rw-r--r--examples/xml.php2
9 files changed, 20 insertions, 20 deletions
diff --git a/examples/download.php b/examples/download.php
index 150827c..1578b51 100644
--- a/examples/download.php
+++ b/examples/download.php
@@ -1,6 +1,6 @@
<?php
-use Bakame\Csv\Reader;
+use League\Csv\Reader;
require '../vendor/autoload.php';
diff --git a/examples/extract.php b/examples/extract.php
index 9e884fa..9fbdb81 100644
--- a/examples/extract.php
+++ b/examples/extract.php
@@ -1,6 +1,6 @@
<?php
-use Bakame\Csv\Reader;
+use League\Csv\Reader;
require '../vendor/autoload.php';
@@ -18,11 +18,11 @@ $res = $inputCsv->setOffset(800)->setLimit(25)->fetchAll();
<html lang="fr">
<head>
<meta charset="<?=$inputCsv->getEncoding()?>">
- <title>\Bakame\Csv\Reader simple usage</title>
+ <title>\League\Csv\Reader simple usage</title>
<link rel="stylesheet" href="example.css">
</head>
<body>
-<h1>\Bakame\Csv\Reader simple usage</h1>
+<h1>\League\Csv\Reader simple usage</h1>
<table class="table-csv-data">
<caption>Part of the CSV from the 801th row with at most 25 rows</caption>
<thead>
diff --git a/examples/filtering.php b/examples/filtering.php
index 61fcb4d..d4789fb 100644
--- a/examples/filtering.php
+++ b/examples/filtering.php
@@ -1,6 +1,6 @@
<?php
-use Bakame\Csv\Reader;
+use League\Csv\Reader;
require '../vendor/autoload.php';
@@ -36,11 +36,11 @@ $headers = $inputCsv->fetchOne(0);
<html lang="fr">
<head>
<meta charset="<?=$inputCsv->getEncoding()?>">
- <title>\Bakame\Csv\Reader filtering method</title>
+ <title>\League\Csv\Reader filtering method</title>
<link rel="stylesheet" href="example.css">
</head>
<body>
-<h1>Using the Bakame\Csv\Reader class filtering capabilities</h1>
+<h1>Using the League\Csv\Reader class filtering capabilities</h1>
<table class="table-csv-data">
<caption>Statistics for the 20 least used female name in the year 2010</caption>
<thead>
diff --git a/examples/json.php b/examples/json.php
index a679fec..2dcc544 100644
--- a/examples/json.php
+++ b/examples/json.php
@@ -1,6 +1,6 @@
<?php
-use Bakame\Csv\Reader;
+use League\Csv\Reader;
require '../vendor/autoload.php';
diff --git a/examples/merge.php b/examples/merge.php
index cdb9624..848bcc2 100644
--- a/examples/merge.php
+++ b/examples/merge.php
@@ -1,7 +1,7 @@
<?php
-use Bakame\Csv\Writer;
-use Bakame\Csv\Reader;
+use League\Csv\Writer;
+use League\Csv\Reader;
require '../vendor/autoload.php';
@@ -42,7 +42,7 @@ $csv2merge->setDelimiter(',');
/*
When merging multiples CSV documents don't forget to set the main CSV object
- as a `Bakame\Csv\Writer` object with the $open_mode = 'a+' to preserve its content.
+ as a `League\Csv\Writer` object with the $open_mode = 'a+' to preserve its content.
This setting is of course not required when your main CSV object is created from String
*/
@@ -55,7 +55,7 @@ $csv2merge->setDelimiter(',');
<link rel="stylesheet" href="example.css">
</head>
<body>
-<h1>Using the Bakame\Csv\Writer class to merge two CSV documents</h1>
+<h1>Using the League\Csv\Writer class to merge two CSV documents</h1>
<h3>The main Raw CSV</h3>
<p><em>The delimiter is a ";"</em></p>
<pre>
@@ -74,7 +74,7 @@ $csv2merge->setDelimiter(',');
</pre>
<h3>Tips</h3>
<p> When merging multiples CSV documents don't forget to set the main CSV object
- as a <code>Bakame\Csv\Writer</code> object with the <code>$open_mode = 'a+'</code>
+ as a <code>League\Csv\Writer</code> object with the <code>$open_mode = 'a+'</code>
to preserve its content. This setting is of course not required when your main CSV object
is created from String</p>
</body>
diff --git a/examples/switchmode.php b/examples/switchmode.php
index df480eb..97f2391 100644
--- a/examples/switchmode.php
+++ b/examples/switchmode.php
@@ -1,6 +1,6 @@
<?php
-use Bakame\Csv\Writer;
+use League\Csv\Writer;
require '../vendor/autoload.php';
@@ -56,11 +56,11 @@ $names = $reader
<html lang="fr">
<head>
<meta charset="utf-8">
- <title>Bakame\Csv\Writer and Bakame\Csv\Reader switching mode</title>
+ <title>League\Csv\Writer and League\Csv\Reader switching mode</title>
<link rel="stylesheet" href="example.css">
</head>
<body>
-<h1>Using createFromString method and converting the Bakame\Csv\Writer into a Bakame\Csv\Reader</h1>
+<h1>Using createFromString method and converting the League\Csv\Writer into a League\Csv\Reader</h1>
<h3>The table representation of the csv to be save</h3>
<?=$writer->toHTML();?>
<h3>The Raw CSV as it will be saved</h3>
diff --git a/examples/table.php b/examples/table.php
index 5c26ddb..b81633d 100644
--- a/examples/table.php
+++ b/examples/table.php
@@ -1,6 +1,6 @@
<?php
-use Bakame\Csv\Reader;
+use League\Csv\Reader;
require '../vendor/autoload.php';
diff --git a/examples/writing.php b/examples/writing.php
index 948008a..811b8f7 100644
--- a/examples/writing.php
+++ b/examples/writing.php
@@ -1,6 +1,6 @@
<?php
-use Bakame\Csv\Writer;
+use League\Csv\Writer;
require '../vendor/autoload.php';
@@ -27,7 +27,7 @@ $writer->insertAll($teams);
<html lang="fr">
<head>
<meta charset="<?=$writer->getEncoding()?>">
- <title>Using the \Bakame\Writer object</title>
+ <title>Using the \League\Writer object</title>
<link rel="stylesheet" href="example.css">
</head>
<body>
diff --git a/examples/xml.php b/examples/xml.php
index 82052cb..157081e 100644
--- a/examples/xml.php
+++ b/examples/xml.php
@@ -3,7 +3,7 @@
error_reporting(-1);
ini_set('display_errors', 1);
-use Bakame\Csv\Reader;
+use League\Csv\Reader;
require '../vendor/autoload.php';