profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/cebe/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Carsten Brandt cebe @yiisoft, @cebe-cc Berlin / Alfeld, Germany http://cebe.cc/ PGP: 1DEEEED0

cebe/assetfree-yii2 46

A composer package that allows you to install yii2 without composer-asset-plugin

cebe/composer-bower 10

Proof of concept for a repository to install bower packages using composer. DEPRECATED

cebe/color-nick 8

A simple PHP lib that can color nick names to make them distinguishable in a chat room.

cebe/a-guide-to-yii-grids-lists-and-data-providers 4

A guide to Yii framework grids, lists and data providers

cebe/clean-docblox-theme 3

A Docblox template that offers a clean tidy frontend to your docs.

cebe/commonmark-latex 3

A LaTeX extension for https://github.com/thephpleague/commonmark

cebe/atoum 2

The modern, simple and intuitive PHP 5.3+ unit testing framework.

cebe/awesome-php 2

A curated list of amazingly awesome PHP libraries, resources and shiny things.

cebe/awesome-yii 2

A curated list of awesome Yii Framework extensions, tutorials and other nice things

cebe/code-dashboard 2

code dashboard shows your git commits and lets you comment on code and changes

issue commentkartik-v/yii2-detail-view

renderAttributeItem crash if value is array

The correct way to convert an array value into string would be the formatters job. So the "fix" applied in #159 makes it impossible to write a correct formatter.

siggi-k

comment created time in 17 hours

issue commentyiisoft/form

Type casting at load, why?

Form has to follow a workflow like this:

  • load input data
  • validate data
  • typecast data

For the class interface we could provide different methods to retrieve original input data and validated/converted data.

Typecasting use cases:

  • number input cast as float/int
  • date input parsed and converted to unix timestamp or DB format
  • trim applied to input strings
ruslansp

comment created time in 4 days

issue commentyiisoft/form

Type casting at load, why?

That is fine for validating input parameters but on a form you want to display wrong value together with the error message. Otherwise it is very confusing for the user.

If I enter text into a number field may it be intentional or by accident. I do want to see exactly what I typed again after submission.

ruslansp

comment created time in 4 days

PullRequestReviewEvent

Pull request review commentcebe/php-openapi

Add Testcases for OpenAPI 3.1

 public function specProvider()             $nexmoExamples         );         foreach($all as $path) {-            yield [-                substr($path, strlen(__DIR__ . '/../../vendor/')),-                basename(dirname($path, 2)) . DIRECTORY_SEPARATOR . basename(dirname($path, 1)) . DIRECTORY_SEPARATOR . basename($path)+            $pathWithoutVendorPrefix = substr($path, strlen(__DIR__ . '/../../vendor/'));+            yield $pathWithoutVendorPrefix => [+                $pathWithoutVendorPrefix

I had two paramters here before because from the output of PHPUnit it was really hard to figure out which file is failining, the output was shortened so I added the last two directories and the file name as a second paramter.

marcelthole

comment created time in 5 days

PullRequestReviewEvent

Pull request review commentcebe/php-openapi

Add Testcases for OpenAPI 3.1

 public function specProvider()             $nexmoExamples         );         foreach($all as $path) {-            yield [-                substr($path, strlen(__DIR__ . '/../../vendor/')),-                basename(dirname($path, 2)) . DIRECTORY_SEPARATOR . basename(dirname($path, 1)) . DIRECTORY_SEPARATOR . basename($path)+            $pathWithoutVendorPrefix = substr($path, strlen(__DIR__ . '/../../vendor/'));

with the key

with or without? :)

marcelthole

comment created time in 5 days

issue closedcebe/assetfree-yii2

Please upgrade version to 2.0.43

Please upgrade this for support Yii 2.0.43. Thanks!

closed time in 5 days

shklyarik

issue commentcebe/assetfree-yii2

Please upgrade version to 2.0.43

Done. Created all missing tags.

shklyarik

comment created time in 5 days

push eventcebe/assetfree-yii2

Carsten Brandt

commit sha c8130a9e29de0980ea1fd274a212f1b62fc99730

Version 2.0.12.1

view details

Carsten Brandt

commit sha 6ef36ba1828439d113cd28924cb108645af1014f

Version 2.0.12.2

view details

Carsten Brandt

commit sha a0daba7bc645481fc68ffcdb0e1035fb2d6aacd4

Require dev-master on master

view details

Carsten Brandt

commit sha e40f98926b2b2a187e22774047e86c3365dfa5b5

upgrade script

view details

Carsten Brandt

commit sha 000972d85b06df1d56e50ddbfa34d380790fae82

Version 2.0.13.1

view details

Carsten Brandt

commit sha daea872ae04434ba36faca3300276b8ff396b06a

Version 2.0.13.2

view details

Carsten Brandt

commit sha 2c9d790c92efe83fe1d7498bd60b1eeb308b4559

Version 2.0.13.3

view details

Carsten Brandt

commit sha a68b97d252b2e0754cca5e9dbc450bc18050ad04

Version 2.0.14.1

view details

Carsten Brandt

commit sha da7bd58f578f34c7723a139c5b2d2b49b6fd22ff

Version 2.0.14.2

view details

Carsten Brandt

commit sha 5456ff19e113455663fb76d1f6dbc4d327c9de3e

Version 2.0.15.1

view details

Carsten Brandt

commit sha 7889fbe839102a6936eef469756fd7b2979df3f0

Version 2.0.16.1

view details

Carsten Brandt

commit sha f2d454d3f6f8a8229125f7053391efe6d7796b9d

Version 2.0.17

view details

Carsten Brandt

commit sha f25320c8d944930a9df352140f327c9f9eb8d78b

Version 2.0.18

view details

Carsten Brandt

commit sha 861a28cf6d6d384d96ca7fbae445efdd7446a486

Version 2.0.19

view details

Carsten Brandt

commit sha 9b44610d2630d0847c9884088c800559e7b04562

Version 2.0.20

view details

Carsten Brandt

commit sha a97473eeb60a90d7f95ae03797562f25d1f8d6c7

Version 2.0.21

view details

Carsten Brandt

commit sha 033f4ec4ccbdc3ecaff83637d3746c1265ecb2ec

Version 2.0.22

view details

Carsten Brandt

commit sha 5ff96562ed832423ea885d2b194f3052416a2d49

Version 2.0.23

view details

Carsten Brandt

commit sha efaec47cec70bb897bb36be5da58bcad01d317aa

Version 2.0.24

view details

Carsten Brandt

commit sha 284a2fed26540fc492a5c9501c965c29fcc95029

Version 2.0.25

view details

push time in 5 days

PullRequestReviewEvent

Pull request review commentcebe/php-openapi

Add support for WebHooks

 public function testEmpty()         $this->assertEquals([             'OpenApi is missing required property: openapi',             'OpenApi is missing required property: info',-            'OpenApi is missing required property: paths',+            'OpenApi is missing at least one of the following required properties: paths, webhooks',
            'OpenApi is missing at least one of the following required properties: paths, webhooks, components',
WyriHaximus

comment created time in 5 days

Pull request review commentcebe/php-openapi

Add support for WebHooks

 public function __get($name)      */     public function performValidation()     {-        $this->requireProperties(['openapi', 'info', 'paths']);+        if ($this->getMajorVersion() === static::VERSION_3_0) {+            $this->requireProperties(['openapi', 'info', 'paths']);+        } else {+            $this->requireProperties(['openapi', 'info'], ['paths', 'webhooks']);

here is the text representation of that from the specification:

https://spec.openapis.org/oas/latest.html#openapi-document The OpenAPI document MUST contain at least one paths field, a components field or a webhooks field.

WyriHaximus

comment created time in 6 days

PullRequestReviewEvent

pull request commentOpenMage/magento-lts

Update Mage_Eav_Model_Entity_Collection_Abstract::joinTable()

Just completed the "Contribution checklist", anything else I can do to get this merged?

cebe

comment created time in 6 days

push eventcebe/magento-lts

Carsten Brandt

commit sha e1b110393be1ad38b921ddc76a3ab4bdb9690107

update contributors

view details

push time in 6 days

pull request commentcebe/php-openapi

Add support for WebHooks

Webhook property check should depend in the openapi Version. Only require webhook in 3.1 and keep old behavior in 3.0.

Also would be good to have a WebHookTest which checks basic webhook example

WyriHaximus

comment created time in 7 days

startedmrin9/RapiDoc

started time in 8 days

push eventcebe/php-openapi

Carsten Brandt

commit sha 4fcc155846b79594763e37dde5e6d239b71041ff

Update README.md

view details

push time in 8 days

push eventcebe/php-openapi

Carsten Brandt

commit sha eb1108d63fcb0867219366f9c52bed9071294dbd

fix test paths

view details

push time in 8 days

issue closedcebe/php-openapi

Convert to inline spec without using the console command

Hi @cebe! Thank you for the package, you've done a great job!

I need to fetch openapi files with refs and compile them to the single inline file. I saw there is a way to make it in console command, but I want to do the same just in my controllers.

This is how I tried to make it:

$file = $this->client->repositoryFiles()->getFile($projectId, $filePath, 'master');

$content = base64_decode($file['content']);
$openapi = Reader::readFromYaml($content);

$yaml = Writer::writeToYaml($openapi);
dd($yaml);

But I still have yaml file with refs. How can I fetch all the refs and convert them to the single file?

// Spec files are not public, so readFromYamlFile is returning an error.

closed time in 8 days

antonkomarev

push eventcebe/php-openapi

Carsten Brandt

commit sha ba2f0cf7f9ea0721f6d4b8591943d26187c9c496

Update README about inline references fixes #122

view details

push time in 8 days

issue commentcebe/php-openapi

Convert to inline spec without using the console command

You can inline external references like this:

$inputFile = 'file://tmp/yourfile.yaml'; // change this to a valid URI to your file.
$openApi = \cebe\openapi\Reader::readFromYamlFile($inputFile, \cebe\openapi\spec\OpenApi::class, ReferenceContext::RESOLVE_MODE_INLINE);
// use $openApi without external references here

// or write it to a file
\cebe\openapi\Writer::writeToYaml($openApi);
antonkomarev

comment created time in 8 days

pull request commentcebe/php-openapi

[WIP] Add support for WebHooks

@WyriHaximus please rebase this on the openapi-31 branch. We'll add all 3.1 features to that branch and merge it into master when ready.

WyriHaximus

comment created time in 8 days

pull request commentcebe/php-openapi

Add v3.1 schema and validation based on it

@WyriHaximus thanks for starting this, I made a slightly different implementation in #128, which replaces this PR but includes most of your changes.

WyriHaximus

comment created time in 8 days

Pull request review commentcebe/php-openapi

Add v3.1 schema and validation based on it

+{

did that in #128

WyriHaximus

comment created time in 8 days

PullRequestReviewEvent

PR opened cebe/php-openapi

Draft: OpenAPI 3.1

This branch will contain all changes made to support OpenAPI 3.1.

I added the following:

  • New method OpenApi::getMajorVersion() to return the current OpenAPI version, this should be used to make version dependent decisions when loading and validating the description.
  • OpenAPI 3.1 schema files for valdiation vai CLI

This replaces #117.

+2343 -9

0 comment

7 changed files

pr created time in 8 days

push eventcebe/php-openapi

Carsten Brandt

commit sha 82b0db7fe2780c4311eda6a71104f526ec3ae7db

OpenAPI v3.1: Add schema and validation to CLI Co-authored-by: Cees-Jan Kiewiet <ceesjank@gmail.com>

view details

push time in 8 days