1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Working with CSV can often be much more difficult than you expect, with different types of delimiters and complicated structures. This library makes it easy to read and write almost anything.">
<meta name="docsearch:version" content="4.0">
<link rel="icon" href="/assets/img/csv-logo.svg" type="image/svg+xml">
<title>{{ site.data.project.tagline }} - {{ site.data.project.title }}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Onest:wght@300;400;500;600;700;900&display=swap" rel="stylesheet">
<link href="{{ site.data.manifest['docs.css'] }}" rel="stylesheet">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-46050814-6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '{{ site.data.project.google_analytics_tracking_id }}');
</script>
</head>
<body class="bg-white text-dark font-onest antialiased relative">
<div class="relative z-10">
<header class="flex items-center sm:justify-center">
<div class="flex gap-6 md:gap-0 md:flex-row justify-between md:items-center p-3 md:p-6 w-full max-w-7xl">
<div class="flex items-center gap-2 sm:gap-3">
<img src="/assets/img/csv-logo.svg" alt="Logo" class="w-[40px] sm:w-[50px] h-[40px] sm:h-[50px]"/>
<div class="font-black text-2xl">CSV</div>
</div>
<div class="flex items-center gap-0 md:gap-0">
<a href="https://github.com/thephpleague/csv" class="px-2 py-2 sm:px-6 sm:py-3 font-black text-md text-black-50 hover:text-csv-dark hover:underlines whitespace-nowrap">SOURCE CODE</a>
<a href="/9.0/" class="px-2 py-2 sm:px-6 sm:py-3 text-md text-white bg-csv-base hover:bg-csv-dark transition-all whitespace-nowrap rounded">Documentation</a>
</div>
</div>
</header>
<main class="flex justify-center">
<div class="flex flex-col gap-3 pt-24 justify-between px-6 sm:px-12 lg:px-0 w-full max-w-5xl">
<h1 class="font-black text-8xl md:text-9xl tracking-tighter">CSV</h1>
<h2 class="font-medium text-3xl text-light">CSV Data manipulation<br>made easy in PHP</h2>
<div class="flex">
<span class="mt-6 rounded-xl bg-white p-6 py-9 border border-csv-base flex items-center gap-6 transition">
<div class="bg-gray-200 px-6 py-3 rounded-lg text-light font-mono transition-all">
composer require league/csv:^{{ site.data.project.version }}
</div>
</span>
</div>
<div class="flex flex-col gap-6 pb-16 sm:pb-24 text-light">
<div class="text-xl">Love this package ? <a href="https://github.com/sponsors/nyamsprod" class="transition-all text-csv-dark underline">Sponsor its development</a></div>
</div>
<div class="flex flex-col gap-6 sm:w-2/3">
<h3 class="font-black text-6xl md:text-8xl tracking-tighter">Highlights</h3>
<p class="text-light">{{ site.data.project.highlights.description }}</p>
<div class="gap-6 flex flex-col my-16">
<h4 class="font-bold text-2xl">Simple and straightforward API</h4>
<div class="bg-gradient-to-r from-csv-base to-white h-px"></div>
<h4 class="font-bold text-xl">Read from and Write to CSV documents<br />in a memory efficient and scalable way</h4>
<div class="bg-gradient-to-r from-csv-base to-white h-px"></div>
<h4 class="font-bold text-xl">Flexible and powerful query features <br />and array to object mapping.</h4>
<div class="bg-gradient-to-r from-csv-base to-white h-px"></div>
<h4 class="font-bold text-xl">Transform CSV documents into <span class="font-mono text-base text-csv-base">JSON</span>,
<span class="font-mono text-base text-csv-base">XML</span> or <span class="font-mono text-base text-csv-base">HTML</span></h4>
<div class="bg-gradient-to-r from-csv-base to-white h-px"></div>
<h4 class="font-bold text-xl">Framework-agnostic</h4>
</div>
</div>
<div class="bg-gray-100 p-6 rounded-lg text-light flex flex-col sm:flex-row gap-6">
<div class="bg-csv-light text-csv-dark font-black text-lg w-12 h-12 flex shrink-0 items-center justify-center rounded-full">!</div>
<p>Once a new <strong>major</strong> version is released, the previous stable release remains supported for <strong>six more months</strong> with patches and security fixes.</p>
</div>
<div class="flex flex-col gap-3 my-16 content">
{{ content }}
</div>
</div>
</main>
<footer class="p-6 max-w-7xl mx-auto pb-32">
<hr class="border-t border-light border-opacity-50 max-w-7xl mx-auto" />
<div class="flex flex-col lg:flex-row gap-12 my-16 px-6 md:px-0">
<a href="https://csv.thephpleague.com/" class="flex gap-3 lg:justify-between items-start transition-all hover-block">
<img src="/assets/img/csv-logo.svg" alt="CSV Logo" class="" />
<div class="flex flex-col">
<div class="font-black text-lg text-dark">CSV</div>
<p class="text-light">Data manipulation made easy in PHP</p>
</div>
</a>
<a href="https://uri.thephpleague.com/" class="flex gap-3 lg:justify-between items-start transition-all hover-block">
<img src="/assets/img/uri-logo.svg" alt="URI Logo" class="" />
<div class="flex flex-col">
<div class="font-black text-lg text-dark">URI</div>
<p class="text-light">Modern API to process URIs in PHP</p>
</div>
</a>
<a href="https://period.thephpleague.com/" class="flex gap-3 lg:justify-between items-start transition-all hover-block">
<img src="/assets/img/period-logo.svg" alt="Period Logo" class="" />
<div class="flex flex-col">
<div class="font-black text-lg text-dark">PERIOD</div>
<p class="text-light">Time range API for PHP</p>
</div>
</a>
</div>
<hr class="border-t border-light border-opacity-50 max-w-7xl mx-auto mb-16" />
<div class="gap-12 sm:gap-32 grid sm:grid-cols-1 md:grid-cols-3 lg:grid-cols-4">
<div class="flex flex-col gap-3 sm:col-span-3 lg:col-span-1">
<div class="text-csv-base font-black text-xl">Copyright</div>
<a href="//thephpleague.com" class="font-mono tracking-tighter text-sm underline transition-all hover-text">The League of <br />Extraordinary Packages</a>
</div>
<div class="flex flex-col gap-3">
<div class="text-dark font-black text-xl">Questions?</div>
<p class="font-mono text-sm tracking-tighter">
<a href="https://phpc.social/@nyamsprod" target="_blank" class="transition-all hover-text">
Package created and maintained by <span class="underline">Ignace Nyamagana Butera.</span>
</a>
</p>
</div>
<div class="flex flex-col gap-3">
<div class="text-dark font-black text-xl">Design</div>
<p class="font-mono text-sm tracking-tighter">
<a href="https://twitter.com/sandr" target="_blank" class="transition-all hover-text">
Brand and site design by <span class="underline">Sander van der Kolk</span>
</a>
</p>
</div>
<div class="flex flex-col gap-3">
<div class="font-black text-xl">License package</div>
<p class="font-mono text-sm tracking-tighter">
<a href="https://github.com/thephpleague/csv/blob/master/LICENSE" target="_blank" class="transition-all hover-text underline">
The MIT License (MIT)
</a>
</p>
</div>
</div>
</footer></div>
<div class="absolute z-0 flex justify-center top-0 right-0 left-0 overflow-hidden">
<img src="/assets/img/csv-logo-big.svg" alt="Logo" class="w-1/2 sm:w-auto rotate-6 z-0 top-logo -right-logo"/>
</div>
</body>
</html>
|