Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/doctrine/sql-formatter

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.
https://github.com/doctrine/sql-formatter

Use Token as a value object

705a800b3fc56c3b64a1ec01740d419cd186142d authored over 4 years ago by Grégoire Paris <[email protected]>
Remove variable used for debugging code

a5fd889ce0fa940765a22af1b5214ceec17c644a authored over 4 years ago by Grégoire Paris <[email protected]>
Extract tokenization responsability

Closes #23

292bb6d9a9fcbc93d8677ae969a840550fc192bf authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #26 from greg0ire/init-to-construct

Move initialization to the constructor

fbe071c79b7798b53e8ab9ae33363ec6c2d3088d authored over 4 years ago by Grégoire Paris <[email protected]>
Move initialization to the constructor

Since this class no longer uses statism, we have state and we can
initialize it in the constructor.

65159dda98b2f2ce2193e561e0777f0eae8666c4 authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #24 from greg0ire/drop-features

Drop features unrelated to formatting

fc5b0a7421fd24980fae21550ab4a8315e864b8e authored over 4 years ago by Grégoire Paris <[email protected]>
Drop features unrelated to formatting

69e764b6d1915bb3e6caaeeea54fc5390adce1d8 authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #21 from greg0ire/use-polymorphism

Use polymorphism for highlighting

7dea318791838690eee00cf01e4b5a9f33da8c0e authored over 4 years ago by Grégoire Paris <[email protected]>
Refactor highlightToken signature

a89bbdd026a7d8c016fdc4e2b6b5d1fcb7258353 authored over 4 years ago by Grégoire Paris <[email protected]>
Remove useless ternary

This constant is defined since php 5.3, and we require 7.2.

f219f3ab1af229ed8373c2420d68f48f5c7f7f12 authored over 4 years ago by Grégoire Paris <[email protected]>
Use polymorphism for highlighting

Closes #15

a02a5ea784eacf758b025f36aa673e1ddc3f688f authored over 4 years ago by Grégoire Paris <[email protected]>
Re-sync composer.lock

3901956db22571c1b909b9abadd9445fe5c6b04f authored over 4 years ago by Grégoire Paris <[email protected]>
Make the CWD irrelevant

874834a8311d7af75ae0748923f632afe895c20f authored over 4 years ago by Grégoire Paris <[email protected]>
Refactor into a switch statement

5d55ae48fbe9376f0d37ac7315abb65549b6e74e authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #10 from greg0ire/psalm-sa

Psalm sa

4db282d8904774d422794c2fa361be0206d704b4 authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #11 from greg0ire/remove-static

Get rid of statism

1f59c685b5c52354910c6f2946b5aa461d26e125 authored over 4 years ago by Grégoire Paris <[email protected]>
Get rid of statism

That way you can have several instances with different settings (there
are no settings yet, but ...

fa4df110fe1e06b1ba5b579a4a60b6aeae64f918 authored over 4 years ago by Grégoire Paris <[email protected]>
Setup static analysis with Psalm

3f884c2d0bb157e24a09ea7a3fef80c428eefb4f authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #19 from greg0ire/fix-readme

Proofread readme

1d5a5a34fb01f3fdef345e5e76a0d46991955aed authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #20 from doctrine/version

The new minimum php version is 7.2

796e3a6ba0c9e6cacd7b259102d2ddada0f73cd5 authored over 4 years ago by Grégoire Paris <[email protected]>
The new minimum php version is 7.2

da5635e2b8e76002dc3ed99415777a9715bcabfa authored over 4 years ago by Asmir Mustafic <[email protected]>
Avoid long lines

78641440a696a3d3c781540fbaeae5a8bfee04e2 authored over 4 years ago by Grégoire Paris <[email protected]>
Use "an"

SQL starts with a vowel sound ("ess")

461e6895f92f86de0d09230fccc195b50ac45f96 authored over 4 years ago by Grégoire Paris <[email protected]>
Improve formatting

a03b2ac618c9f1e3525528ec8dc80020b842098a authored over 4 years ago by Grégoire Paris <[email protected]>
Quote original author

Fixes #14

7853225acae2d54023a7858f0fb26e188d074955 authored over 4 years ago by Grégoire Paris <[email protected]>
Remove trailing whitespace

9ee463ef60b97afef3c513c4bb338287dedc9dd9 authored over 4 years ago by Grégoire Paris <[email protected]>
Use alternate syntax for headings

That one allows not to have to make sure the underline has as many
characters as the title above...

b6bb035fb8222b3aec748792e4803fb5b9780128 authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #13 from greg0ire/fix-url

Use the Doctrine fork repo url as a homepage

3ce2f6f0e126de08e7e94550418f0e5b7e245002 authored over 4 years ago by Asmir Mustafic <[email protected]>
Merge pull request #12 from doctrine/stof-patch-1

Fix the phpunit coverage whitelist

add07949c5b82a0e2e9b29e054bdb69e28d3192f authored over 4 years ago by Grégoire Paris <[email protected]>
Use the Doctrine fork repo url as a homepage

The original repo will just show outdated docs.

9ccce7cd1bfe0d9032fcf9c86e90a159e4fe58cd authored over 4 years ago by Grégoire Paris <[email protected]>
Fix the phpunit coverage whitelist

The source directory was renamed

347bd07b72f4871c874b0805e1e5e4079ac41119 authored over 4 years ago by Christophe Coevoet <[email protected]>
Merge pull request #9 from greg0ire/sa

Statically analyse code with PHPStan

657a79ace4ec0562dbca7dfa337a8fd19347d324 authored over 4 years ago by Grégoire Paris <[email protected]>
Statically analyse code with PHPStan

05dbc6a095fbaa9d7ff0e3f8bd04af492a6dd869 authored over 4 years ago by Grégoire Paris <[email protected]>
Merge pull request #4 from greg0ire/standards

Standards

1b27af256e2f813c39a5fe27650f333b39e053b4 authored over 4 years ago by Grégoire Paris <[email protected]>
Comply with coding standard

5deb7ac461568fb7d4f1a157811972b8c6d510cb authored almost 5 years ago by Grégoire Paris <[email protected]>
Merge pull request #8 from greg0ire/close-api

Close api

8de34cfc06073b97295ada516363aad138c47628 authored almost 5 years ago by Grégoire Paris <[email protected]>
Remove trailing whitespace

39decd158d56970e2d002c72f72aa99b55b90950 authored almost 5 years ago by Grégoire Paris <[email protected]>
Replace tabs with spaces

e1b9890611cfde61183ea43ab61e4cff3b47bddb authored almost 5 years ago by Grégoire Paris <[email protected]>
Close test for extension

68f961b352f08683873a079768bf84e332a4862a authored almost 5 years ago by Grégoire Paris <[email protected]>
Put tests in their own namespace

22045a4460c744a6df7d2b7429344c8b86c3e36f authored almost 5 years ago by Grégoire Paris <[email protected]>
Close formatter for extension

f9e9c1b18b1d186c6747188068effc4e23e4830d authored almost 5 years ago by Grégoire Paris <[email protected]>
Merge pull request #7 from greg0ire/proofread-readme

Use new autoloading mechanism in examples

087f60c821512793b6ebcce2d66cc3ece757084a authored almost 5 years ago by Grégoire Paris <[email protected]>
Use new autoloading mechanism in examples

0b8eab576e8726d3c15e6e8a8bc620dab6914c4d authored almost 5 years ago by Grégoire Paris <[email protected]>
Merge pull request #6 from greg0ire/remove-branch-alias

Alias master to 1.x

ebbf40a76db849ad19bf5bb8559df9603e3c5d7b authored almost 5 years ago by Grégoire Paris <[email protected]>
Alias master to 1.x

master is the future 1.0.0

dd007c93e97ffba679c83fe104edcc7dd52cd348 authored almost 5 years ago by Grégoire Paris <[email protected]>
Merge pull request #5 from greg0ire/declare-separate-package

Declare our own, separate package

9a9420f389bdb04874a1453c1b43c7924bbe20a4 authored almost 5 years ago by Grégoire Paris <[email protected]>
Declare our own, separate package

195ae4f6a5480834b6cc9a75038138809c49510b authored almost 5 years ago by Grégoire Paris <[email protected]>
Merge pull request #3 from greg0ire/namespacing

Namespacing

6182e0996483736734a95b6ceb143ad667d1bda3 authored almost 5 years ago by Grégoire Paris <[email protected]>
Ignore PHPUnit's result cache

dd5fe2c8b7400b7e2cd03fa72f988bce1e829085 authored almost 5 years ago by Grégoire Paris <[email protected]>
Use src instead of lib

c813f4ff1b40c4dd08ebb02593d56d280eeacc89 authored almost 5 years ago by Grégoire Paris <[email protected]>
Move to a namespace

It is a best practice that avoids collisions with other packages.

123a106bd13aecfa5c72ea3d6fd13735dec630f7 authored almost 5 years ago by Grégoire Paris <[email protected]>
Add CI pipeline

64071069e97764e6a6e881c1dca24b49532ed17d authored almost 5 years ago by Grégoire Paris <[email protected]>
Upgrade to PHPUnit 8

ec353eaa279124b00b68c1c394990278a32417ce authored almost 5 years ago by Grégoire Paris <[email protected]>
Use stable versions of packages

a79670a6e279e2feaa2907dfe59eb432acd37233 authored almost 5 years ago by Grégoire Paris <[email protected]>
Merge pull request #1 from greg0ire/lightweight-lib-has-lightweight-archive

Export only the code, the license and the README

6f039428b6cb526b3e1fbea91fb5d957406488f6 authored almost 5 years ago by Grégoire Paris <[email protected]>
Export only the code, the license and the README

The rest is not needed in production.

c7378bcfb6c8599122802086dd580458b2546fa1 authored almost 5 years ago by Grégoire Paris <[email protected]>
Merge pull request #79 from stof/patch-3

Switch Travis to the stable HHVM version

7ef9b85961956aa572413693e1194b60f50ab9ab authored over 9 years ago by Jeremy Dorn <[email protected]>
Switch Travis to the stable HHVM version

035b96982049fa13efc60286624288acbdc3e053 authored over 9 years ago by Christophe Coevoet <[email protected]>
Add support for named parameters (e.g. ":name"), treats them the same as variables (e.g. "@name"). Fixes #74

ffecdad6ca3f6235f941e960bc9d290a20054586 authored over 9 years ago by Jeremy Dorn <[email protected]>
Merge pull request #65 from glensc/cli-bin2

Add color detection to bin/sql-formatter

ff0515fa8ce7d97d6cba279e8ed9d51d3eaa0316 authored over 10 years ago by Jeremy Dorn <[email protected]>
Merge pull request #66 from Nyholm/patch-1

Added HHVM to travis.yml

017b6628e7a3a96cfd9f96ec1531b974d1dea2b7 authored over 10 years ago by Jeremy Dorn <[email protected]>
Added HHVM to travis.yml

327c184c5856bfcfabe0ee90f7a8187f75207078 authored over 10 years ago by Tobias Nyholm <[email protected]>
update paths in non-cli help

2a30f6a8a62e7621dd1a1a351cc3cfbb8dbd1f76 authored over 10 years ago by Elan Ruusamäe <[email protected]>
autodetect colors

so we can redirect output to file and it will not be colored while
outputing to terminal it woul...

069e49d5da441ad32a49f3546f69bc412c87481d authored over 10 years ago by Elan Ruusamäe <[email protected]>
Merge pull request #46 from rajibahmed/master

Add bin/sql-formatter console script

ebeb18ffd93454572a829bb43c5ca8c3318c3d63 authored over 10 years ago by Jeremy Dorn <[email protected]>
Add proper formatting for square bracket quoted strings (SQL Server style).

For #63

ffd2441bc082ab5aaf07be5676bfb1eadaeef77d authored over 10 years ago by Jeremy <[email protected]>
Merge pull request #63 from drakej/master

Added EXEC as a reserved word, add square brackets as boundary characters.

9fcbe73681954170de7425dbcb24c83ecdd925aa authored over 10 years ago by Jeremy Dorn <[email protected]>
Fixed formatting

f59daa21e2c9f5794044543217697a28967b31e8 authored over 10 years ago by Jonathan Drake <[email protected]>
Added brackets as token boundaries

85bd9434a3db5ac38f1e89ed94a0b52305d14767 authored over 10 years ago by Jonathan Drake <[email protected]>
Added EXEC as a reserved word

08db51b6cd5639fa311f63ff7ebd71130fd58388 authored over 10 years ago by Jonathan Drake <[email protected]>
Merge pull request #61 from h4cc/patch-1

Added PHP 5.5 and 5.6 to travis.

826d01c59bb972df6769f693a8b7d6ff13347557 authored almost 11 years ago by Jeremy Dorn <[email protected]>
Added PHP 5.5 and 5.6 to travis.

c52c2be4713cad356442ae189b71ff5e8ec2bf4f authored almost 11 years ago by Julius Beckmann <[email protected]>
Merge pull request #58 from domnikl/master

Prevent warnings in highlightToken with binary data

38058f6fc48b05bb7a18946e773f9916942dfecd authored almost 11 years ago by Jeremy Dorn <[email protected]>
cleaner solution to highlight binary data

and added new test highlightBinaryData to test for this case

dbeecfdfbbe03c84d73e6f48aafc30a031470279 authored almost 11 years ago by Dominik Liebler <[email protected]>
Prevent warnings in highlightToken

5e3938b7125cd677d8e4e0a4ac2630524bb43df1 authored almost 11 years ago by Dominik Liebler <[email protected]>
Fix PHP notice for queries that start with a boundary character.

This was caused by a missing isset check. Fixes #57

64990d96e0959dff8e059dfcdc1af130728d92bc authored almost 11 years ago by Jeremy Dorn <[email protected]>
Fix formatting of negative numbers (fixes #49).

Improve phpunit code coverage.

8859d664737492d313c34796731b35eca851b362 authored about 11 years ago by Jeremy Dorn <[email protected]>
Bump minor version number.

96effdcddc70f199b076b315b1ff2bb9dd8dd88b authored about 11 years ago by Jeremy Dorn <[email protected]>
Merge branch 'master' of https://github.com/augusteiner/sql-formatter into augusteiner-master

Conflicts:
lib/SqlFormatter.php

235aae3fda323f31ef180d4bf3825f55b1914132 authored about 11 years ago by Jeremy Dorn <[email protected]>
Corrected class name pass for closures.

d75c96309518610ebaab38f57b032d234dc90111 authored about 11 years ago by José Augusto de Araújo Nascimento <[email protected]>
Optimized speed of initializing reserved words list.

62b4cc0fa103bb8f9d0cc2a9a44ad65d76c6d1cc authored about 11 years ago by Michal Brašna <[email protected]>
Increase PhpUnit code coverage.

Fix undefined variable $clause_limit notice.
A couple PSR fixes.
Bump version number.

51a660e97b59f91b814eeee6e0a38e3cd726dd30 authored over 11 years ago by Jeremy Dorn <[email protected]>
Update pull #52 - // Checks if we are out of the limit clause

c3691fe2e20326e2022ec339ca1942b84cd38b77 authored over 11 years ago by Lairson Alencar <[email protected]>
Update pull #52

504efb3558d503d9a8740ef9152410115b8d1def authored over 11 years ago by Lairson Alencar <[email protected]>
#34 - Added formatting to SQL LIMIT

The Formatting was added as suggested by leeoniya (issue #34).

7f862d76ef8105ae8e25e1f04a49d00e06d7fd26 authored over 11 years ago by Lairson Alencar <[email protected]>
A few PSR code fixes.

7045fde3163d5a4ea6ec32e409a7dcf00779e204 authored over 11 years ago by Jeremy Dorn <[email protected]>
Add highlighting support for binary/hex numbers and user-defined variables.

Add ":" to the boundary list (fixes ":=" assignment operator).
Standardize whitespace around "if"...

f258a98eb42c5566da277acf8e97c1e918e04771 authored over 11 years ago by Jeremy Dorn <[email protected]>
Made compress remove extra whitespace from reserved words. Fixes #51

```sql
LEFT
OUTER
JOIN
```

becomes

```sql
LEFT OUTER JOIN
```

0b30579a48dc7deaa3905ea7d6a457998e33e5a8 authored over 11 years ago by Jeremy Dorn <[email protected]>
Bump version number

bccca26bfe75b30aba71c2f734e9f9dd854a85f6 authored over 11 years ago by Jeremy Dorn <[email protected]>
Formatting and naming changes in order to merge @adityagoyal pull request.

e1aa999f64b222bdd990be6408f832c616ac57cf authored over 11 years ago by Jeremy Dorn <[email protected]>
Merge branch 'master' of https://github.com/adityagoyal/sql-formatter into adityagoyal-master

7dc6794a53571d5ccbe10716d20e2e3a7101c00c authored over 11 years ago by Jeremy Dorn <[email protected]>
removeComments

f0bbbe193836e760c1baa581578abe19e48f2d54 authored over 11 years ago by adityagoyal <[email protected]>
Revert "test case"

This reverts commit 3f39d54f21236e9afdf0e53f759c430d0fae9365.

2b09b47a83dc2d8ce2248e7e4926e7adfd4f0b85 authored over 11 years ago by adityagoyal <[email protected]>
test case

3f39d54f21236e9afdf0e53f759c430d0fae9365 authored over 11 years ago by adityagoyal <[email protected]>
test case

12807638751d5c094f8b7faded70c39daf31b9ee authored over 11 years ago by adityagoyal <[email protected]>
removed remove_blank_line method as suggested and calling format method to format after removing comments.

removed remove_blank_line method as suggested and calling format method
to format after removing...

b0e95c9fc8e1aa6caeafe3f520cf8e1571c6a15e authored over 11 years ago by adityagoyal <[email protected]>
highlight mysql functions.

Added methods to highlight mysql functions.Removed now() ,count from
reserved keyword.They are ...

ba8b1a3f8d00d067614e9e237f680ede9a7e7393 authored over 11 years ago by adityagoyal <[email protected]>
Merge branch 'master' of https://github.com/adityagoyal/sql-formatter into adityagoyal-master

a8546539505e6dc388303ee89dcde7c84c338dd4 authored over 11 years ago by Jeremy Dorn <[email protected]>
Added LEFT OUTER JOIN, RIGHT OUTER JOIN in newline reserved keys.Removed XOR.

Added LEFT OUTER JOIN, RIGHT OUTER JOIN in newline reserved
keys.Removed XOR.
Added LEFT OUTER ...

38a4639611d53832d63c55f6f69a6f1785cec53c authored over 11 years ago by adityagoyal <[email protected]>
removed XOR as it was there in reserved newline.Added LEFT OUTER JOIN and RIGHT OUTER JOIN in newline.

removed XOR as it was there in reserved newline.Added LEFT OUTER JOIN
and RIGHT OUTER JOIN in ne...

6974c23faa4bbac4c85e5c8a14760b1d99182e7e authored over 11 years ago by adityagoyal <[email protected]>