2017 © Pedro Peláez
 

library stub

image

goszowski/stub

  • Thursday, April 27, 2017
  • by goszowski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Total Downloads Latest Stable Version License, (*1)

stub

Generate file from stub, (*2)

Installation

    composer require goszowski\stub

Usage

<?php 

use Goszowski\Stub\Stub;

$stub = new Stub;
$stub->load('/path/to/stub/file');

$stub->replace('some_1', 'other_1');
$stub->replace('some_2', 'other_2');

// OR WITH ARRAY

$stub->replace([
  'some_1' => 'other_1',
  'some_2' => 'other_2',
]);

$stub->store('/path/to/save/file', 'filename');

Usage in Laravel

<?php 
namsepace App\YourNamespace;

use Facades\ {
  Goszowski\Stub\Stub
};

$stub = Stub::load('/path/to/stub/file');

$stub->replace('some_1', 'other_1');
$stub->replace('some_2', 'other_2');

// OR WITH ARRAY

$stub->replace([
  'some_1' => 'other_1',
  'some_2' => 'other_2',
]);

$stub->store('/path/to/save/file', 'filename');

The Versions

27/04 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Jaroslaw Goszowski

27/04 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Jaroslaw Goszowski