Skip to content

lilyinstarlight/php-file

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-file

Easily display files and folders in a mobile friendly, clean and cool way. Use the api from file.php wherever you need a listing and you are good to go.

Usage

<?php require_once 'file.php'; ?>
<!DOCTYPE html>
<html>
	<head>
		<title>php-file</title>

		<style>
			.light {
				background: #dadada;
				padding: 20px;
			}
			.dark {
				background: #1d1c1c;
				padding: 20px;
			}
		</style>

		<?php echo file_head(); ?>
	</head>

	<body>
		<div class="light">
			<?php echo file_list(dirname(__FILE__), 'light', '', 'php-file'); ?>
		</div>
		<div class="dark">
			<?php echo file_list(dirname(__FILE__), 'dark', '', 'php-file'); ?>
		</div>
	</body>
</html>

About

easy php file directory listing library (this is basically a prettied up library version of https://github.com/halgatewood/file-directory-list)

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 60.2%
  • CSS 39.8%