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 : https://loren.tk/ [COMAND] / [OPTION] / [OPTION]

Commands & options see https://loren.tk

Usage

Html iframe

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

Jquery Ajax

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

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

PHP Code

<?php
$loren = file_get_contents('https://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('https://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