-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb225e1
commit 3ada691
Showing
88 changed files
with
973 additions
and
240 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,8 @@ | |
|
||
/behat.yml | ||
/phpspec.yml | ||
|
||
/package-lock.json | ||
|
||
/.php-version | ||
/.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2020 Monsieur Biz | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,54 @@ | ||
# Monsieur Biz Sylius sales report plugin | ||
<p align="center"> | ||
<a href="https://monsieurbiz.com" target="_blank"> | ||
<img src="https://monsieurbiz.com/logo.png" width="250px" /> | ||
</a> | ||
| ||
<a href="https://sylius.com" target="_blank"> | ||
<img src="https://demo.sylius.com/assets/shop/img/logo.png" width="200px" /> | ||
</a> | ||
</p> | ||
|
||
## Install | ||
<h1 align="center">Sales Reports</h1> | ||
|
||
Without symfony binary : | ||
|
||
`composer require monsieurbiz/sylius-sales-reports-plugin=dev-master` | ||
|
||
With symfony binary : | ||
|
||
`symfony composer require monsieurbiz/sylius-sales-reports-plugin=dev-master` | ||
[](https://github.com/monsieurbiz/SyliusSalesReportsPlugin/blob/master/LICENSE.txt) | ||
[](https://travis-ci.com/monsieurbiz/SyliusSalesReportsPlugin) | ||
[](https://scrutinizer-ci.com/g/monsieurbiz/SyliusSalesReportsPlugin/?branch=master) | ||
|
||
> We will make tagged release when the plugin development will be ended. Use it carefully until this moment | ||
A simple plugin to have sales reports in Sylius | ||
|
||
## Configure | ||
|
||
Edit your `config/bundles.php` to add this line : | ||
## Installation | ||
|
||
```bash | ||
`composer require monsieurbiz/sylius-sales-reports-plugin | ||
``` | ||
|
||
Change your `config/bundles.php` file to add the line for the plugin : | ||
|
||
```php | ||
<?php | ||
return [ | ||
//.. | ||
MonsieurBiz\SyliusSalesReportsPlugin\MonsieurBizSyliusSalesReportsPlugin::class => ['all' => true], | ||
``` | ||
]; | ||
``` | ||
|
||
Import plugin config in `config/packages/monsieur_biz_sales_reports_plugin.yaml` : | ||
Then create the config file in `config/packages/monsieur_biz_sales_reports_plugin.yaml` : | ||
|
||
```yaml | ||
imports: | ||
- { resource: "@MonsieurBizSyliusSalesReportsPlugin/Resources/config/config.yaml" } | ||
``` | ||
Import plugin routing in `config/routes.yaml` : | ||
Finally import the routes in `config/routes.yaml` : | ||
```yaml | ||
monsieur_biz_sales_reports_plugin: | ||
resource: "@MonsieurBizSyliusSalesReportsPlugin/Resources/config/routing.yaml" | ||
``` | ||
## Contributing | ||
You can open an issue or a Pull Request if you want! 😘 | ||
Thank you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Testing | ||
|
||
## Installation | ||
|
||
1. From the plugin root directory, run the following commands: | ||
|
||
```bash | ||
$ (cd tests/Application && yarn install) | ||
$ (cd tests/Application && yarn build) | ||
$ (cd tests/Application && bin/console assets:install public -e test) | ||
|
||
$ (cd tests/Application && bin/console doctrine:database:create -e test) | ||
$ (cd tests/Application && bin/console doctrine:schema:create -e test) | ||
``` | ||
|
||
To be able to setup the plugin's database, remember to configure your database credentials in `tests/Application/.env` | ||
and `tests/Application/.env.test`. You can also add custom configuration in `tests/Application/.env.test.local`. | ||
## Usage | ||
### Running plugin tests | ||
- PHPUnit | ||
```bash | ||
$ vendor/bin/phpunit | ||
``` | ||
- PHPSpec | ||
```bash | ||
$ vendor/bin/phpspec run | ||
``` | ||
- PHPStan | ||
```bash | ||
$ vendor/bin/phpstan analyse src | ||
``` | ||
### Opening Sylius with the plugin | ||
- Using `test` environment: | ||
```bash | ||
$ (cd tests/Application && bin/console sylius:fixtures:load -e test) | ||
$ (cd tests/Application && bin/console server:run -d public -e test) | ||
``` | ||
- Using `dev` environment: | ||
```bash | ||
$ (cd tests/Application && bin/console sylius:fixtures:load -e dev) | ||
$ (cd tests/Application && bin/console server:run -d public -e dev) | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.