Download the PHP package square1/gwitlog without Composer

On this page you can find all versions of the php package square1/gwitlog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gwitlog

Gwitlog

Make developers eager to read your commit log by styling it like a social media timeline.

Based on this commitstrip comic, this tool allows you to take a commit log from a git repo and style it to look like a social media timeline.

Installation

The package can be installed by adding the "conroyp/gwitlog": "dev-master" package to your project's composer.json.

Usage

Generating the log file

The required format of the git log is generated by running the below command on your repository:

git log --pretty=format:'%H -%d %s (%ad) <%an:%ae>'

Outputting the timeline to screen

Outputting the timeline to file

Reading from stdin rather than a flat file

Gwitlog also supports reading from an input stream, allowing the git log command to be piped through the script without writing the intermediary git.log file.

Saving the above as gwitlog.php allows us to run:

git log --pretty=format:'%H -%d %s (%ad) <%an:%ae>' | gwitlog.php > timeline.html

That leaves a file (timeline.html) containing the formatted timeline. This allows things like a post-build hook in a local testing environment to generate a new timeline for the team to review after each successful merge.

Customising the output

It's possible to customise the output of the result. We use the Blade templating language, most commonly found in Laravel projects.

The Renderer can be given the location of a directory containing customised views. It will expect to find three views here - header.blade.php, gwit.blade.php and footer.blade.php. The call to pass on this directory can be made at any time before the outputToFile or render functions are called.

By default, these views shall be cached to /tmp. If you have permission issues with your deployment or just wish for all of your project views to be cached in one place, call setCacheDirectory($path). This will update the cache directory used by the renderer.

Over-riding default size limits

A maximum of 20,000 commits will be handled by default. If you want to try processing more than this, calling setMaxEntries($limit) will increase the processing limit.

Tests

phpunit

Roadmap


All versions of gwitlog with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
philo/laravel-blade Version 1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package square1/gwitlog contains the following files

Loading the files please wait ....