Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wgcrouch/Zenity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple class to allow a CLI script to use Zenity for user input and notifications. 

Example use:

<?php 

require_once 'Zenity.php';

$zenity = new Zenity();

$zenity->showError('This is an Error', 'Error');

$zenity->showInfo('This is an info box', 'Info');

//Get a file path using a file dialogue
$path =  $zenity->getFile('Please Select a file', 'Select File');
print "You selected $path";

//Getting Multiple File Paths:
$paths =  $zenity->getFile('Please Select files', 'Select Files', array('multiple'=>''));
print "You selected implode(', ', $paths)";

//Get a date using a calendar:
$date =  $zenity->getDate('Please Select Date', 'Select Date');
print "You selected $date";

About

PHP class to use Zenity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages