Skip to content

Commit

Permalink
📦 Make PHP repository
Browse files Browse the repository at this point in the history
  • Loading branch information
matyo91 committed Dec 24, 2022
1 parent bed5bcb commit 0d2ef44
Show file tree
Hide file tree
Showing 64 changed files with 1,135 additions and 1,347 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
php: [ '8.1' ]
package: [ 'php' ]

steps:
- name: 'Init repository'
Expand All @@ -29,19 +28,19 @@ jobs:
coverage: none # disable XDebug for tests

- name: 'Install dependencies'
run: composer --working-dir=packages/${{ matrix.package }} install
run: composer install

- name: 'PHPStan'
run: composer --working-dir=packages/${{ matrix.package }} phpstan
run: composer phpstan

- name: 'PHP-CS-Fixer'
run: composer --working-dir=packages/${{ matrix.package }} cs-fix
run: composer cs-fix

#- name: 'Psalm'
# run: composer --working-dir=packages/${{ matrix.package }} psalm
# run: composer psalm

#- name: 'PHPQA'
# run: composer --working-dir=packages/${{ matrix.package }} phpqa
# run: composer phpqa

- name: 'Test suite'
run: composer --working-dir=packages/${{ matrix.package }} test
run: composer test
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#ide
# IDS
.vscode/

# PHP
/.phpunit.result.cache
/.php-cs-fixer.cache
/.php_cs.cache
/build/
/composer.lock
/vendor/

# HUGO
node_modules
public
resources
Expand Down
File renamed without changes.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
EXEC_PHP = php -d memory_limit=-1
COMPOSER = composer

##
##Dev
##-------------

dev: ## Start dev server
docker-compose up -d

cs-fix: ## Check and fix coding styles using PHP CS Fixer
composer cs-fix

phpqa: ## Execute PHQA toolsuite analysis
composer phpqa

phpstan: ## Execute PHPStan analysis
composer phpstan

psalm: ## Execute Psalm analysis
composer psalm

test: ## Launch PHPUnit test suite
composer test

docs-serve: ## Start documentation server locally
./node_modules/.bin/hugo/hugo server -s docs -D

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ composer require darkwood/flow

## Usage

A working script is available in the bundled `examples` directory in `packages/php`
A working script is available in the bundled `examples` directory

- Run Flow : `php examples/flow.php`
- Start Server : `php examples/server.php`
Expand Down
23 changes: 0 additions & 23 deletions bin/splitsh-deploy

This file was deleted.

Binary file removed bin/splitsh-lite
Binary file not shown.
80 changes: 0 additions & 80 deletions bin/splitsh-release

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions docs/config/_default/menus/menus.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
identifier = "getting-started"
url = "/docs/getting-started/"

[[docs]]
name = "Integrations"
weight = 60
identifier = "integrations"
url = "/docs/integrations/"

[[main]]
name = "Docs"
url = "/docs/getting-started/introduction/"
Expand Down
1 change: 1 addition & 0 deletions docs/content/en/docs/getting-started/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ toc: true
### 1.1.1

- Rename entire project from `Railway FBP` to `Flow`
- Bundle `Flow` to PHP monorepository
- Merge from `packages/symfony` to `packages/php` and make Flow [Symfony](https://symfony.com) friendly
- New DX interface `Flow\FlowInterface`
- Error managment is now integrated to Flow
Expand Down
4 changes: 4 additions & 0 deletions docs/content/en/docs/getting-started/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ composer require darkwood/flow
A working script is available in the bundled `examples` directory

- Run Flow : `php examples/flow.php`
- Start Server : `php examples/server.php`
- Start Client(s) : `php examples/client.php`

Messaging part require to install [Docker](https://www.docker.com) and execute `docker-compose up -d`

## Documentation

Expand Down
9 changes: 0 additions & 9 deletions docs/content/en/docs/integrations/_index.md

This file was deleted.

40 changes: 0 additions & 40 deletions docs/content/en/docs/integrations/php.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 0d2ef44

Please sign in to comment.