├── .editorconfig
├── .github
└── workflows
│ ├── .editorconfig
│ ├── release.yml
│ └── static.yml
├── .gitignore
├── .php-cs-fixer.dist.php
├── .travis.yml
├── CHANGELOG.md
├── LICENSE
├── Makefile
├── README.md
├── bin
└── roger-q.php
├── box.json.dist
├── composer.json
├── composer.lock
├── phpstan.neon
└── src
└── Command
├── Dedupe.php
├── Dump.php
└── Publish.php
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | end_of_line = LF
5 | insert_final_newline = true
6 | trim_trailing_whitespace = true
7 | charset = utf-8
8 |
9 | [*.{php,json}]
10 | indent_style = space
11 | indent_size = 4
12 |
--------------------------------------------------------------------------------
/.github/workflows/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.yml]
2 | indent_size = 2
3 |
--------------------------------------------------------------------------------
/.github/workflows/release.yml:
--------------------------------------------------------------------------------
1 | name: Release
2 |
3 | permissions:
4 | contents: write
5 |
6 | on:
7 | push:
8 | tags:
9 | - '*'
10 |
11 | jobs:
12 | latest:
13 | name: Release
14 | runs-on: ubuntu-latest
15 |
16 | steps:
17 | - name: Checkout code
18 | uses: actions/checkout@v3
19 |
20 | - name: Setup PHP
21 | uses: shivammathur/setup-php@v2
22 | with:
23 | php-version: '7.4'
24 | tools: composer:v2
25 | coverage: none
26 |
27 | - name: Install PHP dependencies
28 | run: composer update --prefer-dist --no-interaction --no-progress
29 |
30 | - name: Set version
31 | run: sed -i "s/setVersion('latest-develop')/setVersion('$GITHUB_REF_NAME')/g" bin/roger-q.php
32 |
33 | - name: Generate phar
34 | run: make dist
35 |
36 | - name: Release
37 | uses: softprops/action-gh-release@v1
38 | with:
39 | files: dist/roger-q.phar
40 |
--------------------------------------------------------------------------------
/.github/workflows/static.yml:
--------------------------------------------------------------------------------
1 | name: Static analysis
2 |
3 | on:
4 | push:
5 | branches:
6 | - '*.x'
7 | pull_request:
8 |
9 | jobs:
10 | phpstan:
11 | name: PHPStan
12 | runs-on: ubuntu-latest
13 |
14 | steps:
15 | - name: Checkout code
16 | uses: actions/checkout@v2
17 |
18 | - name: PHPStan
19 | uses: docker://oskarstark/phpstan-ga
20 | with:
21 | args: analyze --no-progress
22 |
23 | php-cs-fixer:
24 | name: PHP-CS-Fixer
25 | runs-on: ubuntu-latest
26 |
27 | steps:
28 | - name: Checkout code
29 | uses: actions/checkout@v2
30 |
31 | - name: PHP-CS-Fixer
32 | uses: docker://oskarstark/php-cs-fixer-ga
33 | with:
34 | args: --dry-run
35 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor
2 | /tools
3 | /dist
4 |
5 | /.php-cs-fixer.cache
6 | /.php-cs-fixer.php
7 |
--------------------------------------------------------------------------------
/.php-cs-fixer.dist.php:
--------------------------------------------------------------------------------
1 | in(__DIR__.'/src')
7 | ->in(__DIR__.'/bin')
8 | ->append([__FILE__])
9 | ;
10 |
11 | return (new PhpCsFixer\Config())
12 | ->setRiskyAllowed(true)
13 | ->setRules([
14 | '@PSR2' => true,
15 | '@PSR12' => true,
16 | '@PhpCsFixer' => true,
17 | '@Symfony' => true,
18 | '@Symfony:risky' => true,
19 | ])
20 | ->setFinder($finder)
21 | ;
22 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | php:
4 | - '7.1'
5 |
6 | cache:
7 | directories:
8 | - vendor/
9 | - tools/
10 |
11 | stages:
12 | - test
13 | - name: deploy
14 | if: tag IS present
15 |
16 | jobs:
17 | include:
18 | - stage: test
19 | script: make phpcs
20 | - stage: deploy
21 | script: skip
22 | before_deploy: make dist
23 | deploy:
24 | provider: releases
25 | api_key:
26 | secure: $GITHUB_SECURE_TOKEN
27 | file: dist/roger-q.phar
28 | skip_cleanup: true
29 | on:
30 | tags: true
31 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file.
4 |
5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7 |
8 | ## [Unreleased]
9 | ### Added
10 | ### Changed
11 | ### Deprecated
12 | ### Removed
13 | ### Fixed
14 | ### Security
15 |
16 | ## 0.1.0
17 |
18 | - Updated depencencies
19 |
20 | ## 0.0.2
21 | ### Added
22 | - Support de-duplication on multiple payload fields [PR#8](https://github.com/liip/roger-q/pull/8) by [@thePanz](https://github.com/thePanz)
23 | ### Changed
24 | - Using pnz/json-exception for JSON decode/encode exception handling
25 | ### Fixed
26 | - Use correct default port and catch port in hostname [PR#6](https://github.com/liip/roger-q/pull/6) by [@dbu](https://github.com/dbu)
27 | - Stopped using RequestOptions::SINK because it caused stream seek errors on some systems [PR#19](https://github.com/liip/roger-q/pull/19) by [@dbu](https://github.com/dbu)
28 |
29 | ## 0.0.1
30 | ### Fixed
31 | - Fixed TravisCI deployment process and phar releasing
32 |
33 | ## 0.0.1-beta.1
34 | ### Added
35 | - Added TravisCI integration
36 | - Added documentation
37 | - Added commands: dump, dedupe, publish
38 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | SRC_DIR="src/"
2 | SRC_FILES= $(shell find $(SRC_DIR) -name "*.php")
3 |
4 | dist/roger-q.phar: box.json.dist tools/box.phar bin/roger-q.php $(SRC_FILES) composer.lock
5 | composer install --optimize-autoloader --no-dev --no-suggest --quiet
6 | ./tools/box.phar compile --quiet
7 |
8 | tools/box.phar:
9 | wget --directory-prefix=tools --quiet https://github.com/humbug/box/releases/download/3.16.0/box.phar
10 | chmod +x tools/box.phar
11 |
12 | tools/php-cs-fixer.phar:
13 | wget https://cs.symfony.com/download/php-cs-fixer-v3.phar -O tools/php-cs-fixer.phar
14 | chmod +x tools/php-cs-fixer.phar
15 |
16 | tools/phpstan.phar:
17 | wget --directory-prefix=tools --quiet https://github.com/phpstan/phpstan/releases/download/1.9.17/phpstan.phar
18 | chmod +x tools/phpstan.phar
19 |
20 | phpcs: tools/php-cs-fixer.phar tools/phpstan.phar
21 | composer install --optimize-autoloader --no-dev --no-suggest --quiet
22 | tools/php-cs-fixer.phar fix --dry-run --stop-on-violation -v
23 | tools/phpstan.phar analyze
24 |
25 | fix-cs: tools/php-cs-fixer.phar
26 | tools/php-cs-fixer.phar fix -v
27 |
28 | dist: dist/roger-q.phar
29 |
30 | clean:
31 | rm tools/ dist/ vendor/ -fr
32 |
33 | .PHONY: clean phpcs fix-cs
34 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Roger-Q
2 |
3 | [](https://gitreleases.dev/gh/liip/roger-q/latest/roger-q.phar)
4 | [](LICENSE)
5 | [](https://travis-ci.org/liip/roger-q)
6 |
7 | Roger-Q is a tool to handle RabbitMQ queues, and it includes commands to dump, dedupe and publish messages.
8 |
9 | ## Installation
10 |
11 | Run this to download the latest release from Github, move it into your bin folder, and make it executable:
12 | ```bash
13 | curl -L https://github.com/liip/roger-q/releases/latest/download/roger-q.phar > /usr/local/bin/roger-q
14 | chmod a+x /usr/local/bin/roger-q
15 | ```
16 |
17 | ## Commands
18 |
19 | To get the list of all commands, run `roger-q.phar list`
20 |
21 | To see all options of a command, run `roger-q.phar {commmand} --help`.
22 |
23 | Except for dedupe, the commands require the `--host` option to know where to find RabbitMQ, and `--username`,
24 | `--password` and `--vhost`. The default is localhost on port 5672 with vhost `/` and credentials guest/guest.
25 | (Hint: Pull request to support a configuration file for these parameters would be welcome.)
26 |
27 | ### Dump (`dump`)
28 |
29 | Dumps the messages from the given queue to the standard output. The command uses the RabbitMQ management API, rather
30 | than the regular protocol, to read and write messages, which is much faster for queues with many messages. This means
31 | that you need to install the [Management Plugin](https://www.rabbitmq.com/management.html) in your RabbitMQ. If you do
32 | not use the default port 15672, you need to specify the `--port` parameter.
33 |
34 | The messages are dumped as JSON as in the following example (the example has been pretty-formatted):
35 | ```json5
36 | [
37 | {
38 | "payload_bytes": 129,
39 | "redelivered": false,
40 | "exchange": "my-exchange-name",
41 | "routing_key": "routing-key",
42 | "message_count": 3891,
43 | "properties": {
44 | // Message headers here
45 | },
46 | "payload": "The message payload",
47 | "payload_encoding": "string"
48 | },
49 | // Next messages here...
50 | ]
51 | ```
52 |
53 | Example usage:
54 |
55 | ```bash
56 | # roger-q.phar dump queue-name
57 | ```
58 |
59 | ### Dedupe (`dedupe`)
60 |
61 | In the following example the messages from `messages.txt` file will be de-duplicated by checking the uniqueness of the
62 | given field.
63 | The resulting messages are outputted to the standard output.
64 |
65 | ```bash
66 | # cat messages.txt | roger-q.phar dedupe id-field
67 | ```
68 |
69 | ### Publish (`publish`)
70 |
71 | Reads messages from the standard input and publishes them to the specified *queue*. Usually, you would send messages to
72 | an exchange rather than a queue directly, but the use-case of this tool is to clean up queues. If you specify an
73 | exchange instead of a queue, the messages will be reported as published but not arrive anywhere.
74 |
75 | The following example will publish the messages from the `messages.txt` file into the `queue-name` queue.
76 | The queue is additionally purged before starting the publishing operation.
77 |
78 | ```bash
79 | # cat messages.txt | roger-q.phar publish queue-name --purge
80 | ```
81 |
82 | ## PHAR building
83 |
84 | [Box](https://github.com/humbug/box) is used to build a precompiled PHAR file of the application.
85 |
86 | Run `make dist` to:
87 |
88 | - download the box library in `tools/` (if not present)
89 | - create the PHAR executable in `dist/roger-q.phar`
90 |
91 | ## Development
92 |
93 | To run the PHP coding-styles checks (`php-cs-fixer` and `phpstan`) run the `make phpcs` command to:
94 |
95 | - download the `php-cs-fixer` tool in `tools/` (if not present)
96 | - download the `phpstan` tool in `tools/` (if not present)
97 | - Run `php-cs-fixer` on the source code
98 | - Run `phpstan` on the source code
99 |
--------------------------------------------------------------------------------
/bin/roger-q.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | setName('roger-q rabbitmq tool');
15 | $application->setVersion('latest-develop');
16 |
17 | $application->add(new Dump());
18 | $application->add(new Dedupe());
19 | $application->add(new Publish());
20 |
21 | $application->run();
22 |
--------------------------------------------------------------------------------
/box.json.dist:
--------------------------------------------------------------------------------
1 | {
2 | "output": "dist/roger-q.phar",
3 | "chmod": "0700",
4 | "compression": "GZ"
5 | }
6 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "liip/roger-q",
3 | "type": "project",
4 | "description": "Tool to work with RabbitMQ queues, including commands to dump, deduplicate and publish messages",
5 | "keywords": ["rabbitmq", "queue"],
6 | "license": "GPL-3.0",
7 | "require": {
8 | "php": "^7.4 || ^8.0",
9 | "enqueue/amqp-bunny": "^0.10.9",
10 | "guzzlehttp/guzzle": "^6.5.8",
11 | "pnz/json-exception": "^1.0.0",
12 | "symfony/console": "^5.4"
13 | },
14 | "autoload": {
15 | "psr-4": {
16 | "App\\": "src/"
17 | }
18 | },
19 | "config": {
20 | "platform": {
21 | "php": "7.4"
22 | },
23 | "sort-packages": true
24 | },
25 | "bin": [
26 | "bin/roger-q.php"
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
1 | {
2 | "_readme": [
3 | "This file locks the dependencies of your project to a known state",
4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 | "This file is @generated automatically"
6 | ],
7 | "content-hash": "939650738f5dc4481e3638f5cce75809",
8 | "packages": [
9 | {
10 | "name": "bunny/bunny",
11 | "version": "v0.5.4",
12 | "source": {
13 | "type": "git",
14 | "url": "https://github.com/jakubkulhan/bunny.git",
15 | "reference": "1f6c8f2163efaf9455c3390435424d93649f1d83"
16 | },
17 | "dist": {
18 | "type": "zip",
19 | "url": "https://api.github.com/repos/jakubkulhan/bunny/zipball/1f6c8f2163efaf9455c3390435424d93649f1d83",
20 | "reference": "1f6c8f2163efaf9455c3390435424d93649f1d83",
21 | "shasum": ""
22 | },
23 | "require": {
24 | "php": "^7.1 || ^8.0",
25 | "react/event-loop": "^1.0 || ^0.5 || ^0.4",
26 | "react/promise": "~2.2"
27 | },
28 | "require-dev": {
29 | "ext-pcntl": "*",
30 | "phpunit/phpunit": "^9.5 || ^7.5.20",
31 | "symfony/process": "^6.1 || ^4.4"
32 | },
33 | "suggest": {
34 | "ext-pcntl": "For using synchronous AMQP/RabbitMQ client"
35 | },
36 | "type": "library",
37 | "autoload": {
38 | "psr-4": {
39 | "Bunny\\": "src/Bunny/"
40 | }
41 | },
42 | "notification-url": "https://packagist.org/downloads/",
43 | "license": [
44 | "MIT"
45 | ],
46 | "authors": [
47 | {
48 | "name": "Jakub Kulhan",
49 | "email": "jakub.kulhan@gmail.com"
50 | }
51 | ],
52 | "description": "Performant pure-PHP AMQP (RabbitMQ) sync/async (ReactPHP) library",
53 | "keywords": [
54 | "AMQP",
55 | "bunny",
56 | "exchange",
57 | "message",
58 | "messaging",
59 | "queue",
60 | "queueing",
61 | "rabbit",
62 | "rabbitmq",
63 | "react",
64 | "react-php",
65 | "reactphp"
66 | ],
67 | "support": {
68 | "issues": "https://github.com/jakubkulhan/bunny/issues",
69 | "source": "https://github.com/jakubkulhan/bunny/tree/v0.5.4"
70 | },
71 | "time": "2022-12-15T20:23:51+00:00"
72 | },
73 | {
74 | "name": "enqueue/amqp-bunny",
75 | "version": "0.10.18",
76 | "source": {
77 | "type": "git",
78 | "url": "https://github.com/php-enqueue/amqp-bunny.git",
79 | "reference": "e6c04f44b1a3069b1e0cd3a4512b017c23dce285"
80 | },
81 | "dist": {
82 | "type": "zip",
83 | "url": "https://api.github.com/repos/php-enqueue/amqp-bunny/zipball/e6c04f44b1a3069b1e0cd3a4512b017c23dce285",
84 | "reference": "e6c04f44b1a3069b1e0cd3a4512b017c23dce285",
85 | "shasum": ""
86 | },
87 | "require": {
88 | "bunny/bunny": "^0.4|^0.5",
89 | "enqueue/amqp-tools": "^0.10",
90 | "php": "^7.3|^8.0",
91 | "queue-interop/amqp-interop": "^0.8.2",
92 | "queue-interop/queue-interop": "^0.8"
93 | },
94 | "require-dev": {
95 | "enqueue/null": "0.10.x-dev",
96 | "enqueue/test": "0.10.x-dev",
97 | "phpunit/phpunit": "^9.5",
98 | "queue-interop/queue-spec": "^0.6.2"
99 | },
100 | "type": "library",
101 | "extra": {
102 | "branch-alias": {
103 | "dev-master": "0.10.x-dev"
104 | }
105 | },
106 | "autoload": {
107 | "psr-4": {
108 | "Enqueue\\AmqpBunny\\": ""
109 | },
110 | "exclude-from-classmap": [
111 | "/Tests/"
112 | ]
113 | },
114 | "notification-url": "https://packagist.org/downloads/",
115 | "license": [
116 | "MIT"
117 | ],
118 | "description": "Message Queue Amqp Transport",
119 | "homepage": "https://enqueue.forma-pro.com/",
120 | "keywords": [
121 | "AMQP",
122 | "bunny",
123 | "messaging",
124 | "queue"
125 | ],
126 | "support": {
127 | "docs": "https://github.com/php-enqueue/enqueue-dev/blob/master/docs/index.md",
128 | "email": "opensource@forma-pro.com",
129 | "forum": "https://gitter.im/php-enqueue/Lobby",
130 | "issues": "https://github.com/php-enqueue/enqueue-dev/issues",
131 | "source": "https://github.com/php-enqueue/enqueue-dev"
132 | },
133 | "time": "2023-02-26T03:18:02+00:00"
134 | },
135 | {
136 | "name": "enqueue/amqp-tools",
137 | "version": "0.10.18",
138 | "source": {
139 | "type": "git",
140 | "url": "https://github.com/php-enqueue/amqp-tools.git",
141 | "reference": "1a68bcae51fcbe6e55cac42d455e6064513a5111"
142 | },
143 | "dist": {
144 | "type": "zip",
145 | "url": "https://api.github.com/repos/php-enqueue/amqp-tools/zipball/1a68bcae51fcbe6e55cac42d455e6064513a5111",
146 | "reference": "1a68bcae51fcbe6e55cac42d455e6064513a5111",
147 | "shasum": ""
148 | },
149 | "require": {
150 | "enqueue/dsn": "^0.10",
151 | "php": "^7.3|^8.0",
152 | "queue-interop/amqp-interop": "^0.8.2",
153 | "queue-interop/queue-interop": "^0.8"
154 | },
155 | "require-dev": {
156 | "enqueue/null": "0.10.x-dev",
157 | "enqueue/test": "0.10.x-dev",
158 | "phpunit/phpunit": "^9.5"
159 | },
160 | "type": "library",
161 | "extra": {
162 | "branch-alias": {
163 | "dev-master": "0.10.x-dev"
164 | }
165 | },
166 | "autoload": {
167 | "psr-4": {
168 | "Enqueue\\AmqpTools\\": ""
169 | },
170 | "exclude-from-classmap": [
171 | "/Tests/"
172 | ]
173 | },
174 | "notification-url": "https://packagist.org/downloads/",
175 | "license": [
176 | "MIT"
177 | ],
178 | "description": "Message Queue Amqp Tools",
179 | "homepage": "https://enqueue.forma-pro.com/",
180 | "keywords": [
181 | "AMQP",
182 | "messaging",
183 | "queue"
184 | ],
185 | "support": {
186 | "docs": "https://github.com/php-enqueue/enqueue-dev/blob/master/docs/index.md",
187 | "email": "opensource@forma-pro.com",
188 | "forum": "https://gitter.im/php-enqueue/Lobby",
189 | "issues": "https://github.com/php-enqueue/enqueue-dev/issues",
190 | "source": "https://github.com/php-enqueue/enqueue-dev"
191 | },
192 | "time": "2023-02-26T03:18:02+00:00"
193 | },
194 | {
195 | "name": "enqueue/dsn",
196 | "version": "0.10.8",
197 | "source": {
198 | "type": "git",
199 | "url": "https://github.com/php-enqueue/dsn.git",
200 | "reference": "729fabaae6b24189d14598033b174bd72e825e9a"
201 | },
202 | "dist": {
203 | "type": "zip",
204 | "url": "https://api.github.com/repos/php-enqueue/dsn/zipball/729fabaae6b24189d14598033b174bd72e825e9a",
205 | "reference": "729fabaae6b24189d14598033b174bd72e825e9a",
206 | "shasum": ""
207 | },
208 | "require": {
209 | "php": "^7.3|^8.0"
210 | },
211 | "require-dev": {
212 | "phpunit/phpunit": "^9.5"
213 | },
214 | "type": "library",
215 | "extra": {
216 | "branch-alias": {
217 | "dev-master": "0.10.x-dev"
218 | }
219 | },
220 | "autoload": {
221 | "psr-4": {
222 | "Enqueue\\Dsn\\": ""
223 | },
224 | "exclude-from-classmap": [
225 | "/Tests/"
226 | ]
227 | },
228 | "notification-url": "https://packagist.org/downloads/",
229 | "license": [
230 | "MIT"
231 | ],
232 | "description": "Parse DSN",
233 | "homepage": "https://enqueue.forma-pro.com/",
234 | "keywords": [
235 | "dsn",
236 | "parse"
237 | ],
238 | "support": {
239 | "docs": "https://github.com/php-enqueue/enqueue-dev/blob/master/docs/index.md",
240 | "email": "opensource@forma-pro.com",
241 | "forum": "https://gitter.im/php-enqueue/Lobby",
242 | "issues": "https://github.com/php-enqueue/enqueue-dev/issues",
243 | "source": "https://github.com/php-enqueue/enqueue-dev"
244 | },
245 | "time": "2021-02-09T12:01:28+00:00"
246 | },
247 | {
248 | "name": "guzzlehttp/guzzle",
249 | "version": "6.5.8",
250 | "source": {
251 | "type": "git",
252 | "url": "https://github.com/guzzle/guzzle.git",
253 | "reference": "a52f0440530b54fa079ce76e8c5d196a42cad981"
254 | },
255 | "dist": {
256 | "type": "zip",
257 | "url": "https://api.github.com/repos/guzzle/guzzle/zipball/a52f0440530b54fa079ce76e8c5d196a42cad981",
258 | "reference": "a52f0440530b54fa079ce76e8c5d196a42cad981",
259 | "shasum": ""
260 | },
261 | "require": {
262 | "ext-json": "*",
263 | "guzzlehttp/promises": "^1.0",
264 | "guzzlehttp/psr7": "^1.9",
265 | "php": ">=5.5",
266 | "symfony/polyfill-intl-idn": "^1.17"
267 | },
268 | "require-dev": {
269 | "ext-curl": "*",
270 | "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
271 | "psr/log": "^1.1"
272 | },
273 | "suggest": {
274 | "psr/log": "Required for using the Log middleware"
275 | },
276 | "type": "library",
277 | "extra": {
278 | "branch-alias": {
279 | "dev-master": "6.5-dev"
280 | }
281 | },
282 | "autoload": {
283 | "files": [
284 | "src/functions_include.php"
285 | ],
286 | "psr-4": {
287 | "GuzzleHttp\\": "src/"
288 | }
289 | },
290 | "notification-url": "https://packagist.org/downloads/",
291 | "license": [
292 | "MIT"
293 | ],
294 | "authors": [
295 | {
296 | "name": "Graham Campbell",
297 | "email": "hello@gjcampbell.co.uk",
298 | "homepage": "https://github.com/GrahamCampbell"
299 | },
300 | {
301 | "name": "Michael Dowling",
302 | "email": "mtdowling@gmail.com",
303 | "homepage": "https://github.com/mtdowling"
304 | },
305 | {
306 | "name": "Jeremy Lindblom",
307 | "email": "jeremeamia@gmail.com",
308 | "homepage": "https://github.com/jeremeamia"
309 | },
310 | {
311 | "name": "George Mponos",
312 | "email": "gmponos@gmail.com",
313 | "homepage": "https://github.com/gmponos"
314 | },
315 | {
316 | "name": "Tobias Nyholm",
317 | "email": "tobias.nyholm@gmail.com",
318 | "homepage": "https://github.com/Nyholm"
319 | },
320 | {
321 | "name": "Márk Sági-Kazár",
322 | "email": "mark.sagikazar@gmail.com",
323 | "homepage": "https://github.com/sagikazarmark"
324 | },
325 | {
326 | "name": "Tobias Schultze",
327 | "email": "webmaster@tubo-world.de",
328 | "homepage": "https://github.com/Tobion"
329 | }
330 | ],
331 | "description": "Guzzle is a PHP HTTP client library",
332 | "homepage": "http://guzzlephp.org/",
333 | "keywords": [
334 | "client",
335 | "curl",
336 | "framework",
337 | "http",
338 | "http client",
339 | "rest",
340 | "web service"
341 | ],
342 | "support": {
343 | "issues": "https://github.com/guzzle/guzzle/issues",
344 | "source": "https://github.com/guzzle/guzzle/tree/6.5.8"
345 | },
346 | "funding": [
347 | {
348 | "url": "https://github.com/GrahamCampbell",
349 | "type": "github"
350 | },
351 | {
352 | "url": "https://github.com/Nyholm",
353 | "type": "github"
354 | },
355 | {
356 | "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
357 | "type": "tidelift"
358 | }
359 | ],
360 | "time": "2022-06-20T22:16:07+00:00"
361 | },
362 | {
363 | "name": "guzzlehttp/promises",
364 | "version": "1.5.2",
365 | "source": {
366 | "type": "git",
367 | "url": "https://github.com/guzzle/promises.git",
368 | "reference": "b94b2807d85443f9719887892882d0329d1e2598"
369 | },
370 | "dist": {
371 | "type": "zip",
372 | "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598",
373 | "reference": "b94b2807d85443f9719887892882d0329d1e2598",
374 | "shasum": ""
375 | },
376 | "require": {
377 | "php": ">=5.5"
378 | },
379 | "require-dev": {
380 | "symfony/phpunit-bridge": "^4.4 || ^5.1"
381 | },
382 | "type": "library",
383 | "extra": {
384 | "branch-alias": {
385 | "dev-master": "1.5-dev"
386 | }
387 | },
388 | "autoload": {
389 | "files": [
390 | "src/functions_include.php"
391 | ],
392 | "psr-4": {
393 | "GuzzleHttp\\Promise\\": "src/"
394 | }
395 | },
396 | "notification-url": "https://packagist.org/downloads/",
397 | "license": [
398 | "MIT"
399 | ],
400 | "authors": [
401 | {
402 | "name": "Graham Campbell",
403 | "email": "hello@gjcampbell.co.uk",
404 | "homepage": "https://github.com/GrahamCampbell"
405 | },
406 | {
407 | "name": "Michael Dowling",
408 | "email": "mtdowling@gmail.com",
409 | "homepage": "https://github.com/mtdowling"
410 | },
411 | {
412 | "name": "Tobias Nyholm",
413 | "email": "tobias.nyholm@gmail.com",
414 | "homepage": "https://github.com/Nyholm"
415 | },
416 | {
417 | "name": "Tobias Schultze",
418 | "email": "webmaster@tubo-world.de",
419 | "homepage": "https://github.com/Tobion"
420 | }
421 | ],
422 | "description": "Guzzle promises library",
423 | "keywords": [
424 | "promise"
425 | ],
426 | "support": {
427 | "issues": "https://github.com/guzzle/promises/issues",
428 | "source": "https://github.com/guzzle/promises/tree/1.5.2"
429 | },
430 | "funding": [
431 | {
432 | "url": "https://github.com/GrahamCampbell",
433 | "type": "github"
434 | },
435 | {
436 | "url": "https://github.com/Nyholm",
437 | "type": "github"
438 | },
439 | {
440 | "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
441 | "type": "tidelift"
442 | }
443 | ],
444 | "time": "2022-08-28T14:55:35+00:00"
445 | },
446 | {
447 | "name": "guzzlehttp/psr7",
448 | "version": "1.9.0",
449 | "source": {
450 | "type": "git",
451 | "url": "https://github.com/guzzle/psr7.git",
452 | "reference": "e98e3e6d4f86621a9b75f623996e6bbdeb4b9318"
453 | },
454 | "dist": {
455 | "type": "zip",
456 | "url": "https://api.github.com/repos/guzzle/psr7/zipball/e98e3e6d4f86621a9b75f623996e6bbdeb4b9318",
457 | "reference": "e98e3e6d4f86621a9b75f623996e6bbdeb4b9318",
458 | "shasum": ""
459 | },
460 | "require": {
461 | "php": ">=5.4.0",
462 | "psr/http-message": "~1.0",
463 | "ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
464 | },
465 | "provide": {
466 | "psr/http-message-implementation": "1.0"
467 | },
468 | "require-dev": {
469 | "ext-zlib": "*",
470 | "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
471 | },
472 | "suggest": {
473 | "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
474 | },
475 | "type": "library",
476 | "extra": {
477 | "branch-alias": {
478 | "dev-master": "1.9-dev"
479 | }
480 | },
481 | "autoload": {
482 | "files": [
483 | "src/functions_include.php"
484 | ],
485 | "psr-4": {
486 | "GuzzleHttp\\Psr7\\": "src/"
487 | }
488 | },
489 | "notification-url": "https://packagist.org/downloads/",
490 | "license": [
491 | "MIT"
492 | ],
493 | "authors": [
494 | {
495 | "name": "Graham Campbell",
496 | "email": "hello@gjcampbell.co.uk",
497 | "homepage": "https://github.com/GrahamCampbell"
498 | },
499 | {
500 | "name": "Michael Dowling",
501 | "email": "mtdowling@gmail.com",
502 | "homepage": "https://github.com/mtdowling"
503 | },
504 | {
505 | "name": "George Mponos",
506 | "email": "gmponos@gmail.com",
507 | "homepage": "https://github.com/gmponos"
508 | },
509 | {
510 | "name": "Tobias Nyholm",
511 | "email": "tobias.nyholm@gmail.com",
512 | "homepage": "https://github.com/Nyholm"
513 | },
514 | {
515 | "name": "Márk Sági-Kazár",
516 | "email": "mark.sagikazar@gmail.com",
517 | "homepage": "https://github.com/sagikazarmark"
518 | },
519 | {
520 | "name": "Tobias Schultze",
521 | "email": "webmaster@tubo-world.de",
522 | "homepage": "https://github.com/Tobion"
523 | }
524 | ],
525 | "description": "PSR-7 message implementation that also provides common utility methods",
526 | "keywords": [
527 | "http",
528 | "message",
529 | "psr-7",
530 | "request",
531 | "response",
532 | "stream",
533 | "uri",
534 | "url"
535 | ],
536 | "support": {
537 | "issues": "https://github.com/guzzle/psr7/issues",
538 | "source": "https://github.com/guzzle/psr7/tree/1.9.0"
539 | },
540 | "funding": [
541 | {
542 | "url": "https://github.com/GrahamCampbell",
543 | "type": "github"
544 | },
545 | {
546 | "url": "https://github.com/Nyholm",
547 | "type": "github"
548 | },
549 | {
550 | "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
551 | "type": "tidelift"
552 | }
553 | ],
554 | "time": "2022-06-20T21:43:03+00:00"
555 | },
556 | {
557 | "name": "pnz/json-exception",
558 | "version": "v1.0.1",
559 | "source": {
560 | "type": "git",
561 | "url": "https://github.com/thePanz/json-exception.git",
562 | "reference": "cce24ccdb59f6eecb6cb45dbdc8695808f6d64d7"
563 | },
564 | "dist": {
565 | "type": "zip",
566 | "url": "https://api.github.com/repos/thePanz/json-exception/zipball/cce24ccdb59f6eecb6cb45dbdc8695808f6d64d7",
567 | "reference": "cce24ccdb59f6eecb6cb45dbdc8695808f6d64d7",
568 | "shasum": ""
569 | },
570 | "require": {
571 | "ext-json": "*",
572 | "php": "^7.0 || ^8.0"
573 | },
574 | "type": "library",
575 | "extra": {
576 | "branch-alias": {
577 | "dev-master": "1.0-dev"
578 | }
579 | },
580 | "autoload": {
581 | "psr-4": {
582 | "Pnz\\JsonException\\": "src/"
583 | },
584 | "classmap": [
585 | "src/stubs"
586 | ]
587 | },
588 | "notification-url": "https://packagist.org/downloads/",
589 | "license": [
590 | "GPL-3.0"
591 | ],
592 | "description": "Json decode/encode library with exception throwing on error.",
593 | "keywords": [
594 | "json"
595 | ],
596 | "support": {
597 | "issues": "https://github.com/thePanz/json-exception/issues",
598 | "source": "https://github.com/thePanz/json-exception/tree/v1.0.1"
599 | },
600 | "time": "2021-08-18T13:32:12+00:00"
601 | },
602 | {
603 | "name": "psr/container",
604 | "version": "1.1.2",
605 | "source": {
606 | "type": "git",
607 | "url": "https://github.com/php-fig/container.git",
608 | "reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
609 | },
610 | "dist": {
611 | "type": "zip",
612 | "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
613 | "reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
614 | "shasum": ""
615 | },
616 | "require": {
617 | "php": ">=7.4.0"
618 | },
619 | "type": "library",
620 | "autoload": {
621 | "psr-4": {
622 | "Psr\\Container\\": "src/"
623 | }
624 | },
625 | "notification-url": "https://packagist.org/downloads/",
626 | "license": [
627 | "MIT"
628 | ],
629 | "authors": [
630 | {
631 | "name": "PHP-FIG",
632 | "homepage": "https://www.php-fig.org/"
633 | }
634 | ],
635 | "description": "Common Container Interface (PHP FIG PSR-11)",
636 | "homepage": "https://github.com/php-fig/container",
637 | "keywords": [
638 | "PSR-11",
639 | "container",
640 | "container-interface",
641 | "container-interop",
642 | "psr"
643 | ],
644 | "support": {
645 | "issues": "https://github.com/php-fig/container/issues",
646 | "source": "https://github.com/php-fig/container/tree/1.1.2"
647 | },
648 | "time": "2021-11-05T16:50:12+00:00"
649 | },
650 | {
651 | "name": "psr/http-message",
652 | "version": "1.1",
653 | "source": {
654 | "type": "git",
655 | "url": "https://github.com/php-fig/http-message.git",
656 | "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
657 | },
658 | "dist": {
659 | "type": "zip",
660 | "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
661 | "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
662 | "shasum": ""
663 | },
664 | "require": {
665 | "php": "^7.2 || ^8.0"
666 | },
667 | "type": "library",
668 | "extra": {
669 | "branch-alias": {
670 | "dev-master": "1.1.x-dev"
671 | }
672 | },
673 | "autoload": {
674 | "psr-4": {
675 | "Psr\\Http\\Message\\": "src/"
676 | }
677 | },
678 | "notification-url": "https://packagist.org/downloads/",
679 | "license": [
680 | "MIT"
681 | ],
682 | "authors": [
683 | {
684 | "name": "PHP-FIG",
685 | "homepage": "http://www.php-fig.org/"
686 | }
687 | ],
688 | "description": "Common interface for HTTP messages",
689 | "homepage": "https://github.com/php-fig/http-message",
690 | "keywords": [
691 | "http",
692 | "http-message",
693 | "psr",
694 | "psr-7",
695 | "request",
696 | "response"
697 | ],
698 | "support": {
699 | "source": "https://github.com/php-fig/http-message/tree/1.1"
700 | },
701 | "time": "2023-04-04T09:50:52+00:00"
702 | },
703 | {
704 | "name": "queue-interop/amqp-interop",
705 | "version": "0.8.2",
706 | "source": {
707 | "type": "git",
708 | "url": "https://github.com/queue-interop/amqp-interop.git",
709 | "reference": "a893c72832784ca846fcc1bd86274a6a449a1ab7"
710 | },
711 | "dist": {
712 | "type": "zip",
713 | "url": "https://api.github.com/repos/queue-interop/amqp-interop/zipball/a893c72832784ca846fcc1bd86274a6a449a1ab7",
714 | "reference": "a893c72832784ca846fcc1bd86274a6a449a1ab7",
715 | "shasum": ""
716 | },
717 | "require": {
718 | "php": "^7.3 | ^8.0",
719 | "queue-interop/queue-interop": "^0.7|^0.8|^0.9"
720 | },
721 | "require-dev": {
722 | "phpunit/phpunit": "~9.0"
723 | },
724 | "type": "library",
725 | "extra": {
726 | "branch-alias": {
727 | "dev-master": "0.8.x-dev"
728 | }
729 | },
730 | "autoload": {
731 | "psr-4": {
732 | "Interop\\Amqp\\": "src/"
733 | }
734 | },
735 | "notification-url": "https://packagist.org/downloads/",
736 | "license": [
737 | "MIT"
738 | ],
739 | "description": "AMQP interop",
740 | "support": {
741 | "issues": "https://github.com/queue-interop/amqp-interop/issues",
742 | "source": "https://github.com/queue-interop/amqp-interop/tree/0.8.2"
743 | },
744 | "time": "2021-01-21T11:33:30+00:00"
745 | },
746 | {
747 | "name": "queue-interop/queue-interop",
748 | "version": "0.8.1",
749 | "source": {
750 | "type": "git",
751 | "url": "https://github.com/queue-interop/queue-interop.git",
752 | "reference": "117043fd38490f8b5516622cd4b697b33a89ce2b"
753 | },
754 | "dist": {
755 | "type": "zip",
756 | "url": "https://api.github.com/repos/queue-interop/queue-interop/zipball/117043fd38490f8b5516622cd4b697b33a89ce2b",
757 | "reference": "117043fd38490f8b5516622cd4b697b33a89ce2b",
758 | "shasum": ""
759 | },
760 | "require": {
761 | "php": "^7.1.3 || ^8.0"
762 | },
763 | "require-dev": {
764 | "phpunit/phpunit": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
765 | "queue-interop/queue-spec": "^0.6@dev"
766 | },
767 | "type": "library",
768 | "extra": {
769 | "branch-alias": {
770 | "dev-master": "0.7-dev"
771 | }
772 | },
773 | "autoload": {
774 | "psr-4": {
775 | "Interop\\Queue\\": "src/"
776 | }
777 | },
778 | "notification-url": "https://packagist.org/downloads/",
779 | "license": [
780 | "MIT"
781 | ],
782 | "description": "Promoting the interoperability of MQs objects. Based on Java JMS",
783 | "homepage": "https://github.com/queue-interop/queue-interop",
784 | "keywords": [
785 | "MQ",
786 | "jms",
787 | "message queue",
788 | "messaging",
789 | "queue"
790 | ],
791 | "support": {
792 | "issues": "https://github.com/queue-interop/queue-interop/issues",
793 | "source": "https://github.com/queue-interop/queue-interop/tree/0.8.1"
794 | },
795 | "time": "2020-12-21T13:14:51+00:00"
796 | },
797 | {
798 | "name": "ralouphie/getallheaders",
799 | "version": "3.0.3",
800 | "source": {
801 | "type": "git",
802 | "url": "https://github.com/ralouphie/getallheaders.git",
803 | "reference": "120b605dfeb996808c31b6477290a714d356e822"
804 | },
805 | "dist": {
806 | "type": "zip",
807 | "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
808 | "reference": "120b605dfeb996808c31b6477290a714d356e822",
809 | "shasum": ""
810 | },
811 | "require": {
812 | "php": ">=5.6"
813 | },
814 | "require-dev": {
815 | "php-coveralls/php-coveralls": "^2.1",
816 | "phpunit/phpunit": "^5 || ^6.5"
817 | },
818 | "type": "library",
819 | "autoload": {
820 | "files": [
821 | "src/getallheaders.php"
822 | ]
823 | },
824 | "notification-url": "https://packagist.org/downloads/",
825 | "license": [
826 | "MIT"
827 | ],
828 | "authors": [
829 | {
830 | "name": "Ralph Khattar",
831 | "email": "ralph.khattar@gmail.com"
832 | }
833 | ],
834 | "description": "A polyfill for getallheaders.",
835 | "support": {
836 | "issues": "https://github.com/ralouphie/getallheaders/issues",
837 | "source": "https://github.com/ralouphie/getallheaders/tree/develop"
838 | },
839 | "time": "2019-03-08T08:55:37+00:00"
840 | },
841 | {
842 | "name": "react/event-loop",
843 | "version": "v1.3.0",
844 | "source": {
845 | "type": "git",
846 | "url": "https://github.com/reactphp/event-loop.git",
847 | "reference": "187fb56f46d424afb6ec4ad089269c72eec2e137"
848 | },
849 | "dist": {
850 | "type": "zip",
851 | "url": "https://api.github.com/repos/reactphp/event-loop/zipball/187fb56f46d424afb6ec4ad089269c72eec2e137",
852 | "reference": "187fb56f46d424afb6ec4ad089269c72eec2e137",
853 | "shasum": ""
854 | },
855 | "require": {
856 | "php": ">=5.3.0"
857 | },
858 | "require-dev": {
859 | "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35"
860 | },
861 | "suggest": {
862 | "ext-event": "~1.0 for ExtEventLoop",
863 | "ext-pcntl": "For signal handling support when using the StreamSelectLoop",
864 | "ext-uv": "* for ExtUvLoop"
865 | },
866 | "type": "library",
867 | "autoload": {
868 | "psr-4": {
869 | "React\\EventLoop\\": "src"
870 | }
871 | },
872 | "notification-url": "https://packagist.org/downloads/",
873 | "license": [
874 | "MIT"
875 | ],
876 | "authors": [
877 | {
878 | "name": "Christian Lück",
879 | "email": "christian@clue.engineering",
880 | "homepage": "https://clue.engineering/"
881 | },
882 | {
883 | "name": "Cees-Jan Kiewiet",
884 | "email": "reactphp@ceesjankiewiet.nl",
885 | "homepage": "https://wyrihaximus.net/"
886 | },
887 | {
888 | "name": "Jan Sorgalla",
889 | "email": "jsorgalla@gmail.com",
890 | "homepage": "https://sorgalla.com/"
891 | },
892 | {
893 | "name": "Chris Boden",
894 | "email": "cboden@gmail.com",
895 | "homepage": "https://cboden.dev/"
896 | }
897 | ],
898 | "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.",
899 | "keywords": [
900 | "asynchronous",
901 | "event-loop"
902 | ],
903 | "support": {
904 | "issues": "https://github.com/reactphp/event-loop/issues",
905 | "source": "https://github.com/reactphp/event-loop/tree/v1.3.0"
906 | },
907 | "funding": [
908 | {
909 | "url": "https://github.com/WyriHaximus",
910 | "type": "github"
911 | },
912 | {
913 | "url": "https://github.com/clue",
914 | "type": "github"
915 | }
916 | ],
917 | "time": "2022-03-17T11:10:22+00:00"
918 | },
919 | {
920 | "name": "react/promise",
921 | "version": "v2.9.0",
922 | "source": {
923 | "type": "git",
924 | "url": "https://github.com/reactphp/promise.git",
925 | "reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910"
926 | },
927 | "dist": {
928 | "type": "zip",
929 | "url": "https://api.github.com/repos/reactphp/promise/zipball/234f8fd1023c9158e2314fa9d7d0e6a83db42910",
930 | "reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910",
931 | "shasum": ""
932 | },
933 | "require": {
934 | "php": ">=5.4.0"
935 | },
936 | "require-dev": {
937 | "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36"
938 | },
939 | "type": "library",
940 | "autoload": {
941 | "files": [
942 | "src/functions_include.php"
943 | ],
944 | "psr-4": {
945 | "React\\Promise\\": "src/"
946 | }
947 | },
948 | "notification-url": "https://packagist.org/downloads/",
949 | "license": [
950 | "MIT"
951 | ],
952 | "authors": [
953 | {
954 | "name": "Jan Sorgalla",
955 | "email": "jsorgalla@gmail.com",
956 | "homepage": "https://sorgalla.com/"
957 | },
958 | {
959 | "name": "Christian Lück",
960 | "email": "christian@clue.engineering",
961 | "homepage": "https://clue.engineering/"
962 | },
963 | {
964 | "name": "Cees-Jan Kiewiet",
965 | "email": "reactphp@ceesjankiewiet.nl",
966 | "homepage": "https://wyrihaximus.net/"
967 | },
968 | {
969 | "name": "Chris Boden",
970 | "email": "cboden@gmail.com",
971 | "homepage": "https://cboden.dev/"
972 | }
973 | ],
974 | "description": "A lightweight implementation of CommonJS Promises/A for PHP",
975 | "keywords": [
976 | "promise",
977 | "promises"
978 | ],
979 | "support": {
980 | "issues": "https://github.com/reactphp/promise/issues",
981 | "source": "https://github.com/reactphp/promise/tree/v2.9.0"
982 | },
983 | "funding": [
984 | {
985 | "url": "https://github.com/WyriHaximus",
986 | "type": "github"
987 | },
988 | {
989 | "url": "https://github.com/clue",
990 | "type": "github"
991 | }
992 | ],
993 | "time": "2022-02-11T10:27:51+00:00"
994 | },
995 | {
996 | "name": "symfony/console",
997 | "version": "v5.4.22",
998 | "source": {
999 | "type": "git",
1000 | "url": "https://github.com/symfony/console.git",
1001 | "reference": "3cd51fd2e6c461ca678f84d419461281bd87a0a8"
1002 | },
1003 | "dist": {
1004 | "type": "zip",
1005 | "url": "https://api.github.com/repos/symfony/console/zipball/3cd51fd2e6c461ca678f84d419461281bd87a0a8",
1006 | "reference": "3cd51fd2e6c461ca678f84d419461281bd87a0a8",
1007 | "shasum": ""
1008 | },
1009 | "require": {
1010 | "php": ">=7.2.5",
1011 | "symfony/deprecation-contracts": "^2.1|^3",
1012 | "symfony/polyfill-mbstring": "~1.0",
1013 | "symfony/polyfill-php73": "^1.9",
1014 | "symfony/polyfill-php80": "^1.16",
1015 | "symfony/service-contracts": "^1.1|^2|^3",
1016 | "symfony/string": "^5.1|^6.0"
1017 | },
1018 | "conflict": {
1019 | "psr/log": ">=3",
1020 | "symfony/dependency-injection": "<4.4",
1021 | "symfony/dotenv": "<5.1",
1022 | "symfony/event-dispatcher": "<4.4",
1023 | "symfony/lock": "<4.4",
1024 | "symfony/process": "<4.4"
1025 | },
1026 | "provide": {
1027 | "psr/log-implementation": "1.0|2.0"
1028 | },
1029 | "require-dev": {
1030 | "psr/log": "^1|^2",
1031 | "symfony/config": "^4.4|^5.0|^6.0",
1032 | "symfony/dependency-injection": "^4.4|^5.0|^6.0",
1033 | "symfony/event-dispatcher": "^4.4|^5.0|^6.0",
1034 | "symfony/lock": "^4.4|^5.0|^6.0",
1035 | "symfony/process": "^4.4|^5.0|^6.0",
1036 | "symfony/var-dumper": "^4.4|^5.0|^6.0"
1037 | },
1038 | "suggest": {
1039 | "psr/log": "For using the console logger",
1040 | "symfony/event-dispatcher": "",
1041 | "symfony/lock": "",
1042 | "symfony/process": ""
1043 | },
1044 | "type": "library",
1045 | "autoload": {
1046 | "psr-4": {
1047 | "Symfony\\Component\\Console\\": ""
1048 | },
1049 | "exclude-from-classmap": [
1050 | "/Tests/"
1051 | ]
1052 | },
1053 | "notification-url": "https://packagist.org/downloads/",
1054 | "license": [
1055 | "MIT"
1056 | ],
1057 | "authors": [
1058 | {
1059 | "name": "Fabien Potencier",
1060 | "email": "fabien@symfony.com"
1061 | },
1062 | {
1063 | "name": "Symfony Community",
1064 | "homepage": "https://symfony.com/contributors"
1065 | }
1066 | ],
1067 | "description": "Eases the creation of beautiful and testable command line interfaces",
1068 | "homepage": "https://symfony.com",
1069 | "keywords": [
1070 | "cli",
1071 | "command-line",
1072 | "console",
1073 | "terminal"
1074 | ],
1075 | "support": {
1076 | "source": "https://github.com/symfony/console/tree/v5.4.22"
1077 | },
1078 | "funding": [
1079 | {
1080 | "url": "https://symfony.com/sponsor",
1081 | "type": "custom"
1082 | },
1083 | {
1084 | "url": "https://github.com/fabpot",
1085 | "type": "github"
1086 | },
1087 | {
1088 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1089 | "type": "tidelift"
1090 | }
1091 | ],
1092 | "time": "2023-03-25T09:27:28+00:00"
1093 | },
1094 | {
1095 | "name": "symfony/deprecation-contracts",
1096 | "version": "v2.5.2",
1097 | "source": {
1098 | "type": "git",
1099 | "url": "https://github.com/symfony/deprecation-contracts.git",
1100 | "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66"
1101 | },
1102 | "dist": {
1103 | "type": "zip",
1104 | "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
1105 | "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
1106 | "shasum": ""
1107 | },
1108 | "require": {
1109 | "php": ">=7.1"
1110 | },
1111 | "type": "library",
1112 | "extra": {
1113 | "branch-alias": {
1114 | "dev-main": "2.5-dev"
1115 | },
1116 | "thanks": {
1117 | "name": "symfony/contracts",
1118 | "url": "https://github.com/symfony/contracts"
1119 | }
1120 | },
1121 | "autoload": {
1122 | "files": [
1123 | "function.php"
1124 | ]
1125 | },
1126 | "notification-url": "https://packagist.org/downloads/",
1127 | "license": [
1128 | "MIT"
1129 | ],
1130 | "authors": [
1131 | {
1132 | "name": "Nicolas Grekas",
1133 | "email": "p@tchwork.com"
1134 | },
1135 | {
1136 | "name": "Symfony Community",
1137 | "homepage": "https://symfony.com/contributors"
1138 | }
1139 | ],
1140 | "description": "A generic function and convention to trigger deprecation notices",
1141 | "homepage": "https://symfony.com",
1142 | "support": {
1143 | "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2"
1144 | },
1145 | "funding": [
1146 | {
1147 | "url": "https://symfony.com/sponsor",
1148 | "type": "custom"
1149 | },
1150 | {
1151 | "url": "https://github.com/fabpot",
1152 | "type": "github"
1153 | },
1154 | {
1155 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1156 | "type": "tidelift"
1157 | }
1158 | ],
1159 | "time": "2022-01-02T09:53:40+00:00"
1160 | },
1161 | {
1162 | "name": "symfony/polyfill-ctype",
1163 | "version": "v1.27.0",
1164 | "source": {
1165 | "type": "git",
1166 | "url": "https://github.com/symfony/polyfill-ctype.git",
1167 | "reference": "5bbc823adecdae860bb64756d639ecfec17b050a"
1168 | },
1169 | "dist": {
1170 | "type": "zip",
1171 | "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a",
1172 | "reference": "5bbc823adecdae860bb64756d639ecfec17b050a",
1173 | "shasum": ""
1174 | },
1175 | "require": {
1176 | "php": ">=7.1"
1177 | },
1178 | "provide": {
1179 | "ext-ctype": "*"
1180 | },
1181 | "suggest": {
1182 | "ext-ctype": "For best performance"
1183 | },
1184 | "type": "library",
1185 | "extra": {
1186 | "branch-alias": {
1187 | "dev-main": "1.27-dev"
1188 | },
1189 | "thanks": {
1190 | "name": "symfony/polyfill",
1191 | "url": "https://github.com/symfony/polyfill"
1192 | }
1193 | },
1194 | "autoload": {
1195 | "files": [
1196 | "bootstrap.php"
1197 | ],
1198 | "psr-4": {
1199 | "Symfony\\Polyfill\\Ctype\\": ""
1200 | }
1201 | },
1202 | "notification-url": "https://packagist.org/downloads/",
1203 | "license": [
1204 | "MIT"
1205 | ],
1206 | "authors": [
1207 | {
1208 | "name": "Gert de Pagter",
1209 | "email": "BackEndTea@gmail.com"
1210 | },
1211 | {
1212 | "name": "Symfony Community",
1213 | "homepage": "https://symfony.com/contributors"
1214 | }
1215 | ],
1216 | "description": "Symfony polyfill for ctype functions",
1217 | "homepage": "https://symfony.com",
1218 | "keywords": [
1219 | "compatibility",
1220 | "ctype",
1221 | "polyfill",
1222 | "portable"
1223 | ],
1224 | "support": {
1225 | "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0"
1226 | },
1227 | "funding": [
1228 | {
1229 | "url": "https://symfony.com/sponsor",
1230 | "type": "custom"
1231 | },
1232 | {
1233 | "url": "https://github.com/fabpot",
1234 | "type": "github"
1235 | },
1236 | {
1237 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1238 | "type": "tidelift"
1239 | }
1240 | ],
1241 | "time": "2022-11-03T14:55:06+00:00"
1242 | },
1243 | {
1244 | "name": "symfony/polyfill-intl-grapheme",
1245 | "version": "v1.27.0",
1246 | "source": {
1247 | "type": "git",
1248 | "url": "https://github.com/symfony/polyfill-intl-grapheme.git",
1249 | "reference": "511a08c03c1960e08a883f4cffcacd219b758354"
1250 | },
1251 | "dist": {
1252 | "type": "zip",
1253 | "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354",
1254 | "reference": "511a08c03c1960e08a883f4cffcacd219b758354",
1255 | "shasum": ""
1256 | },
1257 | "require": {
1258 | "php": ">=7.1"
1259 | },
1260 | "suggest": {
1261 | "ext-intl": "For best performance"
1262 | },
1263 | "type": "library",
1264 | "extra": {
1265 | "branch-alias": {
1266 | "dev-main": "1.27-dev"
1267 | },
1268 | "thanks": {
1269 | "name": "symfony/polyfill",
1270 | "url": "https://github.com/symfony/polyfill"
1271 | }
1272 | },
1273 | "autoload": {
1274 | "files": [
1275 | "bootstrap.php"
1276 | ],
1277 | "psr-4": {
1278 | "Symfony\\Polyfill\\Intl\\Grapheme\\": ""
1279 | }
1280 | },
1281 | "notification-url": "https://packagist.org/downloads/",
1282 | "license": [
1283 | "MIT"
1284 | ],
1285 | "authors": [
1286 | {
1287 | "name": "Nicolas Grekas",
1288 | "email": "p@tchwork.com"
1289 | },
1290 | {
1291 | "name": "Symfony Community",
1292 | "homepage": "https://symfony.com/contributors"
1293 | }
1294 | ],
1295 | "description": "Symfony polyfill for intl's grapheme_* functions",
1296 | "homepage": "https://symfony.com",
1297 | "keywords": [
1298 | "compatibility",
1299 | "grapheme",
1300 | "intl",
1301 | "polyfill",
1302 | "portable",
1303 | "shim"
1304 | ],
1305 | "support": {
1306 | "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0"
1307 | },
1308 | "funding": [
1309 | {
1310 | "url": "https://symfony.com/sponsor",
1311 | "type": "custom"
1312 | },
1313 | {
1314 | "url": "https://github.com/fabpot",
1315 | "type": "github"
1316 | },
1317 | {
1318 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1319 | "type": "tidelift"
1320 | }
1321 | ],
1322 | "time": "2022-11-03T14:55:06+00:00"
1323 | },
1324 | {
1325 | "name": "symfony/polyfill-intl-idn",
1326 | "version": "v1.27.0",
1327 | "source": {
1328 | "type": "git",
1329 | "url": "https://github.com/symfony/polyfill-intl-idn.git",
1330 | "reference": "639084e360537a19f9ee352433b84ce831f3d2da"
1331 | },
1332 | "dist": {
1333 | "type": "zip",
1334 | "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/639084e360537a19f9ee352433b84ce831f3d2da",
1335 | "reference": "639084e360537a19f9ee352433b84ce831f3d2da",
1336 | "shasum": ""
1337 | },
1338 | "require": {
1339 | "php": ">=7.1",
1340 | "symfony/polyfill-intl-normalizer": "^1.10",
1341 | "symfony/polyfill-php72": "^1.10"
1342 | },
1343 | "suggest": {
1344 | "ext-intl": "For best performance"
1345 | },
1346 | "type": "library",
1347 | "extra": {
1348 | "branch-alias": {
1349 | "dev-main": "1.27-dev"
1350 | },
1351 | "thanks": {
1352 | "name": "symfony/polyfill",
1353 | "url": "https://github.com/symfony/polyfill"
1354 | }
1355 | },
1356 | "autoload": {
1357 | "files": [
1358 | "bootstrap.php"
1359 | ],
1360 | "psr-4": {
1361 | "Symfony\\Polyfill\\Intl\\Idn\\": ""
1362 | }
1363 | },
1364 | "notification-url": "https://packagist.org/downloads/",
1365 | "license": [
1366 | "MIT"
1367 | ],
1368 | "authors": [
1369 | {
1370 | "name": "Laurent Bassin",
1371 | "email": "laurent@bassin.info"
1372 | },
1373 | {
1374 | "name": "Trevor Rowbotham",
1375 | "email": "trevor.rowbotham@pm.me"
1376 | },
1377 | {
1378 | "name": "Symfony Community",
1379 | "homepage": "https://symfony.com/contributors"
1380 | }
1381 | ],
1382 | "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions",
1383 | "homepage": "https://symfony.com",
1384 | "keywords": [
1385 | "compatibility",
1386 | "idn",
1387 | "intl",
1388 | "polyfill",
1389 | "portable",
1390 | "shim"
1391 | ],
1392 | "support": {
1393 | "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.27.0"
1394 | },
1395 | "funding": [
1396 | {
1397 | "url": "https://symfony.com/sponsor",
1398 | "type": "custom"
1399 | },
1400 | {
1401 | "url": "https://github.com/fabpot",
1402 | "type": "github"
1403 | },
1404 | {
1405 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1406 | "type": "tidelift"
1407 | }
1408 | ],
1409 | "time": "2022-11-03T14:55:06+00:00"
1410 | },
1411 | {
1412 | "name": "symfony/polyfill-intl-normalizer",
1413 | "version": "v1.27.0",
1414 | "source": {
1415 | "type": "git",
1416 | "url": "https://github.com/symfony/polyfill-intl-normalizer.git",
1417 | "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6"
1418 | },
1419 | "dist": {
1420 | "type": "zip",
1421 | "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6",
1422 | "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6",
1423 | "shasum": ""
1424 | },
1425 | "require": {
1426 | "php": ">=7.1"
1427 | },
1428 | "suggest": {
1429 | "ext-intl": "For best performance"
1430 | },
1431 | "type": "library",
1432 | "extra": {
1433 | "branch-alias": {
1434 | "dev-main": "1.27-dev"
1435 | },
1436 | "thanks": {
1437 | "name": "symfony/polyfill",
1438 | "url": "https://github.com/symfony/polyfill"
1439 | }
1440 | },
1441 | "autoload": {
1442 | "files": [
1443 | "bootstrap.php"
1444 | ],
1445 | "psr-4": {
1446 | "Symfony\\Polyfill\\Intl\\Normalizer\\": ""
1447 | },
1448 | "classmap": [
1449 | "Resources/stubs"
1450 | ]
1451 | },
1452 | "notification-url": "https://packagist.org/downloads/",
1453 | "license": [
1454 | "MIT"
1455 | ],
1456 | "authors": [
1457 | {
1458 | "name": "Nicolas Grekas",
1459 | "email": "p@tchwork.com"
1460 | },
1461 | {
1462 | "name": "Symfony Community",
1463 | "homepage": "https://symfony.com/contributors"
1464 | }
1465 | ],
1466 | "description": "Symfony polyfill for intl's Normalizer class and related functions",
1467 | "homepage": "https://symfony.com",
1468 | "keywords": [
1469 | "compatibility",
1470 | "intl",
1471 | "normalizer",
1472 | "polyfill",
1473 | "portable",
1474 | "shim"
1475 | ],
1476 | "support": {
1477 | "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0"
1478 | },
1479 | "funding": [
1480 | {
1481 | "url": "https://symfony.com/sponsor",
1482 | "type": "custom"
1483 | },
1484 | {
1485 | "url": "https://github.com/fabpot",
1486 | "type": "github"
1487 | },
1488 | {
1489 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1490 | "type": "tidelift"
1491 | }
1492 | ],
1493 | "time": "2022-11-03T14:55:06+00:00"
1494 | },
1495 | {
1496 | "name": "symfony/polyfill-mbstring",
1497 | "version": "v1.27.0",
1498 | "source": {
1499 | "type": "git",
1500 | "url": "https://github.com/symfony/polyfill-mbstring.git",
1501 | "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
1502 | },
1503 | "dist": {
1504 | "type": "zip",
1505 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
1506 | "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
1507 | "shasum": ""
1508 | },
1509 | "require": {
1510 | "php": ">=7.1"
1511 | },
1512 | "provide": {
1513 | "ext-mbstring": "*"
1514 | },
1515 | "suggest": {
1516 | "ext-mbstring": "For best performance"
1517 | },
1518 | "type": "library",
1519 | "extra": {
1520 | "branch-alias": {
1521 | "dev-main": "1.27-dev"
1522 | },
1523 | "thanks": {
1524 | "name": "symfony/polyfill",
1525 | "url": "https://github.com/symfony/polyfill"
1526 | }
1527 | },
1528 | "autoload": {
1529 | "files": [
1530 | "bootstrap.php"
1531 | ],
1532 | "psr-4": {
1533 | "Symfony\\Polyfill\\Mbstring\\": ""
1534 | }
1535 | },
1536 | "notification-url": "https://packagist.org/downloads/",
1537 | "license": [
1538 | "MIT"
1539 | ],
1540 | "authors": [
1541 | {
1542 | "name": "Nicolas Grekas",
1543 | "email": "p@tchwork.com"
1544 | },
1545 | {
1546 | "name": "Symfony Community",
1547 | "homepage": "https://symfony.com/contributors"
1548 | }
1549 | ],
1550 | "description": "Symfony polyfill for the Mbstring extension",
1551 | "homepage": "https://symfony.com",
1552 | "keywords": [
1553 | "compatibility",
1554 | "mbstring",
1555 | "polyfill",
1556 | "portable",
1557 | "shim"
1558 | ],
1559 | "support": {
1560 | "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
1561 | },
1562 | "funding": [
1563 | {
1564 | "url": "https://symfony.com/sponsor",
1565 | "type": "custom"
1566 | },
1567 | {
1568 | "url": "https://github.com/fabpot",
1569 | "type": "github"
1570 | },
1571 | {
1572 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1573 | "type": "tidelift"
1574 | }
1575 | ],
1576 | "time": "2022-11-03T14:55:06+00:00"
1577 | },
1578 | {
1579 | "name": "symfony/polyfill-php72",
1580 | "version": "v1.27.0",
1581 | "source": {
1582 | "type": "git",
1583 | "url": "https://github.com/symfony/polyfill-php72.git",
1584 | "reference": "869329b1e9894268a8a61dabb69153029b7a8c97"
1585 | },
1586 | "dist": {
1587 | "type": "zip",
1588 | "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97",
1589 | "reference": "869329b1e9894268a8a61dabb69153029b7a8c97",
1590 | "shasum": ""
1591 | },
1592 | "require": {
1593 | "php": ">=7.1"
1594 | },
1595 | "type": "library",
1596 | "extra": {
1597 | "branch-alias": {
1598 | "dev-main": "1.27-dev"
1599 | },
1600 | "thanks": {
1601 | "name": "symfony/polyfill",
1602 | "url": "https://github.com/symfony/polyfill"
1603 | }
1604 | },
1605 | "autoload": {
1606 | "files": [
1607 | "bootstrap.php"
1608 | ],
1609 | "psr-4": {
1610 | "Symfony\\Polyfill\\Php72\\": ""
1611 | }
1612 | },
1613 | "notification-url": "https://packagist.org/downloads/",
1614 | "license": [
1615 | "MIT"
1616 | ],
1617 | "authors": [
1618 | {
1619 | "name": "Nicolas Grekas",
1620 | "email": "p@tchwork.com"
1621 | },
1622 | {
1623 | "name": "Symfony Community",
1624 | "homepage": "https://symfony.com/contributors"
1625 | }
1626 | ],
1627 | "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
1628 | "homepage": "https://symfony.com",
1629 | "keywords": [
1630 | "compatibility",
1631 | "polyfill",
1632 | "portable",
1633 | "shim"
1634 | ],
1635 | "support": {
1636 | "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0"
1637 | },
1638 | "funding": [
1639 | {
1640 | "url": "https://symfony.com/sponsor",
1641 | "type": "custom"
1642 | },
1643 | {
1644 | "url": "https://github.com/fabpot",
1645 | "type": "github"
1646 | },
1647 | {
1648 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1649 | "type": "tidelift"
1650 | }
1651 | ],
1652 | "time": "2022-11-03T14:55:06+00:00"
1653 | },
1654 | {
1655 | "name": "symfony/polyfill-php73",
1656 | "version": "v1.27.0",
1657 | "source": {
1658 | "type": "git",
1659 | "url": "https://github.com/symfony/polyfill-php73.git",
1660 | "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9"
1661 | },
1662 | "dist": {
1663 | "type": "zip",
1664 | "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9",
1665 | "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9",
1666 | "shasum": ""
1667 | },
1668 | "require": {
1669 | "php": ">=7.1"
1670 | },
1671 | "type": "library",
1672 | "extra": {
1673 | "branch-alias": {
1674 | "dev-main": "1.27-dev"
1675 | },
1676 | "thanks": {
1677 | "name": "symfony/polyfill",
1678 | "url": "https://github.com/symfony/polyfill"
1679 | }
1680 | },
1681 | "autoload": {
1682 | "files": [
1683 | "bootstrap.php"
1684 | ],
1685 | "psr-4": {
1686 | "Symfony\\Polyfill\\Php73\\": ""
1687 | },
1688 | "classmap": [
1689 | "Resources/stubs"
1690 | ]
1691 | },
1692 | "notification-url": "https://packagist.org/downloads/",
1693 | "license": [
1694 | "MIT"
1695 | ],
1696 | "authors": [
1697 | {
1698 | "name": "Nicolas Grekas",
1699 | "email": "p@tchwork.com"
1700 | },
1701 | {
1702 | "name": "Symfony Community",
1703 | "homepage": "https://symfony.com/contributors"
1704 | }
1705 | ],
1706 | "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
1707 | "homepage": "https://symfony.com",
1708 | "keywords": [
1709 | "compatibility",
1710 | "polyfill",
1711 | "portable",
1712 | "shim"
1713 | ],
1714 | "support": {
1715 | "source": "https://github.com/symfony/polyfill-php73/tree/v1.27.0"
1716 | },
1717 | "funding": [
1718 | {
1719 | "url": "https://symfony.com/sponsor",
1720 | "type": "custom"
1721 | },
1722 | {
1723 | "url": "https://github.com/fabpot",
1724 | "type": "github"
1725 | },
1726 | {
1727 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1728 | "type": "tidelift"
1729 | }
1730 | ],
1731 | "time": "2022-11-03T14:55:06+00:00"
1732 | },
1733 | {
1734 | "name": "symfony/polyfill-php80",
1735 | "version": "v1.27.0",
1736 | "source": {
1737 | "type": "git",
1738 | "url": "https://github.com/symfony/polyfill-php80.git",
1739 | "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936"
1740 | },
1741 | "dist": {
1742 | "type": "zip",
1743 | "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
1744 | "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
1745 | "shasum": ""
1746 | },
1747 | "require": {
1748 | "php": ">=7.1"
1749 | },
1750 | "type": "library",
1751 | "extra": {
1752 | "branch-alias": {
1753 | "dev-main": "1.27-dev"
1754 | },
1755 | "thanks": {
1756 | "name": "symfony/polyfill",
1757 | "url": "https://github.com/symfony/polyfill"
1758 | }
1759 | },
1760 | "autoload": {
1761 | "files": [
1762 | "bootstrap.php"
1763 | ],
1764 | "psr-4": {
1765 | "Symfony\\Polyfill\\Php80\\": ""
1766 | },
1767 | "classmap": [
1768 | "Resources/stubs"
1769 | ]
1770 | },
1771 | "notification-url": "https://packagist.org/downloads/",
1772 | "license": [
1773 | "MIT"
1774 | ],
1775 | "authors": [
1776 | {
1777 | "name": "Ion Bazan",
1778 | "email": "ion.bazan@gmail.com"
1779 | },
1780 | {
1781 | "name": "Nicolas Grekas",
1782 | "email": "p@tchwork.com"
1783 | },
1784 | {
1785 | "name": "Symfony Community",
1786 | "homepage": "https://symfony.com/contributors"
1787 | }
1788 | ],
1789 | "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
1790 | "homepage": "https://symfony.com",
1791 | "keywords": [
1792 | "compatibility",
1793 | "polyfill",
1794 | "portable",
1795 | "shim"
1796 | ],
1797 | "support": {
1798 | "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0"
1799 | },
1800 | "funding": [
1801 | {
1802 | "url": "https://symfony.com/sponsor",
1803 | "type": "custom"
1804 | },
1805 | {
1806 | "url": "https://github.com/fabpot",
1807 | "type": "github"
1808 | },
1809 | {
1810 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1811 | "type": "tidelift"
1812 | }
1813 | ],
1814 | "time": "2022-11-03T14:55:06+00:00"
1815 | },
1816 | {
1817 | "name": "symfony/service-contracts",
1818 | "version": "v2.5.2",
1819 | "source": {
1820 | "type": "git",
1821 | "url": "https://github.com/symfony/service-contracts.git",
1822 | "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c"
1823 | },
1824 | "dist": {
1825 | "type": "zip",
1826 | "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c",
1827 | "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c",
1828 | "shasum": ""
1829 | },
1830 | "require": {
1831 | "php": ">=7.2.5",
1832 | "psr/container": "^1.1",
1833 | "symfony/deprecation-contracts": "^2.1|^3"
1834 | },
1835 | "conflict": {
1836 | "ext-psr": "<1.1|>=2"
1837 | },
1838 | "suggest": {
1839 | "symfony/service-implementation": ""
1840 | },
1841 | "type": "library",
1842 | "extra": {
1843 | "branch-alias": {
1844 | "dev-main": "2.5-dev"
1845 | },
1846 | "thanks": {
1847 | "name": "symfony/contracts",
1848 | "url": "https://github.com/symfony/contracts"
1849 | }
1850 | },
1851 | "autoload": {
1852 | "psr-4": {
1853 | "Symfony\\Contracts\\Service\\": ""
1854 | }
1855 | },
1856 | "notification-url": "https://packagist.org/downloads/",
1857 | "license": [
1858 | "MIT"
1859 | ],
1860 | "authors": [
1861 | {
1862 | "name": "Nicolas Grekas",
1863 | "email": "p@tchwork.com"
1864 | },
1865 | {
1866 | "name": "Symfony Community",
1867 | "homepage": "https://symfony.com/contributors"
1868 | }
1869 | ],
1870 | "description": "Generic abstractions related to writing services",
1871 | "homepage": "https://symfony.com",
1872 | "keywords": [
1873 | "abstractions",
1874 | "contracts",
1875 | "decoupling",
1876 | "interfaces",
1877 | "interoperability",
1878 | "standards"
1879 | ],
1880 | "support": {
1881 | "source": "https://github.com/symfony/service-contracts/tree/v2.5.2"
1882 | },
1883 | "funding": [
1884 | {
1885 | "url": "https://symfony.com/sponsor",
1886 | "type": "custom"
1887 | },
1888 | {
1889 | "url": "https://github.com/fabpot",
1890 | "type": "github"
1891 | },
1892 | {
1893 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1894 | "type": "tidelift"
1895 | }
1896 | ],
1897 | "time": "2022-05-30T19:17:29+00:00"
1898 | },
1899 | {
1900 | "name": "symfony/string",
1901 | "version": "v5.4.22",
1902 | "source": {
1903 | "type": "git",
1904 | "url": "https://github.com/symfony/string.git",
1905 | "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62"
1906 | },
1907 | "dist": {
1908 | "type": "zip",
1909 | "url": "https://api.github.com/repos/symfony/string/zipball/8036a4c76c0dd29e60b6a7cafcacc50cf088ea62",
1910 | "reference": "8036a4c76c0dd29e60b6a7cafcacc50cf088ea62",
1911 | "shasum": ""
1912 | },
1913 | "require": {
1914 | "php": ">=7.2.5",
1915 | "symfony/polyfill-ctype": "~1.8",
1916 | "symfony/polyfill-intl-grapheme": "~1.0",
1917 | "symfony/polyfill-intl-normalizer": "~1.0",
1918 | "symfony/polyfill-mbstring": "~1.0",
1919 | "symfony/polyfill-php80": "~1.15"
1920 | },
1921 | "conflict": {
1922 | "symfony/translation-contracts": ">=3.0"
1923 | },
1924 | "require-dev": {
1925 | "symfony/error-handler": "^4.4|^5.0|^6.0",
1926 | "symfony/http-client": "^4.4|^5.0|^6.0",
1927 | "symfony/translation-contracts": "^1.1|^2",
1928 | "symfony/var-exporter": "^4.4|^5.0|^6.0"
1929 | },
1930 | "type": "library",
1931 | "autoload": {
1932 | "files": [
1933 | "Resources/functions.php"
1934 | ],
1935 | "psr-4": {
1936 | "Symfony\\Component\\String\\": ""
1937 | },
1938 | "exclude-from-classmap": [
1939 | "/Tests/"
1940 | ]
1941 | },
1942 | "notification-url": "https://packagist.org/downloads/",
1943 | "license": [
1944 | "MIT"
1945 | ],
1946 | "authors": [
1947 | {
1948 | "name": "Nicolas Grekas",
1949 | "email": "p@tchwork.com"
1950 | },
1951 | {
1952 | "name": "Symfony Community",
1953 | "homepage": "https://symfony.com/contributors"
1954 | }
1955 | ],
1956 | "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way",
1957 | "homepage": "https://symfony.com",
1958 | "keywords": [
1959 | "grapheme",
1960 | "i18n",
1961 | "string",
1962 | "unicode",
1963 | "utf-8",
1964 | "utf8"
1965 | ],
1966 | "support": {
1967 | "source": "https://github.com/symfony/string/tree/v5.4.22"
1968 | },
1969 | "funding": [
1970 | {
1971 | "url": "https://symfony.com/sponsor",
1972 | "type": "custom"
1973 | },
1974 | {
1975 | "url": "https://github.com/fabpot",
1976 | "type": "github"
1977 | },
1978 | {
1979 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1980 | "type": "tidelift"
1981 | }
1982 | ],
1983 | "time": "2023-03-14T06:11:53+00:00"
1984 | }
1985 | ],
1986 | "packages-dev": [],
1987 | "aliases": [],
1988 | "minimum-stability": "stable",
1989 | "stability-flags": [],
1990 | "prefer-stable": false,
1991 | "prefer-lowest": false,
1992 | "platform": {
1993 | "php": "^7.4 || ^8.0"
1994 | },
1995 | "platform-dev": [],
1996 | "platform-overrides": {
1997 | "php": "7.4"
1998 | },
1999 | "plugin-api-version": "2.3.0"
2000 | }
2001 |
--------------------------------------------------------------------------------
/phpstan.neon:
--------------------------------------------------------------------------------
1 | parameters:
2 | level: 8
3 | paths:
4 | - src/
5 | - bin/
6 |
--------------------------------------------------------------------------------
/src/Command/Dedupe.php:
--------------------------------------------------------------------------------
1 | setDescription('Removes duplicated messages')
22 | ->addArgument('field', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'Name of the JSON payload fields which identifies each message')
23 | ;
24 | }
25 |
26 | protected function execute(InputInterface $input, OutputInterface $output): int
27 | {
28 | /** @var string[] $fields */
29 | $fields = $input->getArgument('field');
30 | \assert(\is_array($fields));
31 |
32 | $data = $this->readStdin();
33 | $messages = Json::decode($data, true);
34 |
35 | $removedMessagesCount = 0;
36 | $seenValues = [];
37 | $cleanMessages = [];
38 | foreach ($messages as $i => $message) {
39 | if ($this->isDuplicatedMessage($fields, $message, $seenValues, $i)) {
40 | ++$removedMessagesCount;
41 | } else {
42 | $cleanMessages[] = $message;
43 | }
44 | }
45 |
46 | $output->writeln(Json::encode($cleanMessages));
47 |
48 | if ($output instanceof ConsoleOutputInterface && $output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
49 | $output->getErrorOutput()->writeln(sprintf(
50 | 'Removed %d duplicated messages out of %d total messages, resulting in %d messages',
51 | $removedMessagesCount,
52 | \count($messages),
53 | \count($cleanMessages)
54 | ));
55 | }
56 |
57 | return Command::SUCCESS;
58 | }
59 |
60 | /**
61 | * @param string[] $fields
62 | * @param mixed[] $data
63 | */
64 | private function getValuesHash(array $fields, array $data): string
65 | {
66 | $values = [];
67 | foreach ($fields as $field) {
68 | $values[$field] = $data[$field];
69 | }
70 |
71 | return sha1(serialize($values));
72 | }
73 |
74 | /**
75 | * @param string[] $fields
76 | * @param mixed[] $message
77 | * @param array $seenValues Hashmap of value-hash => bool, to keep track of values already encountered
78 | */
79 | private function isDuplicatedMessage(array $fields, array $message, array &$seenValues, int $messageNum): bool
80 | {
81 | if (!\array_key_exists('payload', $message)) {
82 | throw new \UnexpectedValueException(sprintf('Message #%d does not have a payload (%s)', $messageNum, Json::encode($message)));
83 | }
84 |
85 | $payload = Json::decode($message['payload'], true);
86 |
87 | // Check that all given fields exist in the payload:
88 | foreach ($fields as $field) {
89 | if (!\array_key_exists($field, $payload)) {
90 | throw new \UnexpectedValueException(sprintf('Payload of message #%d does not have the required fields %s (%s)', $messageNum, implode(',', $fields), $message['payload']));
91 | }
92 | }
93 |
94 | $hash = $this->getValuesHash($fields, $payload);
95 | if (\array_key_exists($hash, $seenValues)) {
96 | return true;
97 | }
98 |
99 | $seenValues[$hash] = true;
100 |
101 | return false;
102 | }
103 |
104 | private function readStdin(): string
105 | {
106 | $data = '';
107 | while (!feof(\STDIN)) {
108 | $data .= fread(\STDIN, 1024);
109 | }
110 |
111 | if ('' === $data) {
112 | throw new \InvalidArgumentException('No data received from STDIN');
113 | }
114 |
115 | return $data;
116 | }
117 | }
118 |
--------------------------------------------------------------------------------
/src/Command/Dump.php:
--------------------------------------------------------------------------------
1 | setDescription('Dumps the messages of the specified queue to the standard output')
30 | ->addOption('host', null, InputOption::VALUE_REQUIRED, 'RabbitMQ host to connect to', 'localhost')
31 | ->addOption('port', null, InputOption::VALUE_REQUIRED, 'RabbitMQ HTTP API port', self::DEFAULT_RABBITMQ_PORT)
32 | ->addOption('username', null, InputOption::VALUE_REQUIRED, 'Username for the RabbitMQ connection', 'guest')
33 | ->addOption('password', null, InputOption::VALUE_REQUIRED, 'Password for the RabbitMQ connection', 'guest')
34 | ->addOption('vhost', null, InputOption::VALUE_REQUIRED, 'RabbitMQ VHost where the queue is declared', '/')
35 | ->addOption('limit', null, InputOption::VALUE_REQUIRED, 'Number of messages to dump')
36 | ->addOption('ackmode', null, InputOption::VALUE_REQUIRED, 'Determines whether the messages will be removed from the queue. Valid options are: "reject_requeue_true", "ack_requeue_true", "ack_requeue_false", "reject_requeue_false"', 'reject_requeue_true')
37 | ->addArgument('queue', InputArgument::REQUIRED, 'Name of the queue to dump')
38 | ;
39 | }
40 |
41 | protected function execute(InputInterface $input, OutputInterface $output): int
42 | {
43 | $queueName = $input->getArgument('queue');
44 | $host = $input->getOption('host');
45 | $vHost = $input->getOption('vhost');
46 | \assert(\is_string($queueName));
47 | \assert(\is_string($host));
48 | \assert(\is_string($vHost));
49 |
50 | $uri = new Uri('http://'.$host);
51 | if ($uri->getPort()) {
52 | throw new \UnexpectedValueException('You can not specify the port as part of the hostname. Use the separate "port" option.');
53 | }
54 | $uri = $uri->withPort($input->getOption('port'));
55 |
56 | $guzzle = new Client([
57 | 'base_uri' => $uri,
58 | RequestOptions::CONNECT_TIMEOUT => 0,
59 | RequestOptions::READ_TIMEOUT => 0,
60 | RequestOptions::TIMEOUT => 0,
61 | RequestOptions::AUTH => [
62 | $input->getOption('username'),
63 | $input->getOption('password'),
64 | ],
65 | ]);
66 |
67 | $data = [
68 | 'count' => $input->getOption('limit'),
69 | 'ackmode' => $input->getOption('ackmode'),
70 | 'encoding' => 'auto',
71 | ];
72 | if (null === $data['count']) {
73 | $data['count'] = \PHP_INT_MAX;
74 | }
75 |
76 | $response = $guzzle->request('POST', sprintf('/api/queues/%s/%s/get', $vHost, $queueName), [
77 | RequestOptions::HEADERS => [
78 | 'Accept-Encoding' => 'gzip',
79 | 'Transfer-Encoding' => 'chunked',
80 | ],
81 | RequestOptions::JSON => $data,
82 | ]);
83 | if (200 !== $response->getStatusCode()) {
84 | throw new \RuntimeException('Error '.$response->getStatusCode()."\n".$response->getBody()->getContents());
85 | }
86 |
87 | $stream = $response->getBody();
88 | while (!$stream->eof()) {
89 | $output->write($stream->read(100000));
90 | }
91 |
92 | if ($output instanceof ConsoleOutputInterface && $output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
93 | $output->getErrorOutput()->writeln(sprintf(
94 | 'Dumped %s bytes (gzip) from queue %s',
95 | $response->hasHeader('x-encoded-content-length') ? $response->getHeaderLine('x-encoded-content-length') : 'unspecified',
96 | $queueName
97 | ));
98 | }
99 |
100 | return Command::SUCCESS;
101 | }
102 | }
103 |
--------------------------------------------------------------------------------
/src/Command/Publish.php:
--------------------------------------------------------------------------------
1 | setDescription('Publishes messages from STDIN to the specified queue (NOT an exchange but only a queue)')
30 | ->addOption('host', null, InputOption::VALUE_REQUIRED, 'RabbitMQ host to connect to', 'localhost')
31 | ->addOption('port', null, InputOption::VALUE_REQUIRED, 'RabbitMQ message port', self::DEFAULT_RABBITMQ_PORT)
32 | ->addOption('username', null, InputOption::VALUE_REQUIRED, 'Username for the RabbitMQ connection', 'guest')
33 | ->addOption('password', null, InputOption::VALUE_REQUIRED, 'Password for the RabbitMQ connection', 'guest')
34 | ->addOption('vhost', null, InputOption::VALUE_REQUIRED, 'RabbitMQ VHost where the queue is declared', '/')
35 | ->addOption('purge', null, InputOption::VALUE_NONE, 'Whether or not the queue should be purged before publishing')
36 | ->addArgument('queue', InputArgument::REQUIRED, 'Name of the queue to publish the messages to')
37 | ;
38 | }
39 |
40 | protected function execute(InputInterface $input, OutputInterface $output): int
41 | {
42 | $host = $input->getOption('host');
43 | \assert(\is_string($host), 'host name is a string');
44 | if (false !== mb_strpos($host, ':')) {
45 | throw new \UnexpectedValueException('You can not specify the port as part of the hostname. Use the separate "port" option.');
46 | }
47 |
48 | $queueName = $input->getArgument('queue');
49 | \assert(\is_string($queueName));
50 |
51 | $data = $this->readStdin();
52 | $messages = Json::decode($data, true);
53 |
54 | $factory = new AmqpConnectionFactory([
55 | 'host' => $input->getOption('host'),
56 | 'port' => $input->getOption('port'),
57 | 'vhost' => $input->getOption('vhost'),
58 | 'user' => $input->getOption('username'),
59 | 'pass' => $input->getOption('password'),
60 | 'persisted' => false,
61 | ]);
62 |
63 | $context = $factory->createContext();
64 | $queue = $context->createQueue($queueName);
65 | $producer = $context->createProducer();
66 |
67 | if ($input->getOption('purge')) {
68 | $context->purgeQueue($queue);
69 | }
70 |
71 | foreach ($messages as $message) {
72 | $msg = new AmqpMessage($message['payload'] ?? '', [], $message['properties'] ?? []);
73 | $msg->setRoutingKey($message['routing_key'] ?? null);
74 | $producer->send($queue, $msg);
75 | }
76 |
77 | if ($output instanceof ConsoleOutputInterface && $output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {
78 | $output->getErrorOutput()->writeln(sprintf(
79 | 'Published %s messages to queue %s',
80 | \count($messages),
81 | $queueName
82 | ));
83 | }
84 |
85 | return Command::SUCCESS;
86 | }
87 |
88 | private function readStdin(): string
89 | {
90 | $data = '';
91 | while (!feof(\STDIN)) {
92 | $data .= fread(\STDIN, 1024);
93 | }
94 |
95 | if ('' === $data) {
96 | throw new \InvalidArgumentException('No data received from STDIN');
97 | }
98 |
99 | return $data;
100 | }
101 | }
102 |
--------------------------------------------------------------------------------