Skip to content

Commit e9b1638

Browse files
authored
Merge pull request #1 from avengers/develop
Changed meta informations of package
2 parents 9b8daa6 + 9245911 commit e9b1638

21 files changed

+63
-55
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
/build
12
/vendor
23
composer.phar
34
composer.lock
4-
.DS_Store
5+
.DS_Store
6+
.idea

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"name": "adamwathan/bootforms",
2+
"name": "avengers/bootforms",
33
"description": "Just a Formbuilder with some Bootstrap specific conveniences. Remembers old input, retrieves error messages and handles all your boilerplate Bootstrap markup automatically.",
44
"authors": [
5+
{
6+
"name": "Emir Karşıyakalı",
7+
"email": "emirkarsiyakali@gmail.com"
8+
},
59
{
610
"name": "Adam Wathan",
711
"email": "adam.wathan@gmail.com"
@@ -19,7 +23,7 @@
1923
},
2024
"autoload": {
2125
"psr-0": {
22-
"AdamWathan\\BootForms": "src/"
26+
"TheAvengers\\BootForms": "src/"
2327
}
2428
},
2529
"minimum-stability": "stable"

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<whitelist>
2424
<directory suffix=".php">./src</directory>
2525
<exclude>
26-
<file>./src/AdamWathan/BootForms/BootFormsServiceProvider.php</file>
27-
<file>./src/AdamWathan/BootForms/Facades/BootForm.php</file>
26+
<file>./src/TheAvengers/BootForms/BootFormsServiceProvider.php</file>
27+
<file>./src/TheAvengers/BootForms/Facades/BootForm.php</file>
2828
</exclude>
2929
</whitelist>
3030
</filter>

readme.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
> **Important: This package is not actively maintained.** For bug fixes and new features, please fork.
2-
31
BootForms
42
===============
53

6-
[![This Project Has Been Deprecated.](http://www.repostatus.org/badges/0.1.0/abandoned.svg)](http://www.repostatus.org/#abandoned)
7-
[![Code Climate](https://codeclimate.com/github/adamwathan/bootforms/badges/gpa.svg)](https://codeclimate.com/github/adamwathan/bootforms)
8-
[![Coverage Status](https://coveralls.io/repos/adamwathan/bootforms/badge.svg?branch=master)](https://coveralls.io/r/adamwathan/bootforms?branch=master)
4+
[![Code Climate](https://codeclimate.com/github/avengers/bootforms/badges/gpa.svg)](https://codeclimate.com/github/avengers/bootforms)
5+
[![Coverage Status](https://coveralls.io/repos/avengers/bootforms/badge.svg?branch=master)](https://coveralls.io/r/avengers/bootforms?branch=master)
96

10-
BootForms builds on top of my more general [Form](https://github.com/adamwathan/form) package by adding another layer of abstraction to rapidly generate markup for standard Bootstrap 3 forms. Probably not perfect for your super custom branded ready-for-release apps, but a *huge* time saver when you are still in the prototyping stage!
7+
BootForms builds on top of my more general [Form](https://github.com/avengers/form) package by adding another layer of abstraction to rapidly generate markup for standard Bootstrap 3 forms. Probably not perfect for your super custom branded ready-for-release apps, but a *huge* time saver when you are still in the prototyping stage!
118

129
- [Installation](#installing-with-composer)
1310
- [Using BootForms](#using-bootforms)
@@ -24,7 +21,7 @@ BootForms builds on top of my more general [Form](https://github.com/adamwathan/
2421
You can install this package via Composer by running this command in your terminal in the root of your project:
2522

2623
```bash
27-
composer require adamwathan/bootforms
24+
composer require avengers/bootforms
2825
```
2926

3027
### Laravel
@@ -36,7 +33,7 @@ Modify the `providers` array in `config/app.php` to include the `BootFormsServic
3633
```php
3734
'providers' => [
3835
//...
39-
'AdamWathan\BootForms\BootFormsServiceProvider'
36+
'TheAvengers\BootForms\BootFormsServiceProvider'
4037
],
4138
```
4239

@@ -45,7 +42,7 @@ Add the `BootForm` facade to the `aliases` array in `config/app.php`:
4542
```php
4643
'aliases' => [
4744
//...
48-
'BootForm' => 'AdamWathan\BootForms\Facades\BootForm'
45+
'BootForm' => 'TheAvengers\BootForms\Facades\BootForm'
4946
],
5047
```
5148

@@ -60,19 +57,19 @@ BootForm::text('Email', 'email');
6057
Usage outside of Laravel is a little trickier since there's a bit of a dependency stack you need to build up, but it's not too tricky.
6158

6259
```php
63-
$formBuilder = new AdamWathan\Form\FormBuilder;
60+
$formBuilder = new TheAvengers\Form\FormBuilder;
6461

6562
$formBuilder->setOldInputProvider($myOldInputProvider);
6663
$formBuilder->setErrorStore($myErrorStore);
6764
$formBuilder->setToken($myCsrfToken);
6865

69-
$basicBootFormsBuilder = new AdamWathan\BootForms\BasicFormBuilder($formBuilder);
70-
$horizontalBootFormsBuilder = new AdamWathan\BootForms\HorizontalFormBuilder($formBuilder);
66+
$basicBootFormsBuilder = new TheAvengers\BootForms\BasicFormBuilder($formBuilder);
67+
$horizontalBootFormsBuilder = new TheAvengers\BootForms\HorizontalFormBuilder($formBuilder);
7168

72-
$bootForm = new AdamWathan\BootForms\BootForm($basicBootFormsBuilder, $horizontalBootFormsBuilder);
69+
$bootForm = new TheAvengers\BootForms\BootForm($basicBootFormsBuilder, $horizontalBootFormsBuilder);
7370
```
7471

75-
> Note: You must provide your own implementations of `AdamWathan\Form\OldInputInterface` and `AdamWathan\Form\ErrorStoreInterface` when not using the implementations meant for Laravel.
72+
> Note: You must provide your own implementations of `TheAvengers\Form\OldInputInterface` and `TheAvengers\Form\ErrorStoreInterface` when not using the implementations meant for Laravel.
7673
7774
## Using BootForms
7875

@@ -126,7 +123,7 @@ BootForm::open()->get()->action('/users');
126123
BootForm::text('First Name', 'first_name')->defaultValue('John Doe');
127124
```
128125

129-
For more information about what's possible, check out the documentation for [my basic Form package.](https://github.com/adamwathan/form)
126+
For more information about what's possible, check out the documentation for [my basic Form package.](https://github.com/avengers/form)
130127

131128
### Reduced Boilerplate
132129

@@ -236,7 +233,7 @@ You can add a help block underneath a form element using the `helpBlock()` helpe
236233
237234
#### Model Binding
238235

239-
BootForms makes it easy to bind an object to a form to provide default values. Read more about it [here](https://github.com/adamwathan/form#model-binding).
236+
BootForms makes it easy to bind an object to a form to provide default values. Read more about it [here](https://github.com/avengers/form#model-binding).
240237

241238
```php
242239
BootForm::open()->action( route('users.update', $user) )->put()
@@ -247,3 +244,8 @@ BootForm::close()
247244
## Related Resources
248245

249246
- [Laravel Translatable BootForms](https://github.com/Propaganistas/Laravel-Translatable-Bootforms), integrates BootForms with Dimsav's [Laravel Translatable](https://github.com/dimsav/laravel-translatable) package
247+
248+
## Contributors
249+
250+
- [AdamWathan](https://github.com/avengers) Adam Wathan - creator
251+
- [emir](https://github.com/emir) Emir Karşıyakalı - maintainer

src/AdamWathan/BootForms/BasicFormBuilder.php renamed to src/TheAvengers/BootForms/BasicFormBuilder.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?php namespace AdamWathan\BootForms;
1+
<?php namespace TheAvengers\BootForms;
22

3-
use AdamWathan\BootForms\Elements\CheckGroup;
4-
use AdamWathan\BootForms\Elements\FormGroup;
5-
use AdamWathan\BootForms\Elements\GroupWrapper;
6-
use AdamWathan\BootForms\Elements\HelpBlock;
7-
use AdamWathan\BootForms\Elements\InputGroup;
3+
use TheAvengers\BootForms\Elements\CheckGroup;
4+
use TheAvengers\BootForms\Elements\FormGroup;
5+
use TheAvengers\BootForms\Elements\GroupWrapper;
6+
use TheAvengers\BootForms\Elements\HelpBlock;
7+
use TheAvengers\BootForms\Elements\InputGroup;
88
use AdamWathan\Form\FormBuilder;
99

1010
class BasicFormBuilder
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace AdamWathan\BootForms;
1+
<?php namespace TheAvengers\BootForms;
22

33
class BootForm
44
{

src/AdamWathan/BootForms/BootFormsServiceProvider.php renamed to src/TheAvengers/BootForms/BootFormsServiceProvider.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace AdamWathan\BootForms;
1+
<?php namespace TheAvengers\BootForms;
22

33
use AdamWathan\Form\ErrorStore\IlluminateErrorStore;
44
use AdamWathan\Form\FormBuilder;
@@ -32,24 +32,24 @@ public function register()
3232

3333
protected function registerErrorStore()
3434
{
35-
$this->app->singleton('adamwathan.form.errorstore', function ($app) {
35+
$this->app->singleton('TheAvengers.form.errorstore', function ($app) {
3636
return new IlluminateErrorStore($app['session.store']);
3737
});
3838
}
3939

4040
protected function registerOldInput()
4141
{
42-
$this->app->singleton('adamwathan.form.oldinput', function ($app) {
42+
$this->app->singleton('TheAvengers.form.oldinput', function ($app) {
4343
return new IlluminateOldInputProvider($app['session.store']);
4444
});
4545
}
4646

4747
protected function registerFormBuilder()
4848
{
49-
$this->app->singleton('adamwathan.form', function ($app) {
49+
$this->app->singleton('TheAvengers.form', function ($app) {
5050
$formBuilder = new FormBuilder;
51-
$formBuilder->setErrorStore($app['adamwathan.form.errorstore']);
52-
$formBuilder->setOldInputProvider($app['adamwathan.form.oldinput']);
51+
$formBuilder->setErrorStore($app['TheAvengers.form.errorstore']);
52+
$formBuilder->setOldInputProvider($app['TheAvengers.form.oldinput']);
5353
$formBuilder->setToken($app['session.store']->token());
5454

5555
return $formBuilder;
@@ -59,14 +59,14 @@ protected function registerFormBuilder()
5959
protected function registerBasicFormBuilder()
6060
{
6161
$this->app->singleton('bootform.basic', function ($app) {
62-
return new BasicFormBuilder($app['adamwathan.form']);
62+
return new BasicFormBuilder($app['TheAvengers.form']);
6363
});
6464
}
6565

6666
protected function registerHorizontalFormBuilder()
6767
{
6868
$this->app->singleton('bootform.horizontal', function ($app) {
69-
return new HorizontalFormBuilder($app['adamwathan.form']);
69+
return new HorizontalFormBuilder($app['TheAvengers.form']);
7070
});
7171
}
7272

src/AdamWathan/BootForms/Elements/CheckGroup.php renamed to src/TheAvengers/BootForms/Elements/CheckGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace AdamWathan\BootForms\Elements;
1+
<?php namespace TheAvengers\BootForms\Elements;
22

33
use AdamWathan\Form\Elements\Label;
44

src/AdamWathan/BootForms/Elements/FormGroup.php renamed to src/TheAvengers/BootForms/Elements/FormGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace AdamWathan\BootForms\Elements;
1+
<?php namespace TheAvengers\BootForms\Elements;
22

33
use AdamWathan\Form\Elements\Element;
44
use AdamWathan\Form\Elements\Label;

src/AdamWathan/BootForms/Elements/GroupWrapper.php renamed to src/TheAvengers/BootForms/Elements/GroupWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace AdamWathan\BootForms\Elements;
1+
<?php namespace TheAvengers\BootForms\Elements;
22

33
use AdamWathan\Form\Elements\Label;
44

0 commit comments

Comments
 (0)