Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 2, 2024
1 parent 1ccd090 commit 2bb2745
Show file tree
Hide file tree
Showing 8 changed files with 296 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: http://EditorConfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = tab
tab_width = 4

[{*.json, *.yaml, *.yml, *.md}]
indent_style = space
indent_size = 2
10 changes: 10 additions & 0 deletions .github/.kodiak.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version = 1

[merge]
automerge_label = "automerge"
blacklist_title_regex = "^WIP.*"
blacklist_labels = ["WIP"]
method = "rebase"
delete_branch_on_merge = true
notify_on_conflict = true
optimistic_updates = false
76 changes: 76 additions & 0 deletions .github/workflows/all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: "All-in-ine"

on:
pull_request:
workflow_dispatch:

push:
branches: ["*"]

schedule:
- cron: "0 * * * 1"

jobs:
install:
name: "Install"
runs-on: "${{ matrix.operating-system }}"

strategy:
matrix:
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]
fail-fast: false

steps:
- name: "Checkout"
uses: "actions/checkout@v3"

- name: "Setup PHP cache environment"
id: "extcache"
uses: "shivammathur/cache-extensions@v1"
with:
php-version: "${{ matrix.php-version }}"
extensions: "mbstring,json"
key: "v1"

- name: "Cache PHP extensions"
uses: "actions/cache@v3"
with:
path: "${{ steps.extcache.outputs.dir }}"
key: "${{ steps.extcache.outputs.key }}"
restore-keys: "${{ steps.extcache.outputs.key }}"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: "composer, cs2pr"
coverage: "${{ env.coverage }}"
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Setup problem matchers for PHP"
run: 'echo "::add-matcher::${{ runner.tool_cache }}/php.json"'

- name: "Get Composer cache directory"
id: "composercache"
run: 'echo "::set-output name=dir::$(composer config cache-files-dir)"'

- name: "Cache PHP dependencies"
uses: "actions/cache@v3"
with:
path: "${{ steps.composercache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "${{ runner.os }}-composer-"

- name: "Install dependencies"
run: "composer install"
working-directory: all

- name: "List dependencies"
run: "composer show -l"
working-directory: all

- name: "Show outdated"
run: "composer show -o"
working-directory: all
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/composer.lock
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: install update build

install:
composer install --ignore-platform-reqs

update:
composer update -W --ignore-platform-reqs

build:
php build.php
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# All-in-one

Install all packages together and see if they are dependency compatible.

## Usage

- `make install` - install composer dependencies
- `make update` - update composer dependencies
- `make build` - refresh list of our dependencies from packagist
55 changes: 55 additions & 0 deletions build.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php declare(strict_types = 1);

$sources = [
'https://packagist.org/packages/list.json?vendor=contributte&fields[]=abandoned&fields[]=type',
'https://packagist.org/packages/list.json?vendor=nettrine&fields[]=abandoned&fields[]=type',
];

$skipped = [
// TODO
'contributte/image-storage',
'contributte/imagist',
'contributte/nella',
'nettrine/extensions-knplabs',
'nettrine/extensions-oroinc'
];

$dependencies = ['php' => '>=8.2'];

foreach ($sources as $source) {
$data = (array) json_decode(file_get_contents($source), true);

foreach ($data['packages'] as $package => $meta) {
// Skip abandoned
if ($meta['abandoned'] !== false) continue;
// Skip other than library
if ($meta['type'] !== 'library') continue;

// Skip skipped
if (in_array($package, $skipped)) continue;

$dependencies[$package] = '*';
}
}

$composer = [
"repositories" => [
["type" => "git", "url" => "https://github.com/holyfork/facebook-graph-sdk"],
],
'require' => $dependencies,
'conflict' => [
'mpdf/psr-http-message-shim' => '^2.0',
],
'minimum-stability' => 'dev',
'prefer-stable' => true,
'config' => [
'sort-packages' => true,
'allow-plugins' => [
'php-http/discovery' => true,
'dealerdirect/phpcodesniffer-composer-installer' => false,
],
],
];

file_put_contents('composer.json', json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");

118 changes: 118 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"repositories": [
{
"type": "git",
"url": "https://github.com/holyfork/facebook-graph-sdk"
}
],
"require": {
"php": ">=8.2",
"contributte/anabelle": "*",
"contributte/aop": "*",
"contributte/api-docu": "*",
"contributte/api-router": "*",
"contributte/apitte": "*",
"contributte/application": "*",
"contributte/bare": "*",
"contributte/bootstrap": "*",
"contributte/bus": "*",
"contributte/cache": "*",
"contributte/code-checker": "*",
"contributte/code-rules": "*",
"contributte/codeception": "*",
"contributte/comgate": "*",
"contributte/console": "*",
"contributte/console-extra": "*",
"contributte/czech-post": "*",
"contributte/database": "*",
"contributte/deployer-extension": "*",
"contributte/dev": "*",
"contributte/di": "*",
"contributte/elastica": "*",
"contributte/elasticsearch": "*",
"contributte/event-dispatcher": "*",
"contributte/event-dispatcher-extra": "*",
"contributte/facebook": "*",
"contributte/fio": "*",
"contributte/firewall": "*",
"contributte/flysystem": "*",
"contributte/forms": "*",
"contributte/forms-bootstrap": "*",
"contributte/forms-multiplier": "*",
"contributte/forms-wizard": "*",
"contributte/framex": "*",
"contributte/gosms": "*",
"contributte/guzzlette": "*",
"contributte/http": "*",
"contributte/invoice": "*",
"contributte/jsonrpc": "*",
"contributte/kernel": "*",
"contributte/latte": "*",
"contributte/latte-parsedown-extra": "*",
"contributte/logging": "*",
"contributte/mail": "*",
"contributte/mailing": "*",
"contributte/menu-control": "*",
"contributte/messenger": "*",
"contributte/middlewares": "*",
"contributte/monolog": "*",
"contributte/neonizer": "*",
"contributte/newrelic": "*",
"contributte/nextras-orm-events": "*",
"contributte/nextras-orm-generator": "*",
"contributte/nextras-orm-query-object": "*",
"contributte/oauth2-client": "*",
"contributte/oauth2-server": "*",
"contributte/openapi": "*",
"contributte/pdf": "*",
"contributte/phpstan": "*",
"contributte/phpunit": "*",
"contributte/psr6-caching": "*",
"contributte/psr7-http-message": "*",
"contributte/psr11-container-interface": "*",
"contributte/qa": "*",
"contributte/rabbitmq": "*",
"contributte/recaptcha": "*",
"contributte/redis": "*",
"contributte/replacus": "*",
"contributte/scheduler": "*",
"contributte/security": "*",
"contributte/sentry": "*",
"contributte/seznamcaptcha": "*",
"contributte/social": "*",
"contributte/tester": "*",
"contributte/thepay": "*",
"contributte/thepay-api": "*",
"contributte/tracy": "*",
"contributte/translation": "*",
"contributte/ui": "*",
"contributte/utils": "*",
"contributte/validator": "*",
"contributte/vite": "*",
"contributte/webpack": "*",
"contributte/wordcha": "*",
"nettrine/annotations": "*",
"nettrine/cache": "*",
"nettrine/dbal": "*",
"nettrine/extensions-atlantic18": "*",
"nettrine/extensions-beberlei": "*",
"nettrine/extra": "*",
"nettrine/fixtures": "*",
"nettrine/migrations": "*",
"nettrine/mongodb": "*",
"nettrine/odm": "*",
"nettrine/orm": "*"
},
"conflict": {
"mpdf/psr-http-message-shim": "^2.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"php-http/discovery": true,
"dealerdirect/phpcodesniffer-composer-installer": false
}
}
}

0 comments on commit 2bb2745

Please sign in to comment.