Skip to content

Commit

Permalink
Package migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Mar 13, 2018
1 parent c026536 commit 9be0054
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 36 deletions.
18 changes: 8 additions & 10 deletions README.md
Expand Up @@ -2,16 +2,14 @@

**FormMaker** - A remarkably magical form and input maker tool for Laravel.

[![Build Status](https://travis-ci.org/YABhq/FormMaker.svg?branch=master)](https://travis-ci.org/YABhq/FormMaker)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/YABhq/FormMaker/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/YABhq/FormMaker/?branch=develop)
[![Packagist](https://img.shields.io/packagist/dt/yab/formmaker.svg)](https://packagist.org/packages/yab/formmaker)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yab/formmaker)
[![Build Status](https://travis-ci.org/GrafiteInc/FormMaker.svg?branch=master)](https://travis-ci.org/GrafiteInc/FormMaker)
[![Packagist](https://img.shields.io/packagist/dt/grafite/formmaker.svg)](https://packagist.org/packages/grafite/formmaker)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/grafite/formmaker)

The FormMaker package provides a set of tools for generating HTML forms with as little as 1 line of code. Don't want to write boring HTML, neither do we. The FormMaker will generate error containers, all fields defined by either the table or object column types, or if you prefer to have more control define a config. In the case that you want to write more than 1 line of code, FormMaker comes with the InputMaker service as well. With the InputMaker you can create any form of input, including html for Eloquent relationships.

##### Author(s):
* [Matt Lantz](https://github.com/mlantz) ([@mattylantz](http://twitter.com/mattylantz), matt at yabhq dot com)
* [Chris Blackwell](https://github.com/chrisblackwell) ([@chrisblackwell](https://twitter.com/chrisblackwell), chris at yabhq dot com)
* [Matt Lantz](https://github.com/mlantz) ([@mattylantz](http://twitter.com/mattylantz), mattlantz at gmail dot com)

## Requirements

Expand All @@ -22,7 +20,7 @@ The FormMaker package provides a set of tools for generating HTML forms with as

| Laravel Version | Package Tag | Supported |
|-----------------|-------------|-----------|
| 5.4.x - 5.5.x | 1.2.x | yes |
| ^5.4.x | 1.2.x | yes |
| 5.4.x | 1.1.x | no |
| 5.3.x | 1.0.x | no |

Expand All @@ -35,17 +33,17 @@ composer create-project laravel/laravel your-project-name

Then run the following to add FormMaker
```php
composer require "yab/formmaker"
composer require "grafite/formmaker"
```

Add this to the `config/app.php` in the providers array:
```php
Yab\FormMaker\FormMakerProvider::class
Grafite\FormMaker\FormMakerProvider::class
```

Time to publish those assets!
```php
php artisan vendor:publish --provider="Yab\FormMaker\FormMakerProvider"
php artisan vendor:publish --provider="Grafite\FormMaker\FormMakerProvider"
```

## Documentation
Expand Down
12 changes: 4 additions & 8 deletions composer.json
@@ -1,15 +1,11 @@
{
"name": "yab/formmaker",
"name": "grafite/formmaker",
"description": "A remarkably magical form and input maker tool for Laravel.",
"license": "MIT",
"authors": [
{
"name": "Matt Lantz",
"email": "matt@yabhq.com"
},
{
"name": "Chris Blackwell",
"email": "chris@yabhq.com"
"email": "mattlantz@gmail.com"
}
],
"require": {
Expand All @@ -27,7 +23,7 @@
},
"autoload": {
"psr-4": {
"Yab\\FormMaker\\": "src/"
"Grafite\\FormMaker\\": "src/"
},
"files": [
"src/Helpers/form_maker.php",
Expand All @@ -42,7 +38,7 @@
"extra": {
"laravel": {
"providers": [
"Yab\\FormMaker\\FormMakerProvider"
"Grafite\\FormMaker\\FormMakerProvider"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/FormMaker.php
@@ -1,6 +1,6 @@
<?php

namespace Yab\FormMaker\Facades;
namespace Grafite\FormMaker\Facades;

use Illuminate\Support\Facades\Facade;

Expand Down
2 changes: 1 addition & 1 deletion src/Facades/InputMaker.php
@@ -1,6 +1,6 @@
<?php

namespace Yab\FormMaker\Facades;
namespace Grafite\FormMaker\Facades;

use Illuminate\Support\Facades\Facade;

Expand Down
10 changes: 5 additions & 5 deletions src/FormMakerProvider.php
@@ -1,12 +1,12 @@
<?php

namespace Yab\FormMaker;
namespace Grafite\FormMaker;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use Yab\FormMaker\Services\FormMaker;
use Yab\FormMaker\Services\InputMaker;
use Grafite\FormMaker\Services\FormMaker;
use Grafite\FormMaker\Services\InputMaker;

class FormMakerProvider extends ServiceProvider
{
Expand Down Expand Up @@ -53,8 +53,8 @@ public function register()

$loader = AliasLoader::getInstance();

$loader->alias('FormMaker', \Yab\FormMaker\Facades\FormMaker::class);
$loader->alias('InputMaker', \Yab\FormMaker\Facades\InputMaker::class);
$loader->alias('FormMaker', \Grafite\FormMaker\Facades\FormMaker::class);
$loader->alias('InputMaker', \Grafite\FormMaker\Facades\InputMaker::class);

// Thrid party
$loader->alias('Form', \Collective\Html\FormFacade::class);
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/HtmlGenerator.php
@@ -1,6 +1,6 @@
<?php

namespace Yab\FormMaker\Generators;
namespace Grafite\FormMaker\Generators;

/**
* Generate the CRUD.
Expand Down
2 changes: 1 addition & 1 deletion src/Services/FormMaker.php
@@ -1,6 +1,6 @@
<?php

namespace Yab\FormMaker\Services;
namespace Grafite\FormMaker\Services;

use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
Expand Down
2 changes: 1 addition & 1 deletion src/Services/InputCalibrator.php
@@ -1,6 +1,6 @@
<?php

namespace Yab\FormMaker\Services;
namespace Grafite\FormMaker\Services;

/**
* Input Calibration.
Expand Down
4 changes: 2 additions & 2 deletions src/Services/InputMaker.php
@@ -1,11 +1,11 @@
<?php

namespace Yab\FormMaker\Services;
namespace Grafite\FormMaker\Services;

use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Session;
use Yab\FormMaker\Generators\HtmlGenerator;
use Grafite\FormMaker\Generators\HtmlGenerator;

/**
* $this->elper to make an HTML input.
Expand Down
2 changes: 1 addition & 1 deletion tests/FormMakerTest.php
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Yab\FormMaker\Services\FormMaker;
use Grafite\FormMaker\Services\FormMaker;

class Entry extends Model
{
Expand Down
2 changes: 1 addition & 1 deletion tests/HtmlGeneratorTest.php
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Container\Container as Container;
use Illuminate\Support\Facades\Facade as Facade;
use Yab\FormMaker\Generators\HtmlGenerator;
use Grafite\FormMaker\Generators\HtmlGenerator;

class HtmlGeneratorTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/InputMakerTest.php
@@ -1,7 +1,7 @@
<?php

use Illuminate\Database\Eloquent\Model;
use Yab\FormMaker\Services\InputMaker;
use Grafite\FormMaker\Services\InputMaker;

class User extends Model
{
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase.php
Expand Up @@ -20,7 +20,7 @@ protected function getEnvironmentSetUp($app)
protected function getPackageProviders($app)
{
return [
\Yab\FormMaker\FormMakerProvider::class,
\Grafite\FormMaker\FormMakerProvider::class,
];
}

Expand All @@ -29,8 +29,8 @@ protected function getPackageAliases($app)
return [
'Form' => \Collective\Html\FormFacade::class,
'HTML' => \Collective\Html\HtmlFacade::class,
'FormMaker' => \Yab\FormMaker\Facades\FormMaker::class,
'InputMaker' => \Yab\FormMaker\Facades\InputMaker::class,
'FormMaker' => \Grafite\FormMaker\Facades\FormMaker::class,
'InputMaker' => \Grafite\FormMaker\Facades\InputMaker::class,
];
}

Expand Down

0 comments on commit 9be0054

Please sign in to comment.