2017 © Pedro Peláez
 

library lib-system

System library of the Ride framework

image

ride/lib-system

System library of the Ride framework

  • Thursday, September 8, 2016
  • by ride-user
  • Repository
  • 9 Watchers
  • 0 Stars
  • 3,669 Installations
  • PHP
  • 45 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 18 Versions
  • 2 % Grown

The README.md

Ride: System Library

System abstraction library of the PHP Ride framework., (*1)

What's In This Library

System

The System class in an abstraction of the underlying server system. It offers easy access to the underlying file system. You can also use it to execute commands or check the type of system, the connected client, ..., (*2)

FileSystem

The FileSystem interface is an abstraction of the underlying file system. A Windows file system is handled different then a Unix file system. This interface makes it possible to program transparantly for both systems., (*3)

File

The file system works with File objects. All file operations are to be called through this class., (*4)

FileBrowser

The FileBrowser interface is to create a transparant file structure. You can use it to request relative files without knowing how your files are organized. On top of that, you can request the application and the public directory., (*5)

PermissionConverter

You can use the PermissionConverter to convert permissions to different formats., (*6)

Code Sample

Check this code sample to see the possibilities of this library:, (*7)

<?php

use ride\library\system\System;

$system = new System();

// check the type of operating system
$system->isUnix();
$system->isWindows();

// check the client
$system->isCli();
$system->getClient(); // ip address or username when in cli

// execute a command
$output = $system->execute('whoami');

// file system abstraction
$fileSystem = $system->getFileSystem();

$dir = $fileSystem->getFile('/path/to/dir');
$dir->isDirectory();
$dir->isReadable();
$files = $dir->read();

$file = $fileSystem->getFile('/path/to/file');
$file->exists();
$file->getModificationTime();
$file->setLock(true);
$content = $file->read();

$destination = $dir->getChild($file->getName());
$destination = $destination->getCopyFile();

$file->copy($destination);

Implementations

For more examples, you can check the following implementation of this library: - ride/app, (*8)

Installation

You can use Composer to install this library., (*9)

composer require ride/lib-system

The Versions

08/09 2016

dev-master

9999999-dev

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

08/09 2016

dev-develop

dev-develop

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

08/09 2016

1.1.1

1.1.1.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

30/08 2016

1.1.0

1.1.0.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

16/06 2016

1.0.0

1.0.0.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

21/10 2015

0.5.1

0.5.1.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

29/01 2015

0.4.6

0.4.6.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

16/01 2015

0.4.5

0.4.5.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

15/12 2014

0.4.4

0.4.4.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

24/04 2014

0.4.3

0.4.3.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

24/04 2014

0.4.2

0.4.2.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

20/03 2014

0.4.1

0.4.1.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

19/03 2014

0.4.0

0.4.0.0

System library of the Ride framework

  Sources   Download

MIT

by Joris Vandeweerd

11/11 2013

0.3.1

0.3.1.0

System library of the Pallo framework

  Sources   Download

MIT

by Joris Vandeweerd

07/11 2013

0.3.0

0.3.0.0

System library of the Pallo framework

  Sources   Download

MIT

by Joris Vandeweerd

29/09 2013

0.2.1

0.2.1.0

System library of the Pallo framework

  Sources   Download

MIT

by Joris Vandeweerd

28/09 2013

0.2.0

0.2.0.0

System library of the Pallo framework

  Sources   Download

MIT

by Joris Vandeweerd

23/09 2013

0.1.0

0.1.0.0

System library of the Pallo framework

  Sources   Download

MIT

by Joris Vandeweerd