Download the PHP package a15lam/workspace without Composer
On this page you can find all versions of the php package a15lam/workspace. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download a15lam/workspace
More information about a15lam/workspace
Files in a15lam/workspace
Package workspace
Short Description A library of commonly used classes and utilities.
License MIT
Homepage https://github.com/a15lam/workspace/
Informations about the package workspace
workspace (In progress)
A library of all classes that are commonly used in my other libraries/projects. This library is intended for my personal use in order to make life a little easier. When I work on this I am only thinking about myself and no one else. That being said, you are welcome to use it on your own.
Usage
Configuration
Overwrite the Workspace
class in your project and set your PHP config file in Workspace::$configInfo
. Default is DIR . '/../config.php'
. Once the file path is set you can get a config value like below.
//This is your overwritten version of Workspace class where you set the config file.
Workspace::config()->get('config-name-here');
Logger
Overwrite the Workspace
class in your project and set your log path in Workspace::$logPath
. Default is DIR . '/../storage/logs/
. Once the log path is set you get start using the logger like below.
//This is your overwritten version of Workspace class where you set the config file.
Workspace::log()->warn('message');
Workspace::log()->error('message');
Workspace::log()->info('message');
Workspace::log()->debug('message');