-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (53 loc) · 3.74 KB
/
index.html
File metadata and controls
68 lines (53 loc) · 3.74 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Thinreports for PHP | Easy and Simple way for generating a PDF on pure PHP</title>
</head>
<body>
<header>
<div class="inner">
<h1>Thinreports for PHP</h1>
<h2>Easy and Simple way for generating a PDF report on pure PHP</h2>
<a href="https://github.com/thinreports-php/thinreports-php" class="button"><small>Follow me on</small> GitHub</a>
</div>
</header>
<div id="content-wrapper">
<div class="inner clearfix">
<section id="main-content">
<h2>
<a id="about" class="anchor" href="#about" aria-hidden="true"><span class="octicon octicon-link"></span></a>About</h2>
<p>Thinreports for PHP is an implementation of the <a href="https://github.com/thinreports/thinreports-generator">Thinreports Generator</a> in PHP. It provides easy and simple way for generating a PDF report on pure PHP.</p>
<div class="highlight highlight-php"><pre><span class="pl-s1"><span class="pl-k">use</span> <span class="pl-c1">Thinreports\Report</span>;</span>
<span class="pl-s1"></span>
<span class="pl-s1"><span class="pl-smi">$report</span> <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">Report</span>(<span class="pl-s"><span class="pl-pds">'</span>hello_world.tlf<span class="pl-pds">'</span></span>);</span>
<span class="pl-s1"></span>
<span class="pl-s1"><span class="pl-smi">$page</span> <span class="pl-k">=</span> <span class="pl-smi">$report</span><span class="pl-k">-></span>addPage();</span>
<span class="pl-s1">$<span class="pl-smi">page</span>(<span class="pl-s"><span class="pl-pds">'</span>hello_world<span class="pl-pds">'</span></span>)<span class="pl-k">-></span>setValue(<span class="pl-s"><span class="pl-pds">'</span>Hello thinreports-php<span class="pl-pds">'</span></span>);</span>
<span class="pl-s1"></span>
<span class="pl-s1"><span class="pl-smi">$report</span><span class="pl-k">-></span>generate(<span class="pl-s"><span class="pl-pds">'</span>hello_world.pdf<span class="pl-pds">'</span></span>);</span></pre></div>
<h2>
<a id="getting-started" class="anchor" href="#getting-started" aria-hidden="true"><span class="octicon octicon-link"></span></a>Getting Started</h2>
<ul>
<li><a href="https://github.com/thinreports-php/thinreports-php/#thinreports-generator-for-php">Code, Details and Quick Reference</a></li>
<li><a href="https://packagist.org/packages/thinreports-php/thinreports-php">Packagist</a></li>
</ul>
<h3>
<a id="what-is-thinreports" class="anchor" href="#what-is-thinreports" aria-hidden="true"><span class="octicon octicon-link"></span></a>What is Thinreports</h3>
<p><a href="http://www.thinreports.org">Thinreports</a> is an open source report generation tools. It provides the Thinreports Editor which is a tool for designing a report format, and the Thinreports Generator for Ruby which is a library for generating a PDF. See the following pages for further details.</p>
</section>
<aside id="sidebar">
<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the Architect theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.</p>
</aside>
</div>
</div>
</body>
</html>