From 2359afb9657dd3897a2a6f6eef2bd28df0d2ffd0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 16 Dec 2019 10:29:50 +0100 Subject: duplicate v3 --- .gitignore | 8 + Makefile | 5 + composer-chronos.json | 62 ++++ composer.json | 105 +++++++ makesrc.sh | 28 ++ makesrc2.sh | 28 ++ php-cakephp4.spec | 681 +++++++++++++++++++++++++++++++++++++++++++ src/Cache/composer.json | 34 +++ src/Collection/composer.json | 36 +++ src/Core/composer.json | 40 +++ src/Database/composer.json | 38 +++ src/Datasource/composer.json | 40 +++ src/Event/composer.json | 34 +++ src/Filesystem/composer.json | 34 +++ src/Form/composer.json | 33 +++ src/I18n/composer.json | 48 +++ src/Log/composer.json | 35 +++ src/ORM/composer.json | 43 +++ src/Utility/composer.json | 43 +++ src/Validation/composer.json | 38 +++ 20 files changed, 1413 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 composer-chronos.json create mode 100644 composer.json create mode 100755 makesrc.sh create mode 100755 makesrc2.sh create mode 100644 php-cakephp4.spec create mode 100644 src/Cache/composer.json create mode 100644 src/Collection/composer.json create mode 100644 src/Core/composer.json create mode 100644 src/Database/composer.json create mode 100644 src/Datasource/composer.json create mode 100644 src/Event/composer.json create mode 100644 src/Filesystem/composer.json create mode 100644 src/Form/composer.json create mode 100644 src/I18n/composer.json create mode 100644 src/Log/composer.json create mode 100644 src/ORM/composer.json create mode 100644 src/Utility/composer.json create mode 100644 src/Validation/composer.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc9aa8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +clog +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c353103 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + + diff --git a/composer-chronos.json b/composer-chronos.json new file mode 100644 index 0000000..d63b284 --- /dev/null +++ b/composer-chronos.json @@ -0,0 +1,62 @@ +{ + "name": "cakephp/chronos", + "type": "library", + "description": "A simple API extension for DateTime.", + "keywords": [ + "date", + "time", + "DateTime" + ], + "homepage": "http://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "http://nesbot.com" + }, + { + "name": "The CakePHP Team", + "homepage": "http://cakephp.org" + } + ], + "support": { + "issues": "https://github.com/cakephp/chronos/issues", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/chronos" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "<6.0 || ^7.0", + "athletic/athletic": "~0.1", + "cakephp/cakephp-codesniffer": "^3.0", + "phpbench/phpbench": "@dev" + }, + "autoload": { + "psr-4": { + "Cake\\Chronos\\": "src/" + }, + "files": ["src/carbon_compat.php"] + }, + "autoload-dev": { + "psr-4": { + "Cake\\Chronos\\Test\\": "tests/" + }, + "files": ["tests/TestCase.php"] + }, + "scripts": { + "check": [ + "@test", + "@cs-check", + "@phpstan" + ], + "test": "phpunit", + "cs-check": "phpcs", + "cs-fix": "phpcbf", + "bench": "phpbench run", + "phpstan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan-shim:^0.11 && mv composer.backup composer.json", + "phpstan": "phpstan analyze -c phpstan.neon -l 3 src/" + } +} diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..12543c7 --- /dev/null +++ b/composer.json @@ -0,0 +1,105 @@ +{ + "name": "cakephp/cakephp", + "description": "The CakePHP framework", + "type": "library", + "keywords": [ + "framework", + "mvc", + "rapid-development", + "conventions over configuration", + "dry", + "orm", + "form", + "validation", + "psr-7" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/cakephp/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/cakephp" + }, + "require": { + "php": ">=5.6.0", + "ext-intl": "*", + "ext-mbstring": "*", + "cakephp/chronos": "^1.0.1", + "aura/intl": "^3.0.0", + "psr/log": "^1.0.0", + "psr/simple-cache": "^1.0.0", + "zendframework/zend-diactoros": "^1.4.0" + }, + "suggest": { + "ext-openssl": "To use Security::encrypt() or have secure CSRF token generation.", + "ext-curl": "To enable more efficient network calls in Http\\Client.", + "lib-ICU": "The intl PHP library, to use Text::transliterate() or Text::slug()" + }, + "require-dev": { + "cakephp/cakephp-codesniffer": "^3.0", + "cakephp/chronos": "^1.2.1", + "phpunit/phpunit": "^5.7.14|^6.0" + }, + "autoload": { + "psr-4": { + "Cake\\": "src/" + }, + "files": [ + "src/Core/functions.php", + "src/Collection/functions.php", + "src/I18n/functions.php", + "src/Utility/bootstrap.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Cake\\PHPStan\\": "tests/PHPStan/", + "Cake\\Test\\": "tests/", + "TestApp\\": "tests/test_app/TestApp/", + "TestPlugin\\": "tests/test_app/Plugin/TestPlugin/src/", + "TestPlugin\\Test\\": "tests/test_app/Plugin/TestPlugin/tests/", + "TestPluginTwo\\": "tests/test_app/Plugin/TestPluginTwo/src/", + "Company\\TestPluginThree\\": "tests/test_app/Plugin/Company/TestPluginThree/src/", + "Company\\TestPluginThree\\Test\\": "tests/test_app/Plugin/Company/TestPluginThree/tests/", + "ParentPlugin\\": "tests/test_app/Plugin/ParentPlugin/src/", + "PluginJs\\": "tests/test_app/Plugin/PluginJs/src/" + } + }, + "replace": { + "cakephp/cache": "self.version", + "cakephp/collection": "self.version", + "cakephp/core": "self.version", + "cakephp/datasource": "self.version", + "cakephp/database": "self.version", + "cakephp/event": "self.version", + "cakephp/filesystem": "self.version", + "cakephp/form": "self.version", + "cakephp/i18n": "self.version", + "cakephp/log": "self.version", + "cakephp/orm": "self.version", + "cakephp/utility": "self.version", + "cakephp/validation": "self.version" + }, + "conflict": { + "phpunit/phpunit": "<5.7" + }, + "scripts": { + "check": [ + "@cs-check", + "@test" + ], + "cs-check": "phpcs --colors --parallel=16 -p src/ tests/", + "cs-fix": "phpcbf --colors --parallel=16 -p src/ tests/", + "test": "phpunit", + "test-coverage": "phpunit --coverage-clover=clover.xml", + "phpstan": "phpstan analyse -c phpstan.neon -l 2 src/", + "phpstan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan-shim:^0.11 && mv composer.backup composer.json" + } +} diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..87d223d --- /dev/null +++ b/makesrc.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +NAME=$(basename $PWD) +OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) +PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec) +VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) +COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) +SHORT=${COMMIT:0:7} + +echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" + +echo "Cloning..." +rm -rf $PROJECT-$COMMIT +git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT + +echo "Getting commit..." +pushd $PROJECT-$COMMIT +git checkout $COMMIT +cp composer.json ../composer.json +popd + +echo "Archiving..." +tar czf $NAME-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT + +echo "Cleaning..." +rm -rf $PROJECT-$COMMIT + +echo "Done." diff --git a/makesrc2.sh b/makesrc2.sh new file mode 100755 index 0000000..8cdfb70 --- /dev/null +++ b/makesrc2.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +NAME=$(basename $PWD) +OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) +PROJECT=chronos +VERSION=$(sed -n '/^%global chronos_version/{s/.* //;p}' $NAME.spec) +COMMIT=$(sed -n '/^%global chronos_commit/{s/.* //;p}' $NAME.spec) +SHORT=${COMMIT:0:7} + +echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n" + +echo "Cloning..." +rm -rf $PROJECT-$COMMIT +git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT + +echo "Getting commit..." +pushd $PROJECT-$COMMIT +git checkout $COMMIT +cp composer.json ../composer-chronos.json +popd + +echo "Archiving..." +tar czf $NAME-chronos-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT + +echo "Cleaning..." +rm -rf $PROJECT-$COMMIT + +echo "Done." diff --git a/php-cakephp4.spec b/php-cakephp4.spec new file mode 100644 index 0000000..5141dc4 --- /dev/null +++ b/php-cakephp4.spec @@ -0,0 +1,681 @@ +# remirepo/fedora spec file for php-cakephp +# +# Copyright (c) 2018-2019 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# + +# https://github.com/cakephp/cakephp/releases +%global gh_commit bf96319a3688c191742d4a3a1680740abef1b371 +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner cakephp +%global gh_project cakephp +%global pk_vendor cakephp +%global ns_vendor Cake +%global php_home %{_datadir}/php +%global with_tests 0%{!?_without_tests:1} + +# https://github.com/cakephp/chronos/releases +%global chronos_commit ba2bab98849e7bf29b02dd634ada49ab36472959 +%global chronos_short %(c=%{chronos_commit}; echo ${c:0:7}) +%global chronos_version 1.3.0 + +Name: php-%{pk_vendor} +Version: 3.8.7 +Release: 1%{?dist} +Summary: The CakePHP framework + +License: MIT +URL: https://cakephp.org/ +Source0: %{name}-%{version}-%{gh_short}.tgz +Source1: makesrc.sh +Source2: %{name}-chronos-%{chronos_version}-%{chronos_short}.tgz +Source3: makesrc2.sh + +BuildArch: noarch +%if %{with_tests} +# For tests +BuildRequires: php(language) >= 5.6 +BuildRequires: php-ctype +BuildRequires: php-date +BuildRequires: php-dom +BuildRequires: php-hash +BuildRequires: php-intl +BuildRequires: php-json +BuildRequires: php-libxml +BuildRequires: php-mbstring +BuildRequires: php-pcre +BuildRequires: php-pdo +BuildRequires: php-reflection +BuildRequires: php-simplexml +BuildRequires: php-spl +# From composer.json, "require-dev": { +# "cakephp/cakephp-codesniffer": "^3.0", +# "cakephp/chronos": "^1.2.1", +# "phpunit/phpunit": "^5.7.14|^6.0" +BuildRequires: php-composer(phpunit/phpunit) +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: (php-composer(aura/intl) >= 3.0.0 with php-composer(aura/intl) < 4) +BuildRequires: (php-composer(psr/log) >= 1.0.0 with php-composer(psr/log) < 2) +BuildRequires: (php-composer(zendframework/zend-diactoros) >= 1.4.0 with php-composer(zendframework/zend-diactoros) < 2) +%else +BuildRequires: php-aura-intl >= 3.0.0 +BuildRequires: php-PsrLog >= 1.0.0 +BuildRequires: php-zendframework-zend-diactoros >= 1.4.0 +%endif +%endif + + +%description +CakePHP is a rapid development framework for PHP which uses commonly known +design patterns like Associative Data Mapping, Front Controller, and MVC. +Our primary goal is to provide a structured framework that enables PHP users +at all levels to rapidly develop robust web applications, without any loss +to flexibility. + + +%package cache +Summary: CakePHP Collection Library +# From composer.json "require": { +# "php": ">=5.6.0", +# "psr/simple-cache": "^1.0.0", +# "cakephp/core": "^3.6.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/core) = %{version} +# from main composer.json +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires: (php-composer(psr/simple-cache) >= 1.0.0 with php-composer(psr/simple-cache) < 2) +Requires: (php-composer(psr/simple-cache) >= 1.0.0 with php-composer(psr/simple-cache) < 2) +# Optional (from phpcompatinfo report) +Recommends: php-apcu +Suggests: php-memcached +Suggests: php-redis +%else +BuildRequires: php-psr-simple-cache >= 1.0.0 +Requires: php-psr-simple-cache >= 1.0.0 +%endif +# From phpcompatinfo report +Requires: php-date +Requires: php-pcre +Requires: php-spl +Provides: php-composer(%{pk_vendor}/cache) = %{version} + +%description cache +CakePHP Caching Library: + +The Cache library provides a Cache service locator for interfacing with +multiple caching backends using a simple to use interface. + +The caching backends supported are: +* Files +* APC +* Memcached +* Redis +* Wincache +* Xcache + + +%package collection +Summary: CakePHP Collection Library +# From composer.json "require": { +# "php": ">=5.6.0", +Requires: php(language) >= 5.6 +# From phpcompatinfo report +Requires: php-spl +Provides: php-composer(%{pk_vendor}/collection) = %{version} + +%description collection +CakePHP Collection Library: + +The collection classes provide a set of tools to manipulate arrays or +Traversable objects. If you have ever used underscore.js, you have an +idea of what you can expect from the collection classes. + + +%package core +Summary: CakePHP Framework Core classes +# From composer.json "require": { +# "php": ">=5.6.0", +# "cakephp/utility": "^3.6.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/utility) = %{version} +# From phpcompatinfo report +Requires: php-reflection +Requires: php-json +Requires: php-mbstring +Requires: php-pcre +Requires: php-spl +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Recommends: php-composer(%{pk_vendor}/cache) = %{version} +Recommends: php-composer(%{pk_vendor}/event) = %{version} +%endif +Provides: php-composer(%{pk_vendor}/core) = %{version} + +%description core +CakePHP Framework Core classes: + +A set of classes used for configuration files reading and storing. +This library contains the classes that are used as glue for creating the +CakePHP framework. + + +%package database +Summary: CakePHP Database Library +# From composer.json "require": { +# "php": ">=5.6.0", +# "cakephp/cache": "^3.6.0", +# "cakephp/core": "^3.6.0", +# "cakephp/datasource": "^3.6.0" +# "cakephp/log": "^3.6.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/cache) = %{version} +Requires: php-composer(%{pk_vendor}/core) = %{version} +Requires: php-composer(%{pk_vendor}/datasource) = %{version} +Requires: php-composer(%{pk_vendor}/log) = %{version} +# From phpcompatinfo report +Requires: php-pdo +Requires: php-ctype +Requires: php-date +Requires: php-json +Requires: php-pcre +Requires: php-spl +Provides: php-composer(%{pk_vendor}/database) = %{version} + +%description database +A flexible and lightweight Database Library for PHP: + +This library abstracts and provides help with most aspects of dealing with +relational databases such as keeping connections to the server, building +queries, preventing SQL injections, inspecting and altering schemas, and +with debugging and profiling queries sent to the database. + +It adopts the API from the native PDO extension in PHP for familiarity, +but solves many of the inconsistencies PDO has, while also providing +several features that extend PDO's capabilities. + +A distinguishing factor of this library when compared to similar database +connection packages, is that it takes the concept of "data types" to its core. +It lets you work with complex PHP objects or structures that can be passed as +query conditions or to be inserted in the database. + +The typing system will intelligently convert the PHP structures when passing +them to the database, and convert them back when retrieving. + + +%package datasource +Summary: CakePHP Datasource Library +# From composer.json "require": { +# "php": ">=5.6.0", +# "cakephp/core": "^3.6.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/core) = %{version} +# From phpcompatinfo report +Requires: php-json +Requires: php-spl +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Recommends: php-composer(%{pk_vendor}/utility) = %{version} +Recommends: php-composer(%{pk_vendor}/collection) = %{version} +Recommends: php-composer(%{pk_vendor}/cache) = %{version} +%endif +Provides: php-composer(%{pk_vendor}/datasource) = %{version} + +%description datasource +CakePHP Datasource Library: + +This library contains interfaces for implementing Repositories and +Entities using any data source, a class for managing connections to +datasources and traits to help you quickly implement the interfaces +provided by this package. + + +%package event +Summary: CakePHP Event Library +# From composer.json "require": { +# "php": ">=5.6.0", +# "cakephp/core": "^3.6.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/core) = %{version} +# From phpcompatinfo report +Requires: php-pcre +Requires: php-spl + +%description event +CakePHP Event Library: + +CakePHP event dispatcher library that helps implementing the observer pattern. + + +%package log +Summary: logging library +# From composer.json "require": { +# "php": ">=5.6.0", +# "cakephp/core": "^3.6.0", +# "psr/log": "^1.0.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/core) = %{version} +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Requires: (php-composer(psr/log) >= 1.0.0 with php-composer(psr/log) < 2) +%else +Requires: php-PsrLog >= 1.0.0 +%endif +# From phpcompatinfo report +Requires: php-date +Requires: php-json +Requires: php-posix +Requires: php-spl +Provides: php-composer(%{pk_vendor}/log) = %{version} + +%description log +CakePHP logging library with support for multiple different streams. + + +%package utility +Summary: CakePHP Utility Classes +# From composer.json "require": { +# "php": ">=5.6.0", +# "cakephp/core": "^3.6.0" +Requires: php(language) >= 5.6 +Requires: php-composer(%{pk_vendor}/core) = %{version} +# From phpcompatinfo report +Requires: php-simplexml +Requires: php-ctype +Requires: php-dom +Requires: php-hash +Requires: php-intl +Requires: php-json +Requires: php-libxml +Requires: php-mbstring +Requires: php-pcre +Requires: php-spl +Provides: php-composer(%{pk_vendor}/utility) = %{version} + +%description utility +CakePHP Utility Classes: + +This library provides a range of utility classes that are used throughout +the CakePHP framework. + + +%prep +%setup -q -n %{gh_project}-%{gh_commit} -a 2 +mv chronos-*/src src/Chronos + + +%build +: ===== Generate test autoloader for full framework +mkdir vendor +cat << 'EOF' | tee vendor/autoload.php + - 3.8.7-1 +- update to 3.8.7 + +* Tue Dec 3 2019 Remi Collet - 3.8.6-2 +- use Chronos 1.3.0 + +* Thu Nov 7 2019 Remi Collet - 3.8.6-1 +- update to 3.8.6 + +* Mon Oct 7 2019 Remi Collet - 3.8.5-1 +- update to 3.8.5 + +* Mon Sep 16 2019 Remi Collet - 3.8.4-1 +- update to 3.8.4 + +* Sun Sep 1 2019 Remi Collet - 3.8.3-1 +- update to 3.8.3 + +* Tue Aug 20 2019 Remi Collet - 3.8.2-1 +- update to 3.8.2 + +* Mon Jul 15 2019 Remi Collet - 3.8.1-1 +- update to 3.8.1 + +* Thu Jun 27 2019 Remi Collet - 3.8.0-1 +- update to 3.8.0 + +* Thu Jun 20 2019 Remi Collet - 3.7.9-1 +- update to 3.7.9 + +* Tue Jun 18 2019 Remi Collet - 3.7.8-3 +- use Chronos 1.2.8 + +* Tue Jun 11 2019 Remi Collet - 3.7.8-2 +- use Chronos 1.2.7 + +* Sun Jun 2 2019 Remi Collet - 3.7.8-1 +- update to 3.7.8 +- use Chronos 1.2.6 + +* Wed Apr 24 2019 Remi Collet - 3.7.7-1 +- update to 3.7.7 +- use Chronos 1.2.5 + +* Wed Apr 10 2019 Remi Collet - 3.7.6-1 +- update to 3.7.6 + +* Thu Mar 14 2019 Remi Collet - 3.7.5-1 +- update to 3.7.5 + +* Mon Feb 11 2019 Remi Collet - 3.7.4-1 +- update to 3.7.4 +- add event subpackage +- use Chronos 1.2.4 + +* Tue Jan 22 2019 Remi Collet - 3.7.3-1 +- update to 3.7.3 + +* Fri Jan 4 2019 Remi Collet - 3.7.2-1 +- update to 3.7.2 +- add log subpackage +- database requires log + +* Tue Dec 18 2018 Remi Collet - 3.7.1-1 +- update to 3.7.1 + +* Thu Dec 13 2018 Remi Collet - 3.7.0-1 +- update to 3.7.0 +- use Chronos 1.2.3 + +* Mon Nov 5 2018 Remi Collet - 3.6.16-1 +- update to 3.6.16 + +* Tue Oct 2 2018 Remi Collet - 3.6.12-1 +- update to 3.6.12 + +* Mon Sep 3 2018 Remi Collet - 3.6.11-1 +- update to 3.6.11 + +* Tue Aug 14 2018 Remi Collet - 3.6.10-1 +- update to 3.6.10 + +* Thu Jul 26 2018 Remi Collet - 3.6.9-1 +- update to 3.6.9 + +* Tue Jul 24 2018 Remi Collet - 3.6.8-1 +- update to 3.6.8 + +* Mon Jul 9 2018 Remi Collet - 3.6.7-1 +- update to 3.6.7 + +* Mon Jun 25 2018 Remi Collet - 3.6.6-1 +- update to 3.6.6 + +* Mon Jun 11 2018 Remi Collet - 3.6.5-1 +- Initial packaging with cache, collection, core, database, + database and utility sub-packages diff --git a/src/Cache/composer.json b/src/Cache/composer.json new file mode 100644 index 0000000..2760303 --- /dev/null +++ b/src/Cache/composer.json @@ -0,0 +1,34 @@ +{ + "name": "cakephp/cache", + "description": "Easy to use Caching library with support for multiple caching backends", + "type": "library", + "keywords": [ + "cakephp", + "caching", + "cache" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/cache/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/cache" + }, + "require": { + "php": ">=5.6.0", + "psr/simple-cache": "^1.0.0", + "cakephp/core": "^3.6.0" + }, + "autoload": { + "psr-4": { + "Cake\\Cache\\": "." + } + } +} diff --git a/src/Collection/composer.json b/src/Collection/composer.json new file mode 100644 index 0000000..47a24c4 --- /dev/null +++ b/src/Collection/composer.json @@ -0,0 +1,36 @@ +{ + "name": "cakephp/collection", + "description": "Work easily with arrays and iterators by having a battery of utility traversal methods", + "type": "library", + "keywords": [ + "cakephp", + "collections", + "iterators", + "arrays" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/collection/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/collection" + }, + "require": { + "php": ">=5.6.0" + }, + "autoload": { + "psr-4": { + "Cake\\Collection\\": "." + }, + "files": [ + "functions.php" + ] + } +} diff --git a/src/Core/composer.json b/src/Core/composer.json new file mode 100644 index 0000000..0ee9afc --- /dev/null +++ b/src/Core/composer.json @@ -0,0 +1,40 @@ +{ + "name": "cakephp/core", + "description": "CakePHP Framework Core classes", + "type": "library", + "keywords": [ + "cakephp", + "framework", + "core" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/core/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/core" + }, + "require": { + "php": ">=5.6.0", + "cakephp/utility": "^3.6.0" + }, + "suggest": { + "cakephp/event": "To use PluginApplicationInterface or plugin applications.", + "cakephp/cache": "To use Configure::store() and restore()." + }, + "autoload": { + "psr-4": { + "Cake\\Core\\": "." + }, + "files": [ + "functions.php" + ] + } +} diff --git a/src/Database/composer.json b/src/Database/composer.json new file mode 100644 index 0000000..c197115 --- /dev/null +++ b/src/Database/composer.json @@ -0,0 +1,38 @@ +{ + "name": "cakephp/database", + "description": "Flexible and powerful Database abstraction library with a familiar PDO-like API", + "type": "library", + "keywords": [ + "cakephp", + "database", + "abstraction", + "database abstraction", + "pdo" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/database/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/database" + }, + "require": { + "php": ">=5.6.0", + "cakephp/cache": "^3.6.0", + "cakephp/core": "^3.6.0", + "cakephp/datasource": "^3.6.0", + "cakephp/log": "^3.6.0" + }, + "autoload": { + "psr-4": { + "Cake\\Database\\": "." + } + } +} diff --git a/src/Datasource/composer.json b/src/Datasource/composer.json new file mode 100644 index 0000000..7846db2 --- /dev/null +++ b/src/Datasource/composer.json @@ -0,0 +1,40 @@ +{ + "name": "cakephp/datasource", + "description": "Provides connection managing and traits for Entities and Queries that can be reused for different datastores", + "type": "library", + "keywords": [ + "cakephp", + "datasource", + "connection management", + "entity", + "query" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/datasource/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/datasource" + }, + "require": { + "php": ">=5.6.0", + "cakephp/core": "^3.6.0" + }, + "suggest": { + "cakephp/utility": "If you decide to use EntityTrait.", + "cakephp/collection": "If you decide to use ResultSetInterface.", + "cakephp/cache": "If you decide to use Query caching." + }, + "autoload": { + "psr-4": { + "Cake\\Datasource\\": "." + } + } +} diff --git a/src/Event/composer.json b/src/Event/composer.json new file mode 100644 index 0000000..e984d41 --- /dev/null +++ b/src/Event/composer.json @@ -0,0 +1,34 @@ +{ + "name": "cakephp/event", + "description": "CakePHP event dispatcher library that helps implementing the observer pattern", + "type": "library", + "keywords": [ + "cakephp", + "event", + "dispatcher", + "observer pattern" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/event/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/event" + }, + "require": { + "php": ">=5.6.0", + "cakephp/core": "^3.6.0" + }, + "autoload": { + "psr-4": { + "Cake\\Event\\": "." + } + } +} diff --git a/src/Filesystem/composer.json b/src/Filesystem/composer.json new file mode 100644 index 0000000..e5dcb07 --- /dev/null +++ b/src/Filesystem/composer.json @@ -0,0 +1,34 @@ +{ + "name": "cakephp/filesystem", + "description": "CakePHP filesystem convenience classes to help you work with files and folders.", + "type": "library", + "keywords": [ + "cakephp", + "filesystem", + "files", + "folders" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/filesystem/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/filesystem" + }, + "require": { + "php": ">=5.6.0", + "cakephp/core": "^3.6.0" + }, + "autoload": { + "psr-4": { + "Cake\\Filesystem\\": "." + } + } +} diff --git a/src/Form/composer.json b/src/Form/composer.json new file mode 100644 index 0000000..5e1dfdc --- /dev/null +++ b/src/Form/composer.json @@ -0,0 +1,33 @@ +{ + "name": "cakephp/form", + "description": "CakePHP Form library", + "type": "library", + "keywords": [ + "cakephp", + "form" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/form/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/form" + }, + "require": { + "php": ">=5.6.0", + "cakephp/event": "^3.6.0", + "cakephp/validation": "^3.6.0" + }, + "autoload": { + "psr-4": { + "Cake\\Form\\": "." + } + } +} diff --git a/src/I18n/composer.json b/src/I18n/composer.json new file mode 100644 index 0000000..7ffc86f --- /dev/null +++ b/src/I18n/composer.json @@ -0,0 +1,48 @@ +{ + "name": "cakephp/i18n", + "description": "CakePHP Internationalization library with support for messages translation and dates and numbers localization", + "type": "library", + "keywords": [ + "cakephp", + "i18n", + "internationalisation", + "internationalization", + "localisation", + "localization", + "translation", + "date", + "number" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/i18n/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/i18n" + }, + "require": { + "php": ">=5.6.0", + "ext-intl": "*", + "cakephp/core": "^3.6.0", + "cakephp/chronos": "^1.0.0", + "aura/intl": "^3.0.0" + }, + "suggest": { + "cakephp/cache": "Require this if you want automatic caching of translators" + }, + "autoload": { + "psr-4": { + "Cake\\I18n\\": "." + }, + "files": [ + "functions.php" + ] + } +} diff --git a/src/Log/composer.json b/src/Log/composer.json new file mode 100644 index 0000000..a775a4f --- /dev/null +++ b/src/Log/composer.json @@ -0,0 +1,35 @@ +{ + "name": "cakephp/log", + "description": "CakePHP logging library with support for multiple different streams", + "type": "library", + "keywords": [ + "cakephp", + "log", + "logging", + "streams" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/log/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/log" + }, + "require": { + "php": ">=5.6.0", + "cakephp/core": "^3.6.0", + "psr/log": "^1.0.0" + }, + "autoload": { + "psr-4": { + "Cake\\Log\\": "." + } + } +} diff --git a/src/ORM/composer.json b/src/ORM/composer.json new file mode 100644 index 0000000..1432893 --- /dev/null +++ b/src/ORM/composer.json @@ -0,0 +1,43 @@ +{ + "name": "cakephp/orm", + "description": "CakePHP ORM - Provides a flexible and powerful ORM implementing a data-mapper pattern.", + "type": "library", + "keywords": [ + "cakephp", + "orm", + "data-mapper", + "data-mapper pattern" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/orm/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/orm" + }, + "require": { + "php": ">=5.6.0", + "cakephp/collection": "^3.6.0", + "cakephp/core": "^3.6.0", + "cakephp/datasource": "^3.6.0", + "cakephp/database": "^3.6.0", + "cakephp/event": "^3.6.0", + "cakephp/utility": "^3.6.0", + "cakephp/validation": "^3.6.0" + }, + "suggest": { + "cakephp/i18n": "If you are using Translate / Timestamp Behavior." + }, + "autoload": { + "psr-4": { + "Cake\\ORM\\": "." + } + } +} diff --git a/src/Utility/composer.json b/src/Utility/composer.json new file mode 100644 index 0000000..4c5c8f1 --- /dev/null +++ b/src/Utility/composer.json @@ -0,0 +1,43 @@ +{ + "name": "cakephp/utility", + "description": "CakePHP Utility classes such as Inflector, String, Hash, and Security", + "type": "library", + "keywords": [ + "cakephp", + "utility", + "inflector", + "string", + "hash", + "security" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/utility/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/utility" + }, + "require": { + "php": ">=5.6.0", + "cakephp/core": "^3.6.0" + }, + "suggest": { + "ext-intl": "To use Text::transliterate() or Text::slug()", + "lib-ICU": "To use Text::transliterate() or Text::slug()" + }, + "autoload": { + "psr-4": { + "Cake\\Utility\\": "." + }, + "files": [ + "bootstrap.php" + ] + } +} diff --git a/src/Validation/composer.json b/src/Validation/composer.json new file mode 100644 index 0000000..e4de56a --- /dev/null +++ b/src/Validation/composer.json @@ -0,0 +1,38 @@ +{ + "name": "cakephp/validation", + "description": "CakePHP Validation library", + "type": "library", + "keywords": [ + "cakephp", + "validation", + "data validation" + ], + "homepage": "https://cakephp.org", + "license": "MIT", + "authors": [ + { + "name": "CakePHP Community", + "homepage": "https://github.com/cakephp/validation/graphs/contributors" + } + ], + "support": { + "issues": "https://github.com/cakephp/cakephp/issues", + "forum": "https://stackoverflow.com/tags/cakephp", + "irc": "irc://irc.freenode.org/cakephp", + "source": "https://github.com/cakephp/validation" + }, + "require": { + "php": ">=5.6.0", + "cakephp/core": "^3.6.0", + "cakephp/utility": "^3.6.0", + "psr/http-message": "^1.0.0" + }, + "suggest": { + "cakephp/i18n": "If you want to use Validation::localizedTime()" + }, + "autoload": { + "psr-4": { + "Cake\\Validation\\": "." + } + } +} -- cgit