Skip to content

pedra/loren.tk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loren Ipsum Generator API

Simple API to generate Lorem Ipsolum Text

Usage : http://loren.tk/ [COMAND] / [OPTION] / [OPTION]

Commands & options see http://loren.tk

Usage

Html iframe

<iframe src="http://loren.tk/p/4/1"></iframe>

Jquery Ajax

in HTML
<div id="ajax"> --- </div>

in Javascript
$("#ajax").load("http://loren.tk/p/2/1");

PHP Code

<?php
$loren = file_get_contents('http://loren.tk/p/10/1');

echo $loren;
//Generates 10 paragraphs with '<p>' tags.

Populate Table in Database Mysql

<?php
$pdo = new PDO('mysql:host=localhost;dbname=MyDbase;charset=UTF8', 'root', '******');
$sth = $pdo->prepare('INSERT INTO yourtablename (yourTextCol) VALUES (:loren)');

$sth->execute(array('loren'=>file_get_contents('http://loren.tk/w/1000')));

:)

Tanks Renato Cassino [https://github.com/Tacno]

This application runs on PHP Start Framework [https://github.com/pedra/start]

About

Simple API to generate Lorem Ipsolum Text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published