Anywhere

Anywhere is output as-a service (OAAS) platform

Contributing

Bug Report

If you found bugs, feel free to report them here to help the system run more secure.

Feature Request

If you want to give an idea or feature request, feel free to describe them here to help the system run more better.

Code Contribution

pull request

An pull request contribution is always open and merged if the changes one vision with us :D

core maintener

Contact me via e-mail diditvelliz@gmail.com if you interest as core maintener

Accounts

Register Accounts

Register anytime from http://your-anywhere-site/register

API Keys

API key is a md5 hash represent your account unique keys to make a output request.

Limitations

As default, you only can make only 10 templates. But you can expand the limit with little changes in config/app.php:

'const' => [
   ...
   'LIMITATIONS' => 10
   ...
]

you can change the value as big as needed

QR Codes

Create QR Codes

To generating a QR code image, you need to follow these rules:

http://your-anywhere-site/qr/render?data=[data]

for example:

http://your-anywhere-site/qr/render?data=admin@example.co.id

you instantly get a admin@example.co.id in QR code format.

Images

Create Template

TODO

Change Template

TODO

API Access

Using Anywrapper

TODO

Using Javascript

TODO

Using cURL

TODO


© 2019 - Didit Velliz

Email

Create Template

TODO

Change Template

TODO

API Access

Using Anywrapper

TODO

Using Javascript

TODO

Using cURL

TODO


© 2019 - Didit Velliz

Excel

Create Template

TODO

Change Template

TODO

API Access

Using Anywrapper

TODO

Using Javascript

TODO

Using cURL

TODO


© 2019 - Didit Velliz

PDF

Create Template

TODO

Change Template

TODO

API Access

Using Anywrapper

TODO

Using Javascript

TODO

Using cURL

TODO


© 2019 - Didit Velliz

Installation

Manual Installation

TODO

Docker

TODO

Database

TODO


© 2019 - Didit Velliz

Welcome

Credits

Anywhere is build on top awesome open sources library:

  • Puko framework
  • DOM PDF
  • Spreadsheet
  • phpqrcode
  • phpmailer

Old Tutorial

DEPRECATED

To use anywhere simply create a new PDF template in ‘beranda’ page use +pdf a href buttons. and now you see a basic configuration for the PDF like:

  • Report Name.
  • Paper Size.
  • Data Source [POST/URL].
  • Data Url.
  • option to download or inline display PDF file in browser.
  • Json Data sample.

CSS designer is in development. is available in version 0.4.0 later

Data Source [POST/URL].

for data source if you choose [POST] you can make request to anywhere website use:

<form action="http://localhost/anywhere/render/pdf/b793b0baad9ed2a2db4b5774fc63de8a/1" method="post">
    <input type='hidden' name='jsondata' value='{
  "Looping": [
    {
      "nama": "Didit Velliz",
      "umur": "21"
    },
    {
      "nama": "Danny henry Gallatang",
      "umur": "21"
    },
    {
      "nama": "Akbar Sidik Maulana",
      "umur": "21"
    },
    {
      "nama": "Rizky Aditya Perdana",
      "umur": "22"
    }
  ]
}'>
    <input type="submit" name="submit"/>
</form>

for data source if you choose [URL] you need to specify the url for Anywhere to fetch the data example

http://localhost/testdata/getdata.php

and in your getdata.php file like:

header("Cache-Control: no-cache");
header("Pragma: no-cache");
header('Content-Type: application/json');

$vars = array(
'Looping' => array(
		array(
			'nama' => 'Didit Velliz',
			'umur' => 21
		),
		array(
			'nama' => 'Didit Second Place',
			'umur' => 21
		),
		array(
			'nama' => 'Didit Thrid Places',
			'umur' => 21
		),
	)
);
echo json_encode($vars);

Json Data sample.

you can use data sample to supply data for template builder in JSON format. example of data:

{
  "Looping": [
    {
      "nama": "Didit Velliz",
      "umur": "21"
    },
    {
      "nama": "Danny henry Gallatang",
      "umur": "21"
    },
    {
      "nama": "Akbar Sidik Maulana",
      "umur": "21"
    },
    {
      "nama": "Rizky Aditya Perdana",
      "umur": "22"
    }
  ]
}

and write in the html template:

<table style="width: 100%; color: #268bd2; background-color: aliceblue">
    <tr>
        <td>Name</td>
        <td>Age</td>
    </tr>
    <!--{!Looping}-->
    <tr>
        <td>{!nama}</td>
        <td>{!umur}</td>
    </tr>
    <!--{/Looping}-->
</table>