├── .github └── workflows │ └── php.yml ├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── contrib ├── Dockerfile ├── coverage-checker.php ├── pre-commit └── setup.sh ├── phpcs.xml ├── phpmd.xml ├── phpunit.xml ├── sample └── jwt-manager-sample.php ├── src └── JwtManager.php └── tests └── JwtManagerTest.php /.github/workflows/php.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | 9 | jobs: 10 | build: 11 | 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - uses: actions/checkout@v3 16 | 17 | - name: Setup PHP Action 18 | uses: shivammathur/setup-php@2.26.0 19 | with: 20 | php-version: 8.3 21 | extensions: dom 22 | coverage: xdebug 23 | 24 | - name: Validate composer.json and composer.lock 25 | run: composer validate 26 | 27 | - name: Cache Composer packages 28 | id: composer-cache 29 | uses: actions/cache@v3 30 | with: 31 | path: vendor 32 | key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} 33 | restore-keys: | 34 | ${{ runner.os }}-php- 35 | 36 | - name: Install dependencies 37 | if: steps.composer-cache.outputs.cache-hit != 'true' 38 | run: composer install --prefer-dist --no-progress --no-suggest 39 | 40 | - name: Run validations 41 | run: composer check 42 | 43 | - name: export coverage 44 | run: | 45 | export CODECOV_TOKEN="${{ secrets.CODECOV_TOKEN }}" 46 | bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | coverage 2 | vendor 3 | .scannerwork 4 | .phpunit.result.cache -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JWT Manager PHP 2 | 3 | [![Latest Version](https://img.shields.io/github/v/release/not-empty/jwt-manager-php-lib.svg?style=flat-square)](https://github.com/not-empty/jwt-manager-php-lib/releases) 4 | [![codecov](https://codecov.io/gh/not-empty/jwt-manager-php-lib/graph/badge.svg?token=AEMV163UW6)](https://codecov.io/gh/not-empty/jwt-manager-php-lib) 5 | [![CI Build](https://img.shields.io/github/actions/workflow/status/not-empty/jwt-manager-php-lib/php.yml)](https://github.com/not-empty/jwt-manager-php-lib/actions/workflows/php.yml) 6 | [![Downloads Old](https://img.shields.io/packagist/dt/kiwfy/jwt-manager-php?logo=old&label=downloads%20legacy)](https://packagist.org/packages/kiwfy/jwt-manager-php) 7 | [![Downloads](https://img.shields.io/packagist/dt/not-empty/jwt-manager-php-lib?logo=old&label=downloads&v2)](https://packagist.org/packages/not-empty/jwt-manager-php-lib) 8 | [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) 9 | [![Packagist License (custom server)](https://img.shields.io/packagist/l/not-empty/jwt-manager-php-lib?v2)](https://github.com/not-empty/jwt-manager-php-lib/blob/master/LICENSE) 10 | 11 | PHP library to manage JWT authentication 12 | 13 | ### Installation 14 | 15 | [Release 7.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/7.0.0) Requires [PHP](https://php.net) 8.3 16 | 17 | [Release 6.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/6.0.0) Requires [PHP](https://php.net) 8.2 18 | 19 | [Release 5.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/5.0.0) Requires [PHP](https://php.net) 8.1 20 | 21 | [Release 4.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/4.0.0) Requires [PHP](https://php.net) 7.4 22 | 23 | [Release 3.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/3.0.0) Requires [PHP](https://php.net) 7.3 24 | 25 | [Release 2.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/2.0.0) Requires [PHP](https://php.net) 7.2 26 | 27 | [Release 1.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/1.0.0) Requires [PHP](https://php.net) 7.1 28 | 29 | The recommended way to install is through [Composer](https://getcomposer.org/). 30 | 31 | ```sh 32 | composer require not-empty/jwt-manager-php-lib 33 | ``` 34 | 35 | ### Usage 36 | 37 | Generating a token 38 | 39 | ```php 40 | use JwtManager\JwtManager; 41 | $secret = '77682b9441bb7daa7a1fa6eb7522b689'; 42 | $context = 'test'; 43 | $expire = 30; 44 | $renew = 10; 45 | $jwtManager = new JwtManager( 46 | $secret, 47 | $context, 48 | $expire, 49 | $renew 50 | ); 51 | $tokenGenerated = $jwtManager->generate('test'); 52 | var_dump($tokenGenerated); 53 | ``` 54 | 55 | Dedoce the token and return the data 56 | 57 | ```php 58 | $result = $jwtManager->decodePayload($tokenGenerated); 59 | var_dump($result); 60 | ``` 61 | 62 | Verify if token is valid 63 | 64 | ```php 65 | $result = $jwtManager->isValid($tokenGenerated); 66 | var_dump($result); 67 | ``` 68 | 69 | Check if a token is on time 70 | 71 | ```php 72 | $result = $jwtManager->isOnTime($tokenGenerated); 73 | var_dump($result); 74 | ``` 75 | 76 | Get the expiration time of a token 77 | 78 | ```php 79 | $result = $jwtManager->getexpire($tokenGenerated); 80 | var_dump($result); 81 | ``` 82 | 83 | Check if need to refresh a token 84 | 85 | ```php 86 | $result = $jwtManager->tokenNeedToRefresh($tokenGenerated); 87 | var_dump($result); 88 | ``` 89 | 90 | if you want an environment to run or test it, you can build and install dependences like this 91 | 92 | ```sh 93 | docker build --build-arg PHP_VERSION=8.3-rc-cli -t not-empty/jwt-manager-php-lib:php83 -f contrib/Dockerfile . 94 | ``` 95 | 96 | Access the container 97 | ```sh 98 | docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php83 bash 99 | ``` 100 | 101 | Verify if all dependencies is installed 102 | ```sh 103 | composer install --no-dev --prefer-dist 104 | ``` 105 | 106 | and run 107 | ```sh 108 | php sample/jwt-manager-sample.php 109 | ``` 110 | 111 | ### Development 112 | 113 | Want to contribute? Great! 114 | 115 | The project using a simple code. 116 | Make a change in your file and be careful with your updates! 117 | **Any new code will only be accepted with all validations.** 118 | 119 | To ensure that the entire project is fine: 120 | 121 | First you need to building a correct environment to install all dependences 122 | 123 | ```sh 124 | docker build --build-arg PHP_VERSION=8.3-rc-cli -t not-empty/jwt-manager-php-lib:php83 -f contrib/Dockerfile . 125 | ``` 126 | 127 | Access the container 128 | ```sh 129 | docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php83 bash 130 | ``` 131 | 132 | Install all dependences 133 | ```sh 134 | composer install --dev --prefer-dist 135 | ``` 136 | 137 | Run all validations 138 | ```sh 139 | composer check 140 | ``` 141 | 142 | **Not Empty Foundation - Free codes, full minds** 143 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "not-empty/jwt-manager-php-lib", 3 | "description": "PHP library to manage JWT authentication", 4 | "version": "7.0.1", 5 | "type": "library", 6 | "license": "GPL-3.0-only", 7 | "require": { 8 | "php": "^8.3" 9 | }, 10 | "require-dev": { 11 | "phpunit/phpunit": "^9.6", 12 | "mockery/mockery": "^1.6", 13 | "squizlabs/php_codesniffer": "^3.7", 14 | "phpmd/phpmd": "^2.14" 15 | }, 16 | "authors": [ 17 | { 18 | "name": "Not Empty Foundation", 19 | "email": "dev@not-empty.com" 20 | } 21 | ], 22 | "autoload": { 23 | "psr-4": { 24 | "JwtManager\\": "src/" 25 | } 26 | }, 27 | "scripts": { 28 | "post-install-cmd": [ 29 | "bash contrib/setup.sh" 30 | ], 31 | "check": [ 32 | "@lint", 33 | "@cs", 34 | "@mess", 35 | "@test", 36 | "@ccu" 37 | ], 38 | "mess" : [ 39 | "vendor/bin/phpmd ./src text phpmd.xml", 40 | "vendor/bin/phpmd ./sample text phpmd.xml" 41 | ], 42 | "lint": [ 43 | "find ./src -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0", 44 | "find ./tests -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0", 45 | "find ./sample -name '*.php' -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0" 46 | ], 47 | "cs": "vendor/bin/phpcs", 48 | "test": "phpdbg -qrr vendor/bin/phpunit --configuration phpunit.xml -d memory_limit=1024M", 49 | "ccu" : "php contrib/coverage-checker.php coverage/coverage.xml 100" 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /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": "8d747d90af7cbd44919afd8d4310e096", 8 | "packages": [], 9 | "packages-dev": [ 10 | { 11 | "name": "composer/pcre", 12 | "version": "3.3.2", 13 | "source": { 14 | "type": "git", 15 | "url": "https://github.com/composer/pcre.git", 16 | "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e" 17 | }, 18 | "dist": { 19 | "type": "zip", 20 | "url": "https://api.github.com/repos/composer/pcre/zipball/b2bed4734f0cc156ee1fe9c0da2550420d99a21e", 21 | "reference": "b2bed4734f0cc156ee1fe9c0da2550420d99a21e", 22 | "shasum": "" 23 | }, 24 | "require": { 25 | "php": "^7.4 || ^8.0" 26 | }, 27 | "conflict": { 28 | "phpstan/phpstan": "<1.11.10" 29 | }, 30 | "require-dev": { 31 | "phpstan/phpstan": "^1.12 || ^2", 32 | "phpstan/phpstan-strict-rules": "^1 || ^2", 33 | "phpunit/phpunit": "^8 || ^9" 34 | }, 35 | "type": "library", 36 | "extra": { 37 | "phpstan": { 38 | "includes": [ 39 | "extension.neon" 40 | ] 41 | }, 42 | "branch-alias": { 43 | "dev-main": "3.x-dev" 44 | } 45 | }, 46 | "autoload": { 47 | "psr-4": { 48 | "Composer\\Pcre\\": "src" 49 | } 50 | }, 51 | "notification-url": "https://packagist.org/downloads/", 52 | "license": [ 53 | "MIT" 54 | ], 55 | "authors": [ 56 | { 57 | "name": "Jordi Boggiano", 58 | "email": "j.boggiano@seld.be", 59 | "homepage": "http://seld.be" 60 | } 61 | ], 62 | "description": "PCRE wrapping library that offers type-safe preg_* replacements.", 63 | "keywords": [ 64 | "PCRE", 65 | "preg", 66 | "regex", 67 | "regular expression" 68 | ], 69 | "support": { 70 | "issues": "https://github.com/composer/pcre/issues", 71 | "source": "https://github.com/composer/pcre/tree/3.3.2" 72 | }, 73 | "funding": [ 74 | { 75 | "url": "https://packagist.com", 76 | "type": "custom" 77 | }, 78 | { 79 | "url": "https://github.com/composer", 80 | "type": "github" 81 | }, 82 | { 83 | "url": "https://tidelift.com/funding/github/packagist/composer/composer", 84 | "type": "tidelift" 85 | } 86 | ], 87 | "time": "2024-11-12T16:29:46+00:00" 88 | }, 89 | { 90 | "name": "composer/xdebug-handler", 91 | "version": "3.0.5", 92 | "source": { 93 | "type": "git", 94 | "url": "https://github.com/composer/xdebug-handler.git", 95 | "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" 96 | }, 97 | "dist": { 98 | "type": "zip", 99 | "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", 100 | "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", 101 | "shasum": "" 102 | }, 103 | "require": { 104 | "composer/pcre": "^1 || ^2 || ^3", 105 | "php": "^7.2.5 || ^8.0", 106 | "psr/log": "^1 || ^2 || ^3" 107 | }, 108 | "require-dev": { 109 | "phpstan/phpstan": "^1.0", 110 | "phpstan/phpstan-strict-rules": "^1.1", 111 | "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" 112 | }, 113 | "type": "library", 114 | "autoload": { 115 | "psr-4": { 116 | "Composer\\XdebugHandler\\": "src" 117 | } 118 | }, 119 | "notification-url": "https://packagist.org/downloads/", 120 | "license": [ 121 | "MIT" 122 | ], 123 | "authors": [ 124 | { 125 | "name": "John Stevenson", 126 | "email": "john-stevenson@blueyonder.co.uk" 127 | } 128 | ], 129 | "description": "Restarts a process without Xdebug.", 130 | "keywords": [ 131 | "Xdebug", 132 | "performance" 133 | ], 134 | "support": { 135 | "irc": "ircs://irc.libera.chat:6697/composer", 136 | "issues": "https://github.com/composer/xdebug-handler/issues", 137 | "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" 138 | }, 139 | "funding": [ 140 | { 141 | "url": "https://packagist.com", 142 | "type": "custom" 143 | }, 144 | { 145 | "url": "https://github.com/composer", 146 | "type": "github" 147 | }, 148 | { 149 | "url": "https://tidelift.com/funding/github/packagist/composer/composer", 150 | "type": "tidelift" 151 | } 152 | ], 153 | "time": "2024-05-06T16:37:16+00:00" 154 | }, 155 | { 156 | "name": "doctrine/instantiator", 157 | "version": "2.0.0", 158 | "source": { 159 | "type": "git", 160 | "url": "https://github.com/doctrine/instantiator.git", 161 | "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" 162 | }, 163 | "dist": { 164 | "type": "zip", 165 | "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", 166 | "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", 167 | "shasum": "" 168 | }, 169 | "require": { 170 | "php": "^8.1" 171 | }, 172 | "require-dev": { 173 | "doctrine/coding-standard": "^11", 174 | "ext-pdo": "*", 175 | "ext-phar": "*", 176 | "phpbench/phpbench": "^1.2", 177 | "phpstan/phpstan": "^1.9.4", 178 | "phpstan/phpstan-phpunit": "^1.3", 179 | "phpunit/phpunit": "^9.5.27", 180 | "vimeo/psalm": "^5.4" 181 | }, 182 | "type": "library", 183 | "autoload": { 184 | "psr-4": { 185 | "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" 186 | } 187 | }, 188 | "notification-url": "https://packagist.org/downloads/", 189 | "license": [ 190 | "MIT" 191 | ], 192 | "authors": [ 193 | { 194 | "name": "Marco Pivetta", 195 | "email": "ocramius@gmail.com", 196 | "homepage": "https://ocramius.github.io/" 197 | } 198 | ], 199 | "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", 200 | "homepage": "https://www.doctrine-project.org/projects/instantiator.html", 201 | "keywords": [ 202 | "constructor", 203 | "instantiate" 204 | ], 205 | "support": { 206 | "issues": "https://github.com/doctrine/instantiator/issues", 207 | "source": "https://github.com/doctrine/instantiator/tree/2.0.0" 208 | }, 209 | "funding": [ 210 | { 211 | "url": "https://www.doctrine-project.org/sponsorship.html", 212 | "type": "custom" 213 | }, 214 | { 215 | "url": "https://www.patreon.com/phpdoctrine", 216 | "type": "patreon" 217 | }, 218 | { 219 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", 220 | "type": "tidelift" 221 | } 222 | ], 223 | "time": "2022-12-30T00:23:10+00:00" 224 | }, 225 | { 226 | "name": "hamcrest/hamcrest-php", 227 | "version": "v2.0.1", 228 | "source": { 229 | "type": "git", 230 | "url": "https://github.com/hamcrest/hamcrest-php.git", 231 | "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" 232 | }, 233 | "dist": { 234 | "type": "zip", 235 | "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", 236 | "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", 237 | "shasum": "" 238 | }, 239 | "require": { 240 | "php": "^5.3|^7.0|^8.0" 241 | }, 242 | "replace": { 243 | "cordoval/hamcrest-php": "*", 244 | "davedevelopment/hamcrest-php": "*", 245 | "kodova/hamcrest-php": "*" 246 | }, 247 | "require-dev": { 248 | "phpunit/php-file-iterator": "^1.4 || ^2.0", 249 | "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" 250 | }, 251 | "type": "library", 252 | "extra": { 253 | "branch-alias": { 254 | "dev-master": "2.1-dev" 255 | } 256 | }, 257 | "autoload": { 258 | "classmap": [ 259 | "hamcrest" 260 | ] 261 | }, 262 | "notification-url": "https://packagist.org/downloads/", 263 | "license": [ 264 | "BSD-3-Clause" 265 | ], 266 | "description": "This is the PHP port of Hamcrest Matchers", 267 | "keywords": [ 268 | "test" 269 | ], 270 | "support": { 271 | "issues": "https://github.com/hamcrest/hamcrest-php/issues", 272 | "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" 273 | }, 274 | "time": "2020-07-09T08:09:16+00:00" 275 | }, 276 | { 277 | "name": "mockery/mockery", 278 | "version": "1.6.12", 279 | "source": { 280 | "type": "git", 281 | "url": "https://github.com/mockery/mockery.git", 282 | "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" 283 | }, 284 | "dist": { 285 | "type": "zip", 286 | "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", 287 | "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", 288 | "shasum": "" 289 | }, 290 | "require": { 291 | "hamcrest/hamcrest-php": "^2.0.1", 292 | "lib-pcre": ">=7.0", 293 | "php": ">=7.3" 294 | }, 295 | "conflict": { 296 | "phpunit/phpunit": "<8.0" 297 | }, 298 | "require-dev": { 299 | "phpunit/phpunit": "^8.5 || ^9.6.17", 300 | "symplify/easy-coding-standard": "^12.1.14" 301 | }, 302 | "type": "library", 303 | "autoload": { 304 | "files": [ 305 | "library/helpers.php", 306 | "library/Mockery.php" 307 | ], 308 | "psr-4": { 309 | "Mockery\\": "library/Mockery" 310 | } 311 | }, 312 | "notification-url": "https://packagist.org/downloads/", 313 | "license": [ 314 | "BSD-3-Clause" 315 | ], 316 | "authors": [ 317 | { 318 | "name": "Pádraic Brady", 319 | "email": "padraic.brady@gmail.com", 320 | "homepage": "https://github.com/padraic", 321 | "role": "Author" 322 | }, 323 | { 324 | "name": "Dave Marshall", 325 | "email": "dave.marshall@atstsolutions.co.uk", 326 | "homepage": "https://davedevelopment.co.uk", 327 | "role": "Developer" 328 | }, 329 | { 330 | "name": "Nathanael Esayeas", 331 | "email": "nathanael.esayeas@protonmail.com", 332 | "homepage": "https://github.com/ghostwriter", 333 | "role": "Lead Developer" 334 | } 335 | ], 336 | "description": "Mockery is a simple yet flexible PHP mock object framework", 337 | "homepage": "https://github.com/mockery/mockery", 338 | "keywords": [ 339 | "BDD", 340 | "TDD", 341 | "library", 342 | "mock", 343 | "mock objects", 344 | "mockery", 345 | "stub", 346 | "test", 347 | "test double", 348 | "testing" 349 | ], 350 | "support": { 351 | "docs": "https://docs.mockery.io/", 352 | "issues": "https://github.com/mockery/mockery/issues", 353 | "rss": "https://github.com/mockery/mockery/releases.atom", 354 | "security": "https://github.com/mockery/mockery/security/advisories", 355 | "source": "https://github.com/mockery/mockery" 356 | }, 357 | "time": "2024-05-16T03:13:13+00:00" 358 | }, 359 | { 360 | "name": "myclabs/deep-copy", 361 | "version": "1.12.1", 362 | "source": { 363 | "type": "git", 364 | "url": "https://github.com/myclabs/DeepCopy.git", 365 | "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" 366 | }, 367 | "dist": { 368 | "type": "zip", 369 | "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", 370 | "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", 371 | "shasum": "" 372 | }, 373 | "require": { 374 | "php": "^7.1 || ^8.0" 375 | }, 376 | "conflict": { 377 | "doctrine/collections": "<1.6.8", 378 | "doctrine/common": "<2.13.3 || >=3 <3.2.2" 379 | }, 380 | "require-dev": { 381 | "doctrine/collections": "^1.6.8", 382 | "doctrine/common": "^2.13.3 || ^3.2.2", 383 | "phpspec/prophecy": "^1.10", 384 | "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" 385 | }, 386 | "type": "library", 387 | "autoload": { 388 | "files": [ 389 | "src/DeepCopy/deep_copy.php" 390 | ], 391 | "psr-4": { 392 | "DeepCopy\\": "src/DeepCopy/" 393 | } 394 | }, 395 | "notification-url": "https://packagist.org/downloads/", 396 | "license": [ 397 | "MIT" 398 | ], 399 | "description": "Create deep copies (clones) of your objects", 400 | "keywords": [ 401 | "clone", 402 | "copy", 403 | "duplicate", 404 | "object", 405 | "object graph" 406 | ], 407 | "support": { 408 | "issues": "https://github.com/myclabs/DeepCopy/issues", 409 | "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" 410 | }, 411 | "funding": [ 412 | { 413 | "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", 414 | "type": "tidelift" 415 | } 416 | ], 417 | "time": "2024-11-08T17:47:46+00:00" 418 | }, 419 | { 420 | "name": "nikic/php-parser", 421 | "version": "v5.4.0", 422 | "source": { 423 | "type": "git", 424 | "url": "https://github.com/nikic/PHP-Parser.git", 425 | "reference": "447a020a1f875a434d62f2a401f53b82a396e494" 426 | }, 427 | "dist": { 428 | "type": "zip", 429 | "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", 430 | "reference": "447a020a1f875a434d62f2a401f53b82a396e494", 431 | "shasum": "" 432 | }, 433 | "require": { 434 | "ext-ctype": "*", 435 | "ext-json": "*", 436 | "ext-tokenizer": "*", 437 | "php": ">=7.4" 438 | }, 439 | "require-dev": { 440 | "ircmaxell/php-yacc": "^0.0.7", 441 | "phpunit/phpunit": "^9.0" 442 | }, 443 | "bin": [ 444 | "bin/php-parse" 445 | ], 446 | "type": "library", 447 | "extra": { 448 | "branch-alias": { 449 | "dev-master": "5.0-dev" 450 | } 451 | }, 452 | "autoload": { 453 | "psr-4": { 454 | "PhpParser\\": "lib/PhpParser" 455 | } 456 | }, 457 | "notification-url": "https://packagist.org/downloads/", 458 | "license": [ 459 | "BSD-3-Clause" 460 | ], 461 | "authors": [ 462 | { 463 | "name": "Nikita Popov" 464 | } 465 | ], 466 | "description": "A PHP parser written in PHP", 467 | "keywords": [ 468 | "parser", 469 | "php" 470 | ], 471 | "support": { 472 | "issues": "https://github.com/nikic/PHP-Parser/issues", 473 | "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" 474 | }, 475 | "time": "2024-12-30T11:07:19+00:00" 476 | }, 477 | { 478 | "name": "pdepend/pdepend", 479 | "version": "2.16.2", 480 | "source": { 481 | "type": "git", 482 | "url": "https://github.com/pdepend/pdepend.git", 483 | "reference": "f942b208dc2a0868454d01b29f0c75bbcfc6ed58" 484 | }, 485 | "dist": { 486 | "type": "zip", 487 | "url": "https://api.github.com/repos/pdepend/pdepend/zipball/f942b208dc2a0868454d01b29f0c75bbcfc6ed58", 488 | "reference": "f942b208dc2a0868454d01b29f0c75bbcfc6ed58", 489 | "shasum": "" 490 | }, 491 | "require": { 492 | "php": ">=5.3.7", 493 | "symfony/config": "^2.3.0|^3|^4|^5|^6.0|^7.0", 494 | "symfony/dependency-injection": "^2.3.0|^3|^4|^5|^6.0|^7.0", 495 | "symfony/filesystem": "^2.3.0|^3|^4|^5|^6.0|^7.0", 496 | "symfony/polyfill-mbstring": "^1.19" 497 | }, 498 | "require-dev": { 499 | "easy-doc/easy-doc": "0.0.0|^1.2.3", 500 | "gregwar/rst": "^1.0", 501 | "squizlabs/php_codesniffer": "^2.0.0" 502 | }, 503 | "bin": [ 504 | "src/bin/pdepend" 505 | ], 506 | "type": "library", 507 | "extra": { 508 | "branch-alias": { 509 | "dev-master": "2.x-dev" 510 | } 511 | }, 512 | "autoload": { 513 | "psr-4": { 514 | "PDepend\\": "src/main/php/PDepend" 515 | } 516 | }, 517 | "notification-url": "https://packagist.org/downloads/", 518 | "license": [ 519 | "BSD-3-Clause" 520 | ], 521 | "description": "Official version of pdepend to be handled with Composer", 522 | "keywords": [ 523 | "PHP Depend", 524 | "PHP_Depend", 525 | "dev", 526 | "pdepend" 527 | ], 528 | "support": { 529 | "issues": "https://github.com/pdepend/pdepend/issues", 530 | "source": "https://github.com/pdepend/pdepend/tree/2.16.2" 531 | }, 532 | "funding": [ 533 | { 534 | "url": "https://tidelift.com/funding/github/packagist/pdepend/pdepend", 535 | "type": "tidelift" 536 | } 537 | ], 538 | "time": "2023-12-17T18:09:59+00:00" 539 | }, 540 | { 541 | "name": "phar-io/manifest", 542 | "version": "2.0.4", 543 | "source": { 544 | "type": "git", 545 | "url": "https://github.com/phar-io/manifest.git", 546 | "reference": "54750ef60c58e43759730615a392c31c80e23176" 547 | }, 548 | "dist": { 549 | "type": "zip", 550 | "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", 551 | "reference": "54750ef60c58e43759730615a392c31c80e23176", 552 | "shasum": "" 553 | }, 554 | "require": { 555 | "ext-dom": "*", 556 | "ext-libxml": "*", 557 | "ext-phar": "*", 558 | "ext-xmlwriter": "*", 559 | "phar-io/version": "^3.0.1", 560 | "php": "^7.2 || ^8.0" 561 | }, 562 | "type": "library", 563 | "extra": { 564 | "branch-alias": { 565 | "dev-master": "2.0.x-dev" 566 | } 567 | }, 568 | "autoload": { 569 | "classmap": [ 570 | "src/" 571 | ] 572 | }, 573 | "notification-url": "https://packagist.org/downloads/", 574 | "license": [ 575 | "BSD-3-Clause" 576 | ], 577 | "authors": [ 578 | { 579 | "name": "Arne Blankerts", 580 | "email": "arne@blankerts.de", 581 | "role": "Developer" 582 | }, 583 | { 584 | "name": "Sebastian Heuer", 585 | "email": "sebastian@phpeople.de", 586 | "role": "Developer" 587 | }, 588 | { 589 | "name": "Sebastian Bergmann", 590 | "email": "sebastian@phpunit.de", 591 | "role": "Developer" 592 | } 593 | ], 594 | "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", 595 | "support": { 596 | "issues": "https://github.com/phar-io/manifest/issues", 597 | "source": "https://github.com/phar-io/manifest/tree/2.0.4" 598 | }, 599 | "funding": [ 600 | { 601 | "url": "https://github.com/theseer", 602 | "type": "github" 603 | } 604 | ], 605 | "time": "2024-03-03T12:33:53+00:00" 606 | }, 607 | { 608 | "name": "phar-io/version", 609 | "version": "3.2.1", 610 | "source": { 611 | "type": "git", 612 | "url": "https://github.com/phar-io/version.git", 613 | "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" 614 | }, 615 | "dist": { 616 | "type": "zip", 617 | "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", 618 | "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", 619 | "shasum": "" 620 | }, 621 | "require": { 622 | "php": "^7.2 || ^8.0" 623 | }, 624 | "type": "library", 625 | "autoload": { 626 | "classmap": [ 627 | "src/" 628 | ] 629 | }, 630 | "notification-url": "https://packagist.org/downloads/", 631 | "license": [ 632 | "BSD-3-Clause" 633 | ], 634 | "authors": [ 635 | { 636 | "name": "Arne Blankerts", 637 | "email": "arne@blankerts.de", 638 | "role": "Developer" 639 | }, 640 | { 641 | "name": "Sebastian Heuer", 642 | "email": "sebastian@phpeople.de", 643 | "role": "Developer" 644 | }, 645 | { 646 | "name": "Sebastian Bergmann", 647 | "email": "sebastian@phpunit.de", 648 | "role": "Developer" 649 | } 650 | ], 651 | "description": "Library for handling version information and constraints", 652 | "support": { 653 | "issues": "https://github.com/phar-io/version/issues", 654 | "source": "https://github.com/phar-io/version/tree/3.2.1" 655 | }, 656 | "time": "2022-02-21T01:04:05+00:00" 657 | }, 658 | { 659 | "name": "phpmd/phpmd", 660 | "version": "2.15.0", 661 | "source": { 662 | "type": "git", 663 | "url": "https://github.com/phpmd/phpmd.git", 664 | "reference": "74a1f56e33afad4128b886e334093e98e1b5e7c0" 665 | }, 666 | "dist": { 667 | "type": "zip", 668 | "url": "https://api.github.com/repos/phpmd/phpmd/zipball/74a1f56e33afad4128b886e334093e98e1b5e7c0", 669 | "reference": "74a1f56e33afad4128b886e334093e98e1b5e7c0", 670 | "shasum": "" 671 | }, 672 | "require": { 673 | "composer/xdebug-handler": "^1.0 || ^2.0 || ^3.0", 674 | "ext-xml": "*", 675 | "pdepend/pdepend": "^2.16.1", 676 | "php": ">=5.3.9" 677 | }, 678 | "require-dev": { 679 | "easy-doc/easy-doc": "0.0.0 || ^1.3.2", 680 | "ext-json": "*", 681 | "ext-simplexml": "*", 682 | "gregwar/rst": "^1.0", 683 | "mikey179/vfsstream": "^1.6.8", 684 | "squizlabs/php_codesniffer": "^2.9.2 || ^3.7.2" 685 | }, 686 | "bin": [ 687 | "src/bin/phpmd" 688 | ], 689 | "type": "library", 690 | "autoload": { 691 | "psr-0": { 692 | "PHPMD\\": "src/main/php" 693 | } 694 | }, 695 | "notification-url": "https://packagist.org/downloads/", 696 | "license": [ 697 | "BSD-3-Clause" 698 | ], 699 | "authors": [ 700 | { 701 | "name": "Manuel Pichler", 702 | "email": "github@manuel-pichler.de", 703 | "homepage": "https://github.com/manuelpichler", 704 | "role": "Project Founder" 705 | }, 706 | { 707 | "name": "Marc Würth", 708 | "email": "ravage@bluewin.ch", 709 | "homepage": "https://github.com/ravage84", 710 | "role": "Project Maintainer" 711 | }, 712 | { 713 | "name": "Other contributors", 714 | "homepage": "https://github.com/phpmd/phpmd/graphs/contributors", 715 | "role": "Contributors" 716 | } 717 | ], 718 | "description": "PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.", 719 | "homepage": "https://phpmd.org/", 720 | "keywords": [ 721 | "dev", 722 | "mess detection", 723 | "mess detector", 724 | "pdepend", 725 | "phpmd", 726 | "pmd" 727 | ], 728 | "support": { 729 | "irc": "irc://irc.freenode.org/phpmd", 730 | "issues": "https://github.com/phpmd/phpmd/issues", 731 | "source": "https://github.com/phpmd/phpmd/tree/2.15.0" 732 | }, 733 | "funding": [ 734 | { 735 | "url": "https://tidelift.com/funding/github/packagist/phpmd/phpmd", 736 | "type": "tidelift" 737 | } 738 | ], 739 | "time": "2023-12-11T08:22:20+00:00" 740 | }, 741 | { 742 | "name": "phpunit/php-code-coverage", 743 | "version": "9.2.32", 744 | "source": { 745 | "type": "git", 746 | "url": "https://github.com/sebastianbergmann/php-code-coverage.git", 747 | "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5" 748 | }, 749 | "dist": { 750 | "type": "zip", 751 | "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/85402a822d1ecf1db1096959413d35e1c37cf1a5", 752 | "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5", 753 | "shasum": "" 754 | }, 755 | "require": { 756 | "ext-dom": "*", 757 | "ext-libxml": "*", 758 | "ext-xmlwriter": "*", 759 | "nikic/php-parser": "^4.19.1 || ^5.1.0", 760 | "php": ">=7.3", 761 | "phpunit/php-file-iterator": "^3.0.6", 762 | "phpunit/php-text-template": "^2.0.4", 763 | "sebastian/code-unit-reverse-lookup": "^2.0.3", 764 | "sebastian/complexity": "^2.0.3", 765 | "sebastian/environment": "^5.1.5", 766 | "sebastian/lines-of-code": "^1.0.4", 767 | "sebastian/version": "^3.0.2", 768 | "theseer/tokenizer": "^1.2.3" 769 | }, 770 | "require-dev": { 771 | "phpunit/phpunit": "^9.6" 772 | }, 773 | "suggest": { 774 | "ext-pcov": "PHP extension that provides line coverage", 775 | "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" 776 | }, 777 | "type": "library", 778 | "extra": { 779 | "branch-alias": { 780 | "dev-main": "9.2.x-dev" 781 | } 782 | }, 783 | "autoload": { 784 | "classmap": [ 785 | "src/" 786 | ] 787 | }, 788 | "notification-url": "https://packagist.org/downloads/", 789 | "license": [ 790 | "BSD-3-Clause" 791 | ], 792 | "authors": [ 793 | { 794 | "name": "Sebastian Bergmann", 795 | "email": "sebastian@phpunit.de", 796 | "role": "lead" 797 | } 798 | ], 799 | "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", 800 | "homepage": "https://github.com/sebastianbergmann/php-code-coverage", 801 | "keywords": [ 802 | "coverage", 803 | "testing", 804 | "xunit" 805 | ], 806 | "support": { 807 | "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", 808 | "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", 809 | "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.32" 810 | }, 811 | "funding": [ 812 | { 813 | "url": "https://github.com/sebastianbergmann", 814 | "type": "github" 815 | } 816 | ], 817 | "time": "2024-08-22T04:23:01+00:00" 818 | }, 819 | { 820 | "name": "phpunit/php-file-iterator", 821 | "version": "3.0.6", 822 | "source": { 823 | "type": "git", 824 | "url": "https://github.com/sebastianbergmann/php-file-iterator.git", 825 | "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" 826 | }, 827 | "dist": { 828 | "type": "zip", 829 | "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", 830 | "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", 831 | "shasum": "" 832 | }, 833 | "require": { 834 | "php": ">=7.3" 835 | }, 836 | "require-dev": { 837 | "phpunit/phpunit": "^9.3" 838 | }, 839 | "type": "library", 840 | "extra": { 841 | "branch-alias": { 842 | "dev-master": "3.0-dev" 843 | } 844 | }, 845 | "autoload": { 846 | "classmap": [ 847 | "src/" 848 | ] 849 | }, 850 | "notification-url": "https://packagist.org/downloads/", 851 | "license": [ 852 | "BSD-3-Clause" 853 | ], 854 | "authors": [ 855 | { 856 | "name": "Sebastian Bergmann", 857 | "email": "sebastian@phpunit.de", 858 | "role": "lead" 859 | } 860 | ], 861 | "description": "FilterIterator implementation that filters files based on a list of suffixes.", 862 | "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", 863 | "keywords": [ 864 | "filesystem", 865 | "iterator" 866 | ], 867 | "support": { 868 | "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", 869 | "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" 870 | }, 871 | "funding": [ 872 | { 873 | "url": "https://github.com/sebastianbergmann", 874 | "type": "github" 875 | } 876 | ], 877 | "time": "2021-12-02T12:48:52+00:00" 878 | }, 879 | { 880 | "name": "phpunit/php-invoker", 881 | "version": "3.1.1", 882 | "source": { 883 | "type": "git", 884 | "url": "https://github.com/sebastianbergmann/php-invoker.git", 885 | "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" 886 | }, 887 | "dist": { 888 | "type": "zip", 889 | "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", 890 | "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", 891 | "shasum": "" 892 | }, 893 | "require": { 894 | "php": ">=7.3" 895 | }, 896 | "require-dev": { 897 | "ext-pcntl": "*", 898 | "phpunit/phpunit": "^9.3" 899 | }, 900 | "suggest": { 901 | "ext-pcntl": "*" 902 | }, 903 | "type": "library", 904 | "extra": { 905 | "branch-alias": { 906 | "dev-master": "3.1-dev" 907 | } 908 | }, 909 | "autoload": { 910 | "classmap": [ 911 | "src/" 912 | ] 913 | }, 914 | "notification-url": "https://packagist.org/downloads/", 915 | "license": [ 916 | "BSD-3-Clause" 917 | ], 918 | "authors": [ 919 | { 920 | "name": "Sebastian Bergmann", 921 | "email": "sebastian@phpunit.de", 922 | "role": "lead" 923 | } 924 | ], 925 | "description": "Invoke callables with a timeout", 926 | "homepage": "https://github.com/sebastianbergmann/php-invoker/", 927 | "keywords": [ 928 | "process" 929 | ], 930 | "support": { 931 | "issues": "https://github.com/sebastianbergmann/php-invoker/issues", 932 | "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" 933 | }, 934 | "funding": [ 935 | { 936 | "url": "https://github.com/sebastianbergmann", 937 | "type": "github" 938 | } 939 | ], 940 | "time": "2020-09-28T05:58:55+00:00" 941 | }, 942 | { 943 | "name": "phpunit/php-text-template", 944 | "version": "2.0.4", 945 | "source": { 946 | "type": "git", 947 | "url": "https://github.com/sebastianbergmann/php-text-template.git", 948 | "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" 949 | }, 950 | "dist": { 951 | "type": "zip", 952 | "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", 953 | "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", 954 | "shasum": "" 955 | }, 956 | "require": { 957 | "php": ">=7.3" 958 | }, 959 | "require-dev": { 960 | "phpunit/phpunit": "^9.3" 961 | }, 962 | "type": "library", 963 | "extra": { 964 | "branch-alias": { 965 | "dev-master": "2.0-dev" 966 | } 967 | }, 968 | "autoload": { 969 | "classmap": [ 970 | "src/" 971 | ] 972 | }, 973 | "notification-url": "https://packagist.org/downloads/", 974 | "license": [ 975 | "BSD-3-Clause" 976 | ], 977 | "authors": [ 978 | { 979 | "name": "Sebastian Bergmann", 980 | "email": "sebastian@phpunit.de", 981 | "role": "lead" 982 | } 983 | ], 984 | "description": "Simple template engine.", 985 | "homepage": "https://github.com/sebastianbergmann/php-text-template/", 986 | "keywords": [ 987 | "template" 988 | ], 989 | "support": { 990 | "issues": "https://github.com/sebastianbergmann/php-text-template/issues", 991 | "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" 992 | }, 993 | "funding": [ 994 | { 995 | "url": "https://github.com/sebastianbergmann", 996 | "type": "github" 997 | } 998 | ], 999 | "time": "2020-10-26T05:33:50+00:00" 1000 | }, 1001 | { 1002 | "name": "phpunit/php-timer", 1003 | "version": "5.0.3", 1004 | "source": { 1005 | "type": "git", 1006 | "url": "https://github.com/sebastianbergmann/php-timer.git", 1007 | "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" 1008 | }, 1009 | "dist": { 1010 | "type": "zip", 1011 | "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", 1012 | "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", 1013 | "shasum": "" 1014 | }, 1015 | "require": { 1016 | "php": ">=7.3" 1017 | }, 1018 | "require-dev": { 1019 | "phpunit/phpunit": "^9.3" 1020 | }, 1021 | "type": "library", 1022 | "extra": { 1023 | "branch-alias": { 1024 | "dev-master": "5.0-dev" 1025 | } 1026 | }, 1027 | "autoload": { 1028 | "classmap": [ 1029 | "src/" 1030 | ] 1031 | }, 1032 | "notification-url": "https://packagist.org/downloads/", 1033 | "license": [ 1034 | "BSD-3-Clause" 1035 | ], 1036 | "authors": [ 1037 | { 1038 | "name": "Sebastian Bergmann", 1039 | "email": "sebastian@phpunit.de", 1040 | "role": "lead" 1041 | } 1042 | ], 1043 | "description": "Utility class for timing", 1044 | "homepage": "https://github.com/sebastianbergmann/php-timer/", 1045 | "keywords": [ 1046 | "timer" 1047 | ], 1048 | "support": { 1049 | "issues": "https://github.com/sebastianbergmann/php-timer/issues", 1050 | "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" 1051 | }, 1052 | "funding": [ 1053 | { 1054 | "url": "https://github.com/sebastianbergmann", 1055 | "type": "github" 1056 | } 1057 | ], 1058 | "time": "2020-10-26T13:16:10+00:00" 1059 | }, 1060 | { 1061 | "name": "phpunit/phpunit", 1062 | "version": "9.6.22", 1063 | "source": { 1064 | "type": "git", 1065 | "url": "https://github.com/sebastianbergmann/phpunit.git", 1066 | "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c" 1067 | }, 1068 | "dist": { 1069 | "type": "zip", 1070 | "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f80235cb4d3caa59ae09be3adf1ded27521d1a9c", 1071 | "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c", 1072 | "shasum": "" 1073 | }, 1074 | "require": { 1075 | "doctrine/instantiator": "^1.5.0 || ^2", 1076 | "ext-dom": "*", 1077 | "ext-json": "*", 1078 | "ext-libxml": "*", 1079 | "ext-mbstring": "*", 1080 | "ext-xml": "*", 1081 | "ext-xmlwriter": "*", 1082 | "myclabs/deep-copy": "^1.12.1", 1083 | "phar-io/manifest": "^2.0.4", 1084 | "phar-io/version": "^3.2.1", 1085 | "php": ">=7.3", 1086 | "phpunit/php-code-coverage": "^9.2.32", 1087 | "phpunit/php-file-iterator": "^3.0.6", 1088 | "phpunit/php-invoker": "^3.1.1", 1089 | "phpunit/php-text-template": "^2.0.4", 1090 | "phpunit/php-timer": "^5.0.3", 1091 | "sebastian/cli-parser": "^1.0.2", 1092 | "sebastian/code-unit": "^1.0.8", 1093 | "sebastian/comparator": "^4.0.8", 1094 | "sebastian/diff": "^4.0.6", 1095 | "sebastian/environment": "^5.1.5", 1096 | "sebastian/exporter": "^4.0.6", 1097 | "sebastian/global-state": "^5.0.7", 1098 | "sebastian/object-enumerator": "^4.0.4", 1099 | "sebastian/resource-operations": "^3.0.4", 1100 | "sebastian/type": "^3.2.1", 1101 | "sebastian/version": "^3.0.2" 1102 | }, 1103 | "suggest": { 1104 | "ext-soap": "To be able to generate mocks based on WSDL files", 1105 | "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" 1106 | }, 1107 | "bin": [ 1108 | "phpunit" 1109 | ], 1110 | "type": "library", 1111 | "extra": { 1112 | "branch-alias": { 1113 | "dev-master": "9.6-dev" 1114 | } 1115 | }, 1116 | "autoload": { 1117 | "files": [ 1118 | "src/Framework/Assert/Functions.php" 1119 | ], 1120 | "classmap": [ 1121 | "src/" 1122 | ] 1123 | }, 1124 | "notification-url": "https://packagist.org/downloads/", 1125 | "license": [ 1126 | "BSD-3-Clause" 1127 | ], 1128 | "authors": [ 1129 | { 1130 | "name": "Sebastian Bergmann", 1131 | "email": "sebastian@phpunit.de", 1132 | "role": "lead" 1133 | } 1134 | ], 1135 | "description": "The PHP Unit Testing framework.", 1136 | "homepage": "https://phpunit.de/", 1137 | "keywords": [ 1138 | "phpunit", 1139 | "testing", 1140 | "xunit" 1141 | ], 1142 | "support": { 1143 | "issues": "https://github.com/sebastianbergmann/phpunit/issues", 1144 | "security": "https://github.com/sebastianbergmann/phpunit/security/policy", 1145 | "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.22" 1146 | }, 1147 | "funding": [ 1148 | { 1149 | "url": "https://phpunit.de/sponsors.html", 1150 | "type": "custom" 1151 | }, 1152 | { 1153 | "url": "https://github.com/sebastianbergmann", 1154 | "type": "github" 1155 | }, 1156 | { 1157 | "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", 1158 | "type": "tidelift" 1159 | } 1160 | ], 1161 | "time": "2024-12-05T13:48:26+00:00" 1162 | }, 1163 | { 1164 | "name": "psr/container", 1165 | "version": "2.0.2", 1166 | "source": { 1167 | "type": "git", 1168 | "url": "https://github.com/php-fig/container.git", 1169 | "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" 1170 | }, 1171 | "dist": { 1172 | "type": "zip", 1173 | "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", 1174 | "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", 1175 | "shasum": "" 1176 | }, 1177 | "require": { 1178 | "php": ">=7.4.0" 1179 | }, 1180 | "type": "library", 1181 | "extra": { 1182 | "branch-alias": { 1183 | "dev-master": "2.0.x-dev" 1184 | } 1185 | }, 1186 | "autoload": { 1187 | "psr-4": { 1188 | "Psr\\Container\\": "src/" 1189 | } 1190 | }, 1191 | "notification-url": "https://packagist.org/downloads/", 1192 | "license": [ 1193 | "MIT" 1194 | ], 1195 | "authors": [ 1196 | { 1197 | "name": "PHP-FIG", 1198 | "homepage": "https://www.php-fig.org/" 1199 | } 1200 | ], 1201 | "description": "Common Container Interface (PHP FIG PSR-11)", 1202 | "homepage": "https://github.com/php-fig/container", 1203 | "keywords": [ 1204 | "PSR-11", 1205 | "container", 1206 | "container-interface", 1207 | "container-interop", 1208 | "psr" 1209 | ], 1210 | "support": { 1211 | "issues": "https://github.com/php-fig/container/issues", 1212 | "source": "https://github.com/php-fig/container/tree/2.0.2" 1213 | }, 1214 | "time": "2021-11-05T16:47:00+00:00" 1215 | }, 1216 | { 1217 | "name": "psr/log", 1218 | "version": "3.0.2", 1219 | "source": { 1220 | "type": "git", 1221 | "url": "https://github.com/php-fig/log.git", 1222 | "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" 1223 | }, 1224 | "dist": { 1225 | "type": "zip", 1226 | "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", 1227 | "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", 1228 | "shasum": "" 1229 | }, 1230 | "require": { 1231 | "php": ">=8.0.0" 1232 | }, 1233 | "type": "library", 1234 | "extra": { 1235 | "branch-alias": { 1236 | "dev-master": "3.x-dev" 1237 | } 1238 | }, 1239 | "autoload": { 1240 | "psr-4": { 1241 | "Psr\\Log\\": "src" 1242 | } 1243 | }, 1244 | "notification-url": "https://packagist.org/downloads/", 1245 | "license": [ 1246 | "MIT" 1247 | ], 1248 | "authors": [ 1249 | { 1250 | "name": "PHP-FIG", 1251 | "homepage": "https://www.php-fig.org/" 1252 | } 1253 | ], 1254 | "description": "Common interface for logging libraries", 1255 | "homepage": "https://github.com/php-fig/log", 1256 | "keywords": [ 1257 | "log", 1258 | "psr", 1259 | "psr-3" 1260 | ], 1261 | "support": { 1262 | "source": "https://github.com/php-fig/log/tree/3.0.2" 1263 | }, 1264 | "time": "2024-09-11T13:17:53+00:00" 1265 | }, 1266 | { 1267 | "name": "sebastian/cli-parser", 1268 | "version": "1.0.2", 1269 | "source": { 1270 | "type": "git", 1271 | "url": "https://github.com/sebastianbergmann/cli-parser.git", 1272 | "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" 1273 | }, 1274 | "dist": { 1275 | "type": "zip", 1276 | "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", 1277 | "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", 1278 | "shasum": "" 1279 | }, 1280 | "require": { 1281 | "php": ">=7.3" 1282 | }, 1283 | "require-dev": { 1284 | "phpunit/phpunit": "^9.3" 1285 | }, 1286 | "type": "library", 1287 | "extra": { 1288 | "branch-alias": { 1289 | "dev-master": "1.0-dev" 1290 | } 1291 | }, 1292 | "autoload": { 1293 | "classmap": [ 1294 | "src/" 1295 | ] 1296 | }, 1297 | "notification-url": "https://packagist.org/downloads/", 1298 | "license": [ 1299 | "BSD-3-Clause" 1300 | ], 1301 | "authors": [ 1302 | { 1303 | "name": "Sebastian Bergmann", 1304 | "email": "sebastian@phpunit.de", 1305 | "role": "lead" 1306 | } 1307 | ], 1308 | "description": "Library for parsing CLI options", 1309 | "homepage": "https://github.com/sebastianbergmann/cli-parser", 1310 | "support": { 1311 | "issues": "https://github.com/sebastianbergmann/cli-parser/issues", 1312 | "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" 1313 | }, 1314 | "funding": [ 1315 | { 1316 | "url": "https://github.com/sebastianbergmann", 1317 | "type": "github" 1318 | } 1319 | ], 1320 | "time": "2024-03-02T06:27:43+00:00" 1321 | }, 1322 | { 1323 | "name": "sebastian/code-unit", 1324 | "version": "1.0.8", 1325 | "source": { 1326 | "type": "git", 1327 | "url": "https://github.com/sebastianbergmann/code-unit.git", 1328 | "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" 1329 | }, 1330 | "dist": { 1331 | "type": "zip", 1332 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", 1333 | "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", 1334 | "shasum": "" 1335 | }, 1336 | "require": { 1337 | "php": ">=7.3" 1338 | }, 1339 | "require-dev": { 1340 | "phpunit/phpunit": "^9.3" 1341 | }, 1342 | "type": "library", 1343 | "extra": { 1344 | "branch-alias": { 1345 | "dev-master": "1.0-dev" 1346 | } 1347 | }, 1348 | "autoload": { 1349 | "classmap": [ 1350 | "src/" 1351 | ] 1352 | }, 1353 | "notification-url": "https://packagist.org/downloads/", 1354 | "license": [ 1355 | "BSD-3-Clause" 1356 | ], 1357 | "authors": [ 1358 | { 1359 | "name": "Sebastian Bergmann", 1360 | "email": "sebastian@phpunit.de", 1361 | "role": "lead" 1362 | } 1363 | ], 1364 | "description": "Collection of value objects that represent the PHP code units", 1365 | "homepage": "https://github.com/sebastianbergmann/code-unit", 1366 | "support": { 1367 | "issues": "https://github.com/sebastianbergmann/code-unit/issues", 1368 | "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" 1369 | }, 1370 | "funding": [ 1371 | { 1372 | "url": "https://github.com/sebastianbergmann", 1373 | "type": "github" 1374 | } 1375 | ], 1376 | "time": "2020-10-26T13:08:54+00:00" 1377 | }, 1378 | { 1379 | "name": "sebastian/code-unit-reverse-lookup", 1380 | "version": "2.0.3", 1381 | "source": { 1382 | "type": "git", 1383 | "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", 1384 | "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" 1385 | }, 1386 | "dist": { 1387 | "type": "zip", 1388 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", 1389 | "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", 1390 | "shasum": "" 1391 | }, 1392 | "require": { 1393 | "php": ">=7.3" 1394 | }, 1395 | "require-dev": { 1396 | "phpunit/phpunit": "^9.3" 1397 | }, 1398 | "type": "library", 1399 | "extra": { 1400 | "branch-alias": { 1401 | "dev-master": "2.0-dev" 1402 | } 1403 | }, 1404 | "autoload": { 1405 | "classmap": [ 1406 | "src/" 1407 | ] 1408 | }, 1409 | "notification-url": "https://packagist.org/downloads/", 1410 | "license": [ 1411 | "BSD-3-Clause" 1412 | ], 1413 | "authors": [ 1414 | { 1415 | "name": "Sebastian Bergmann", 1416 | "email": "sebastian@phpunit.de" 1417 | } 1418 | ], 1419 | "description": "Looks up which function or method a line of code belongs to", 1420 | "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", 1421 | "support": { 1422 | "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", 1423 | "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" 1424 | }, 1425 | "funding": [ 1426 | { 1427 | "url": "https://github.com/sebastianbergmann", 1428 | "type": "github" 1429 | } 1430 | ], 1431 | "time": "2020-09-28T05:30:19+00:00" 1432 | }, 1433 | { 1434 | "name": "sebastian/comparator", 1435 | "version": "4.0.8", 1436 | "source": { 1437 | "type": "git", 1438 | "url": "https://github.com/sebastianbergmann/comparator.git", 1439 | "reference": "fa0f136dd2334583309d32b62544682ee972b51a" 1440 | }, 1441 | "dist": { 1442 | "type": "zip", 1443 | "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", 1444 | "reference": "fa0f136dd2334583309d32b62544682ee972b51a", 1445 | "shasum": "" 1446 | }, 1447 | "require": { 1448 | "php": ">=7.3", 1449 | "sebastian/diff": "^4.0", 1450 | "sebastian/exporter": "^4.0" 1451 | }, 1452 | "require-dev": { 1453 | "phpunit/phpunit": "^9.3" 1454 | }, 1455 | "type": "library", 1456 | "extra": { 1457 | "branch-alias": { 1458 | "dev-master": "4.0-dev" 1459 | } 1460 | }, 1461 | "autoload": { 1462 | "classmap": [ 1463 | "src/" 1464 | ] 1465 | }, 1466 | "notification-url": "https://packagist.org/downloads/", 1467 | "license": [ 1468 | "BSD-3-Clause" 1469 | ], 1470 | "authors": [ 1471 | { 1472 | "name": "Sebastian Bergmann", 1473 | "email": "sebastian@phpunit.de" 1474 | }, 1475 | { 1476 | "name": "Jeff Welch", 1477 | "email": "whatthejeff@gmail.com" 1478 | }, 1479 | { 1480 | "name": "Volker Dusch", 1481 | "email": "github@wallbash.com" 1482 | }, 1483 | { 1484 | "name": "Bernhard Schussek", 1485 | "email": "bschussek@2bepublished.at" 1486 | } 1487 | ], 1488 | "description": "Provides the functionality to compare PHP values for equality", 1489 | "homepage": "https://github.com/sebastianbergmann/comparator", 1490 | "keywords": [ 1491 | "comparator", 1492 | "compare", 1493 | "equality" 1494 | ], 1495 | "support": { 1496 | "issues": "https://github.com/sebastianbergmann/comparator/issues", 1497 | "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" 1498 | }, 1499 | "funding": [ 1500 | { 1501 | "url": "https://github.com/sebastianbergmann", 1502 | "type": "github" 1503 | } 1504 | ], 1505 | "time": "2022-09-14T12:41:17+00:00" 1506 | }, 1507 | { 1508 | "name": "sebastian/complexity", 1509 | "version": "2.0.3", 1510 | "source": { 1511 | "type": "git", 1512 | "url": "https://github.com/sebastianbergmann/complexity.git", 1513 | "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" 1514 | }, 1515 | "dist": { 1516 | "type": "zip", 1517 | "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", 1518 | "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", 1519 | "shasum": "" 1520 | }, 1521 | "require": { 1522 | "nikic/php-parser": "^4.18 || ^5.0", 1523 | "php": ">=7.3" 1524 | }, 1525 | "require-dev": { 1526 | "phpunit/phpunit": "^9.3" 1527 | }, 1528 | "type": "library", 1529 | "extra": { 1530 | "branch-alias": { 1531 | "dev-master": "2.0-dev" 1532 | } 1533 | }, 1534 | "autoload": { 1535 | "classmap": [ 1536 | "src/" 1537 | ] 1538 | }, 1539 | "notification-url": "https://packagist.org/downloads/", 1540 | "license": [ 1541 | "BSD-3-Clause" 1542 | ], 1543 | "authors": [ 1544 | { 1545 | "name": "Sebastian Bergmann", 1546 | "email": "sebastian@phpunit.de", 1547 | "role": "lead" 1548 | } 1549 | ], 1550 | "description": "Library for calculating the complexity of PHP code units", 1551 | "homepage": "https://github.com/sebastianbergmann/complexity", 1552 | "support": { 1553 | "issues": "https://github.com/sebastianbergmann/complexity/issues", 1554 | "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" 1555 | }, 1556 | "funding": [ 1557 | { 1558 | "url": "https://github.com/sebastianbergmann", 1559 | "type": "github" 1560 | } 1561 | ], 1562 | "time": "2023-12-22T06:19:30+00:00" 1563 | }, 1564 | { 1565 | "name": "sebastian/diff", 1566 | "version": "4.0.6", 1567 | "source": { 1568 | "type": "git", 1569 | "url": "https://github.com/sebastianbergmann/diff.git", 1570 | "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" 1571 | }, 1572 | "dist": { 1573 | "type": "zip", 1574 | "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", 1575 | "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", 1576 | "shasum": "" 1577 | }, 1578 | "require": { 1579 | "php": ">=7.3" 1580 | }, 1581 | "require-dev": { 1582 | "phpunit/phpunit": "^9.3", 1583 | "symfony/process": "^4.2 || ^5" 1584 | }, 1585 | "type": "library", 1586 | "extra": { 1587 | "branch-alias": { 1588 | "dev-master": "4.0-dev" 1589 | } 1590 | }, 1591 | "autoload": { 1592 | "classmap": [ 1593 | "src/" 1594 | ] 1595 | }, 1596 | "notification-url": "https://packagist.org/downloads/", 1597 | "license": [ 1598 | "BSD-3-Clause" 1599 | ], 1600 | "authors": [ 1601 | { 1602 | "name": "Sebastian Bergmann", 1603 | "email": "sebastian@phpunit.de" 1604 | }, 1605 | { 1606 | "name": "Kore Nordmann", 1607 | "email": "mail@kore-nordmann.de" 1608 | } 1609 | ], 1610 | "description": "Diff implementation", 1611 | "homepage": "https://github.com/sebastianbergmann/diff", 1612 | "keywords": [ 1613 | "diff", 1614 | "udiff", 1615 | "unidiff", 1616 | "unified diff" 1617 | ], 1618 | "support": { 1619 | "issues": "https://github.com/sebastianbergmann/diff/issues", 1620 | "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" 1621 | }, 1622 | "funding": [ 1623 | { 1624 | "url": "https://github.com/sebastianbergmann", 1625 | "type": "github" 1626 | } 1627 | ], 1628 | "time": "2024-03-02T06:30:58+00:00" 1629 | }, 1630 | { 1631 | "name": "sebastian/environment", 1632 | "version": "5.1.5", 1633 | "source": { 1634 | "type": "git", 1635 | "url": "https://github.com/sebastianbergmann/environment.git", 1636 | "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" 1637 | }, 1638 | "dist": { 1639 | "type": "zip", 1640 | "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", 1641 | "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", 1642 | "shasum": "" 1643 | }, 1644 | "require": { 1645 | "php": ">=7.3" 1646 | }, 1647 | "require-dev": { 1648 | "phpunit/phpunit": "^9.3" 1649 | }, 1650 | "suggest": { 1651 | "ext-posix": "*" 1652 | }, 1653 | "type": "library", 1654 | "extra": { 1655 | "branch-alias": { 1656 | "dev-master": "5.1-dev" 1657 | } 1658 | }, 1659 | "autoload": { 1660 | "classmap": [ 1661 | "src/" 1662 | ] 1663 | }, 1664 | "notification-url": "https://packagist.org/downloads/", 1665 | "license": [ 1666 | "BSD-3-Clause" 1667 | ], 1668 | "authors": [ 1669 | { 1670 | "name": "Sebastian Bergmann", 1671 | "email": "sebastian@phpunit.de" 1672 | } 1673 | ], 1674 | "description": "Provides functionality to handle HHVM/PHP environments", 1675 | "homepage": "http://www.github.com/sebastianbergmann/environment", 1676 | "keywords": [ 1677 | "Xdebug", 1678 | "environment", 1679 | "hhvm" 1680 | ], 1681 | "support": { 1682 | "issues": "https://github.com/sebastianbergmann/environment/issues", 1683 | "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" 1684 | }, 1685 | "funding": [ 1686 | { 1687 | "url": "https://github.com/sebastianbergmann", 1688 | "type": "github" 1689 | } 1690 | ], 1691 | "time": "2023-02-03T06:03:51+00:00" 1692 | }, 1693 | { 1694 | "name": "sebastian/exporter", 1695 | "version": "4.0.6", 1696 | "source": { 1697 | "type": "git", 1698 | "url": "https://github.com/sebastianbergmann/exporter.git", 1699 | "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" 1700 | }, 1701 | "dist": { 1702 | "type": "zip", 1703 | "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", 1704 | "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", 1705 | "shasum": "" 1706 | }, 1707 | "require": { 1708 | "php": ">=7.3", 1709 | "sebastian/recursion-context": "^4.0" 1710 | }, 1711 | "require-dev": { 1712 | "ext-mbstring": "*", 1713 | "phpunit/phpunit": "^9.3" 1714 | }, 1715 | "type": "library", 1716 | "extra": { 1717 | "branch-alias": { 1718 | "dev-master": "4.0-dev" 1719 | } 1720 | }, 1721 | "autoload": { 1722 | "classmap": [ 1723 | "src/" 1724 | ] 1725 | }, 1726 | "notification-url": "https://packagist.org/downloads/", 1727 | "license": [ 1728 | "BSD-3-Clause" 1729 | ], 1730 | "authors": [ 1731 | { 1732 | "name": "Sebastian Bergmann", 1733 | "email": "sebastian@phpunit.de" 1734 | }, 1735 | { 1736 | "name": "Jeff Welch", 1737 | "email": "whatthejeff@gmail.com" 1738 | }, 1739 | { 1740 | "name": "Volker Dusch", 1741 | "email": "github@wallbash.com" 1742 | }, 1743 | { 1744 | "name": "Adam Harvey", 1745 | "email": "aharvey@php.net" 1746 | }, 1747 | { 1748 | "name": "Bernhard Schussek", 1749 | "email": "bschussek@gmail.com" 1750 | } 1751 | ], 1752 | "description": "Provides the functionality to export PHP variables for visualization", 1753 | "homepage": "https://www.github.com/sebastianbergmann/exporter", 1754 | "keywords": [ 1755 | "export", 1756 | "exporter" 1757 | ], 1758 | "support": { 1759 | "issues": "https://github.com/sebastianbergmann/exporter/issues", 1760 | "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" 1761 | }, 1762 | "funding": [ 1763 | { 1764 | "url": "https://github.com/sebastianbergmann", 1765 | "type": "github" 1766 | } 1767 | ], 1768 | "time": "2024-03-02T06:33:00+00:00" 1769 | }, 1770 | { 1771 | "name": "sebastian/global-state", 1772 | "version": "5.0.7", 1773 | "source": { 1774 | "type": "git", 1775 | "url": "https://github.com/sebastianbergmann/global-state.git", 1776 | "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" 1777 | }, 1778 | "dist": { 1779 | "type": "zip", 1780 | "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", 1781 | "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", 1782 | "shasum": "" 1783 | }, 1784 | "require": { 1785 | "php": ">=7.3", 1786 | "sebastian/object-reflector": "^2.0", 1787 | "sebastian/recursion-context": "^4.0" 1788 | }, 1789 | "require-dev": { 1790 | "ext-dom": "*", 1791 | "phpunit/phpunit": "^9.3" 1792 | }, 1793 | "suggest": { 1794 | "ext-uopz": "*" 1795 | }, 1796 | "type": "library", 1797 | "extra": { 1798 | "branch-alias": { 1799 | "dev-master": "5.0-dev" 1800 | } 1801 | }, 1802 | "autoload": { 1803 | "classmap": [ 1804 | "src/" 1805 | ] 1806 | }, 1807 | "notification-url": "https://packagist.org/downloads/", 1808 | "license": [ 1809 | "BSD-3-Clause" 1810 | ], 1811 | "authors": [ 1812 | { 1813 | "name": "Sebastian Bergmann", 1814 | "email": "sebastian@phpunit.de" 1815 | } 1816 | ], 1817 | "description": "Snapshotting of global state", 1818 | "homepage": "http://www.github.com/sebastianbergmann/global-state", 1819 | "keywords": [ 1820 | "global state" 1821 | ], 1822 | "support": { 1823 | "issues": "https://github.com/sebastianbergmann/global-state/issues", 1824 | "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" 1825 | }, 1826 | "funding": [ 1827 | { 1828 | "url": "https://github.com/sebastianbergmann", 1829 | "type": "github" 1830 | } 1831 | ], 1832 | "time": "2024-03-02T06:35:11+00:00" 1833 | }, 1834 | { 1835 | "name": "sebastian/lines-of-code", 1836 | "version": "1.0.4", 1837 | "source": { 1838 | "type": "git", 1839 | "url": "https://github.com/sebastianbergmann/lines-of-code.git", 1840 | "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" 1841 | }, 1842 | "dist": { 1843 | "type": "zip", 1844 | "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", 1845 | "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", 1846 | "shasum": "" 1847 | }, 1848 | "require": { 1849 | "nikic/php-parser": "^4.18 || ^5.0", 1850 | "php": ">=7.3" 1851 | }, 1852 | "require-dev": { 1853 | "phpunit/phpunit": "^9.3" 1854 | }, 1855 | "type": "library", 1856 | "extra": { 1857 | "branch-alias": { 1858 | "dev-master": "1.0-dev" 1859 | } 1860 | }, 1861 | "autoload": { 1862 | "classmap": [ 1863 | "src/" 1864 | ] 1865 | }, 1866 | "notification-url": "https://packagist.org/downloads/", 1867 | "license": [ 1868 | "BSD-3-Clause" 1869 | ], 1870 | "authors": [ 1871 | { 1872 | "name": "Sebastian Bergmann", 1873 | "email": "sebastian@phpunit.de", 1874 | "role": "lead" 1875 | } 1876 | ], 1877 | "description": "Library for counting the lines of code in PHP source code", 1878 | "homepage": "https://github.com/sebastianbergmann/lines-of-code", 1879 | "support": { 1880 | "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", 1881 | "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" 1882 | }, 1883 | "funding": [ 1884 | { 1885 | "url": "https://github.com/sebastianbergmann", 1886 | "type": "github" 1887 | } 1888 | ], 1889 | "time": "2023-12-22T06:20:34+00:00" 1890 | }, 1891 | { 1892 | "name": "sebastian/object-enumerator", 1893 | "version": "4.0.4", 1894 | "source": { 1895 | "type": "git", 1896 | "url": "https://github.com/sebastianbergmann/object-enumerator.git", 1897 | "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" 1898 | }, 1899 | "dist": { 1900 | "type": "zip", 1901 | "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", 1902 | "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", 1903 | "shasum": "" 1904 | }, 1905 | "require": { 1906 | "php": ">=7.3", 1907 | "sebastian/object-reflector": "^2.0", 1908 | "sebastian/recursion-context": "^4.0" 1909 | }, 1910 | "require-dev": { 1911 | "phpunit/phpunit": "^9.3" 1912 | }, 1913 | "type": "library", 1914 | "extra": { 1915 | "branch-alias": { 1916 | "dev-master": "4.0-dev" 1917 | } 1918 | }, 1919 | "autoload": { 1920 | "classmap": [ 1921 | "src/" 1922 | ] 1923 | }, 1924 | "notification-url": "https://packagist.org/downloads/", 1925 | "license": [ 1926 | "BSD-3-Clause" 1927 | ], 1928 | "authors": [ 1929 | { 1930 | "name": "Sebastian Bergmann", 1931 | "email": "sebastian@phpunit.de" 1932 | } 1933 | ], 1934 | "description": "Traverses array structures and object graphs to enumerate all referenced objects", 1935 | "homepage": "https://github.com/sebastianbergmann/object-enumerator/", 1936 | "support": { 1937 | "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", 1938 | "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" 1939 | }, 1940 | "funding": [ 1941 | { 1942 | "url": "https://github.com/sebastianbergmann", 1943 | "type": "github" 1944 | } 1945 | ], 1946 | "time": "2020-10-26T13:12:34+00:00" 1947 | }, 1948 | { 1949 | "name": "sebastian/object-reflector", 1950 | "version": "2.0.4", 1951 | "source": { 1952 | "type": "git", 1953 | "url": "https://github.com/sebastianbergmann/object-reflector.git", 1954 | "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" 1955 | }, 1956 | "dist": { 1957 | "type": "zip", 1958 | "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", 1959 | "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", 1960 | "shasum": "" 1961 | }, 1962 | "require": { 1963 | "php": ">=7.3" 1964 | }, 1965 | "require-dev": { 1966 | "phpunit/phpunit": "^9.3" 1967 | }, 1968 | "type": "library", 1969 | "extra": { 1970 | "branch-alias": { 1971 | "dev-master": "2.0-dev" 1972 | } 1973 | }, 1974 | "autoload": { 1975 | "classmap": [ 1976 | "src/" 1977 | ] 1978 | }, 1979 | "notification-url": "https://packagist.org/downloads/", 1980 | "license": [ 1981 | "BSD-3-Clause" 1982 | ], 1983 | "authors": [ 1984 | { 1985 | "name": "Sebastian Bergmann", 1986 | "email": "sebastian@phpunit.de" 1987 | } 1988 | ], 1989 | "description": "Allows reflection of object attributes, including inherited and non-public ones", 1990 | "homepage": "https://github.com/sebastianbergmann/object-reflector/", 1991 | "support": { 1992 | "issues": "https://github.com/sebastianbergmann/object-reflector/issues", 1993 | "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" 1994 | }, 1995 | "funding": [ 1996 | { 1997 | "url": "https://github.com/sebastianbergmann", 1998 | "type": "github" 1999 | } 2000 | ], 2001 | "time": "2020-10-26T13:14:26+00:00" 2002 | }, 2003 | { 2004 | "name": "sebastian/recursion-context", 2005 | "version": "4.0.5", 2006 | "source": { 2007 | "type": "git", 2008 | "url": "https://github.com/sebastianbergmann/recursion-context.git", 2009 | "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" 2010 | }, 2011 | "dist": { 2012 | "type": "zip", 2013 | "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", 2014 | "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", 2015 | "shasum": "" 2016 | }, 2017 | "require": { 2018 | "php": ">=7.3" 2019 | }, 2020 | "require-dev": { 2021 | "phpunit/phpunit": "^9.3" 2022 | }, 2023 | "type": "library", 2024 | "extra": { 2025 | "branch-alias": { 2026 | "dev-master": "4.0-dev" 2027 | } 2028 | }, 2029 | "autoload": { 2030 | "classmap": [ 2031 | "src/" 2032 | ] 2033 | }, 2034 | "notification-url": "https://packagist.org/downloads/", 2035 | "license": [ 2036 | "BSD-3-Clause" 2037 | ], 2038 | "authors": [ 2039 | { 2040 | "name": "Sebastian Bergmann", 2041 | "email": "sebastian@phpunit.de" 2042 | }, 2043 | { 2044 | "name": "Jeff Welch", 2045 | "email": "whatthejeff@gmail.com" 2046 | }, 2047 | { 2048 | "name": "Adam Harvey", 2049 | "email": "aharvey@php.net" 2050 | } 2051 | ], 2052 | "description": "Provides functionality to recursively process PHP variables", 2053 | "homepage": "https://github.com/sebastianbergmann/recursion-context", 2054 | "support": { 2055 | "issues": "https://github.com/sebastianbergmann/recursion-context/issues", 2056 | "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" 2057 | }, 2058 | "funding": [ 2059 | { 2060 | "url": "https://github.com/sebastianbergmann", 2061 | "type": "github" 2062 | } 2063 | ], 2064 | "time": "2023-02-03T06:07:39+00:00" 2065 | }, 2066 | { 2067 | "name": "sebastian/resource-operations", 2068 | "version": "3.0.4", 2069 | "source": { 2070 | "type": "git", 2071 | "url": "https://github.com/sebastianbergmann/resource-operations.git", 2072 | "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" 2073 | }, 2074 | "dist": { 2075 | "type": "zip", 2076 | "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", 2077 | "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", 2078 | "shasum": "" 2079 | }, 2080 | "require": { 2081 | "php": ">=7.3" 2082 | }, 2083 | "require-dev": { 2084 | "phpunit/phpunit": "^9.0" 2085 | }, 2086 | "type": "library", 2087 | "extra": { 2088 | "branch-alias": { 2089 | "dev-main": "3.0-dev" 2090 | } 2091 | }, 2092 | "autoload": { 2093 | "classmap": [ 2094 | "src/" 2095 | ] 2096 | }, 2097 | "notification-url": "https://packagist.org/downloads/", 2098 | "license": [ 2099 | "BSD-3-Clause" 2100 | ], 2101 | "authors": [ 2102 | { 2103 | "name": "Sebastian Bergmann", 2104 | "email": "sebastian@phpunit.de" 2105 | } 2106 | ], 2107 | "description": "Provides a list of PHP built-in functions that operate on resources", 2108 | "homepage": "https://www.github.com/sebastianbergmann/resource-operations", 2109 | "support": { 2110 | "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" 2111 | }, 2112 | "funding": [ 2113 | { 2114 | "url": "https://github.com/sebastianbergmann", 2115 | "type": "github" 2116 | } 2117 | ], 2118 | "time": "2024-03-14T16:00:52+00:00" 2119 | }, 2120 | { 2121 | "name": "sebastian/type", 2122 | "version": "3.2.1", 2123 | "source": { 2124 | "type": "git", 2125 | "url": "https://github.com/sebastianbergmann/type.git", 2126 | "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" 2127 | }, 2128 | "dist": { 2129 | "type": "zip", 2130 | "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", 2131 | "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", 2132 | "shasum": "" 2133 | }, 2134 | "require": { 2135 | "php": ">=7.3" 2136 | }, 2137 | "require-dev": { 2138 | "phpunit/phpunit": "^9.5" 2139 | }, 2140 | "type": "library", 2141 | "extra": { 2142 | "branch-alias": { 2143 | "dev-master": "3.2-dev" 2144 | } 2145 | }, 2146 | "autoload": { 2147 | "classmap": [ 2148 | "src/" 2149 | ] 2150 | }, 2151 | "notification-url": "https://packagist.org/downloads/", 2152 | "license": [ 2153 | "BSD-3-Clause" 2154 | ], 2155 | "authors": [ 2156 | { 2157 | "name": "Sebastian Bergmann", 2158 | "email": "sebastian@phpunit.de", 2159 | "role": "lead" 2160 | } 2161 | ], 2162 | "description": "Collection of value objects that represent the types of the PHP type system", 2163 | "homepage": "https://github.com/sebastianbergmann/type", 2164 | "support": { 2165 | "issues": "https://github.com/sebastianbergmann/type/issues", 2166 | "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" 2167 | }, 2168 | "funding": [ 2169 | { 2170 | "url": "https://github.com/sebastianbergmann", 2171 | "type": "github" 2172 | } 2173 | ], 2174 | "time": "2023-02-03T06:13:03+00:00" 2175 | }, 2176 | { 2177 | "name": "sebastian/version", 2178 | "version": "3.0.2", 2179 | "source": { 2180 | "type": "git", 2181 | "url": "https://github.com/sebastianbergmann/version.git", 2182 | "reference": "c6c1022351a901512170118436c764e473f6de8c" 2183 | }, 2184 | "dist": { 2185 | "type": "zip", 2186 | "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", 2187 | "reference": "c6c1022351a901512170118436c764e473f6de8c", 2188 | "shasum": "" 2189 | }, 2190 | "require": { 2191 | "php": ">=7.3" 2192 | }, 2193 | "type": "library", 2194 | "extra": { 2195 | "branch-alias": { 2196 | "dev-master": "3.0-dev" 2197 | } 2198 | }, 2199 | "autoload": { 2200 | "classmap": [ 2201 | "src/" 2202 | ] 2203 | }, 2204 | "notification-url": "https://packagist.org/downloads/", 2205 | "license": [ 2206 | "BSD-3-Clause" 2207 | ], 2208 | "authors": [ 2209 | { 2210 | "name": "Sebastian Bergmann", 2211 | "email": "sebastian@phpunit.de", 2212 | "role": "lead" 2213 | } 2214 | ], 2215 | "description": "Library that helps with managing the version number of Git-hosted PHP projects", 2216 | "homepage": "https://github.com/sebastianbergmann/version", 2217 | "support": { 2218 | "issues": "https://github.com/sebastianbergmann/version/issues", 2219 | "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" 2220 | }, 2221 | "funding": [ 2222 | { 2223 | "url": "https://github.com/sebastianbergmann", 2224 | "type": "github" 2225 | } 2226 | ], 2227 | "time": "2020-09-28T06:39:44+00:00" 2228 | }, 2229 | { 2230 | "name": "squizlabs/php_codesniffer", 2231 | "version": "3.11.3", 2232 | "source": { 2233 | "type": "git", 2234 | "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", 2235 | "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10" 2236 | }, 2237 | "dist": { 2238 | "type": "zip", 2239 | "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", 2240 | "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", 2241 | "shasum": "" 2242 | }, 2243 | "require": { 2244 | "ext-simplexml": "*", 2245 | "ext-tokenizer": "*", 2246 | "ext-xmlwriter": "*", 2247 | "php": ">=5.4.0" 2248 | }, 2249 | "require-dev": { 2250 | "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" 2251 | }, 2252 | "bin": [ 2253 | "bin/phpcbf", 2254 | "bin/phpcs" 2255 | ], 2256 | "type": "library", 2257 | "extra": { 2258 | "branch-alias": { 2259 | "dev-master": "3.x-dev" 2260 | } 2261 | }, 2262 | "notification-url": "https://packagist.org/downloads/", 2263 | "license": [ 2264 | "BSD-3-Clause" 2265 | ], 2266 | "authors": [ 2267 | { 2268 | "name": "Greg Sherwood", 2269 | "role": "Former lead" 2270 | }, 2271 | { 2272 | "name": "Juliette Reinders Folmer", 2273 | "role": "Current lead" 2274 | }, 2275 | { 2276 | "name": "Contributors", 2277 | "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" 2278 | } 2279 | ], 2280 | "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", 2281 | "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", 2282 | "keywords": [ 2283 | "phpcs", 2284 | "standards", 2285 | "static analysis" 2286 | ], 2287 | "support": { 2288 | "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues", 2289 | "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy", 2290 | "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer", 2291 | "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki" 2292 | }, 2293 | "funding": [ 2294 | { 2295 | "url": "https://github.com/PHPCSStandards", 2296 | "type": "github" 2297 | }, 2298 | { 2299 | "url": "https://github.com/jrfnl", 2300 | "type": "github" 2301 | }, 2302 | { 2303 | "url": "https://opencollective.com/php_codesniffer", 2304 | "type": "open_collective" 2305 | }, 2306 | { 2307 | "url": "https://thanks.dev/phpcsstandards", 2308 | "type": "thanks_dev" 2309 | } 2310 | ], 2311 | "time": "2025-01-23T17:04:15+00:00" 2312 | }, 2313 | { 2314 | "name": "symfony/config", 2315 | "version": "v7.2.3", 2316 | "source": { 2317 | "type": "git", 2318 | "url": "https://github.com/symfony/config.git", 2319 | "reference": "7716594aaae91d9141be080240172a92ecca4d44" 2320 | }, 2321 | "dist": { 2322 | "type": "zip", 2323 | "url": "https://api.github.com/repos/symfony/config/zipball/7716594aaae91d9141be080240172a92ecca4d44", 2324 | "reference": "7716594aaae91d9141be080240172a92ecca4d44", 2325 | "shasum": "" 2326 | }, 2327 | "require": { 2328 | "php": ">=8.2", 2329 | "symfony/deprecation-contracts": "^2.5|^3", 2330 | "symfony/filesystem": "^7.1", 2331 | "symfony/polyfill-ctype": "~1.8" 2332 | }, 2333 | "conflict": { 2334 | "symfony/finder": "<6.4", 2335 | "symfony/service-contracts": "<2.5" 2336 | }, 2337 | "require-dev": { 2338 | "symfony/event-dispatcher": "^6.4|^7.0", 2339 | "symfony/finder": "^6.4|^7.0", 2340 | "symfony/messenger": "^6.4|^7.0", 2341 | "symfony/service-contracts": "^2.5|^3", 2342 | "symfony/yaml": "^6.4|^7.0" 2343 | }, 2344 | "type": "library", 2345 | "autoload": { 2346 | "psr-4": { 2347 | "Symfony\\Component\\Config\\": "" 2348 | }, 2349 | "exclude-from-classmap": [ 2350 | "/Tests/" 2351 | ] 2352 | }, 2353 | "notification-url": "https://packagist.org/downloads/", 2354 | "license": [ 2355 | "MIT" 2356 | ], 2357 | "authors": [ 2358 | { 2359 | "name": "Fabien Potencier", 2360 | "email": "fabien@symfony.com" 2361 | }, 2362 | { 2363 | "name": "Symfony Community", 2364 | "homepage": "https://symfony.com/contributors" 2365 | } 2366 | ], 2367 | "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", 2368 | "homepage": "https://symfony.com", 2369 | "support": { 2370 | "source": "https://github.com/symfony/config/tree/v7.2.3" 2371 | }, 2372 | "funding": [ 2373 | { 2374 | "url": "https://symfony.com/sponsor", 2375 | "type": "custom" 2376 | }, 2377 | { 2378 | "url": "https://github.com/fabpot", 2379 | "type": "github" 2380 | }, 2381 | { 2382 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2383 | "type": "tidelift" 2384 | } 2385 | ], 2386 | "time": "2025-01-22T12:07:01+00:00" 2387 | }, 2388 | { 2389 | "name": "symfony/dependency-injection", 2390 | "version": "v7.2.3", 2391 | "source": { 2392 | "type": "git", 2393 | "url": "https://github.com/symfony/dependency-injection.git", 2394 | "reference": "1d321c4bc3fe926fd4c38999a4c9af4f5d61ddfc" 2395 | }, 2396 | "dist": { 2397 | "type": "zip", 2398 | "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/1d321c4bc3fe926fd4c38999a4c9af4f5d61ddfc", 2399 | "reference": "1d321c4bc3fe926fd4c38999a4c9af4f5d61ddfc", 2400 | "shasum": "" 2401 | }, 2402 | "require": { 2403 | "php": ">=8.2", 2404 | "psr/container": "^1.1|^2.0", 2405 | "symfony/deprecation-contracts": "^2.5|^3", 2406 | "symfony/service-contracts": "^3.5", 2407 | "symfony/var-exporter": "^6.4|^7.0" 2408 | }, 2409 | "conflict": { 2410 | "ext-psr": "<1.1|>=2", 2411 | "symfony/config": "<6.4", 2412 | "symfony/finder": "<6.4", 2413 | "symfony/yaml": "<6.4" 2414 | }, 2415 | "provide": { 2416 | "psr/container-implementation": "1.1|2.0", 2417 | "symfony/service-implementation": "1.1|2.0|3.0" 2418 | }, 2419 | "require-dev": { 2420 | "symfony/config": "^6.4|^7.0", 2421 | "symfony/expression-language": "^6.4|^7.0", 2422 | "symfony/yaml": "^6.4|^7.0" 2423 | }, 2424 | "type": "library", 2425 | "autoload": { 2426 | "psr-4": { 2427 | "Symfony\\Component\\DependencyInjection\\": "" 2428 | }, 2429 | "exclude-from-classmap": [ 2430 | "/Tests/" 2431 | ] 2432 | }, 2433 | "notification-url": "https://packagist.org/downloads/", 2434 | "license": [ 2435 | "MIT" 2436 | ], 2437 | "authors": [ 2438 | { 2439 | "name": "Fabien Potencier", 2440 | "email": "fabien@symfony.com" 2441 | }, 2442 | { 2443 | "name": "Symfony Community", 2444 | "homepage": "https://symfony.com/contributors" 2445 | } 2446 | ], 2447 | "description": "Allows you to standardize and centralize the way objects are constructed in your application", 2448 | "homepage": "https://symfony.com", 2449 | "support": { 2450 | "source": "https://github.com/symfony/dependency-injection/tree/v7.2.3" 2451 | }, 2452 | "funding": [ 2453 | { 2454 | "url": "https://symfony.com/sponsor", 2455 | "type": "custom" 2456 | }, 2457 | { 2458 | "url": "https://github.com/fabpot", 2459 | "type": "github" 2460 | }, 2461 | { 2462 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2463 | "type": "tidelift" 2464 | } 2465 | ], 2466 | "time": "2025-01-17T10:56:55+00:00" 2467 | }, 2468 | { 2469 | "name": "symfony/deprecation-contracts", 2470 | "version": "v3.5.1", 2471 | "source": { 2472 | "type": "git", 2473 | "url": "https://github.com/symfony/deprecation-contracts.git", 2474 | "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" 2475 | }, 2476 | "dist": { 2477 | "type": "zip", 2478 | "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", 2479 | "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", 2480 | "shasum": "" 2481 | }, 2482 | "require": { 2483 | "php": ">=8.1" 2484 | }, 2485 | "type": "library", 2486 | "extra": { 2487 | "thanks": { 2488 | "url": "https://github.com/symfony/contracts", 2489 | "name": "symfony/contracts" 2490 | }, 2491 | "branch-alias": { 2492 | "dev-main": "3.5-dev" 2493 | } 2494 | }, 2495 | "autoload": { 2496 | "files": [ 2497 | "function.php" 2498 | ] 2499 | }, 2500 | "notification-url": "https://packagist.org/downloads/", 2501 | "license": [ 2502 | "MIT" 2503 | ], 2504 | "authors": [ 2505 | { 2506 | "name": "Nicolas Grekas", 2507 | "email": "p@tchwork.com" 2508 | }, 2509 | { 2510 | "name": "Symfony Community", 2511 | "homepage": "https://symfony.com/contributors" 2512 | } 2513 | ], 2514 | "description": "A generic function and convention to trigger deprecation notices", 2515 | "homepage": "https://symfony.com", 2516 | "support": { 2517 | "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" 2518 | }, 2519 | "funding": [ 2520 | { 2521 | "url": "https://symfony.com/sponsor", 2522 | "type": "custom" 2523 | }, 2524 | { 2525 | "url": "https://github.com/fabpot", 2526 | "type": "github" 2527 | }, 2528 | { 2529 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2530 | "type": "tidelift" 2531 | } 2532 | ], 2533 | "time": "2024-09-25T14:20:29+00:00" 2534 | }, 2535 | { 2536 | "name": "symfony/filesystem", 2537 | "version": "v7.2.0", 2538 | "source": { 2539 | "type": "git", 2540 | "url": "https://github.com/symfony/filesystem.git", 2541 | "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb" 2542 | }, 2543 | "dist": { 2544 | "type": "zip", 2545 | "url": "https://api.github.com/repos/symfony/filesystem/zipball/b8dce482de9d7c9fe2891155035a7248ab5c7fdb", 2546 | "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb", 2547 | "shasum": "" 2548 | }, 2549 | "require": { 2550 | "php": ">=8.2", 2551 | "symfony/polyfill-ctype": "~1.8", 2552 | "symfony/polyfill-mbstring": "~1.8" 2553 | }, 2554 | "require-dev": { 2555 | "symfony/process": "^6.4|^7.0" 2556 | }, 2557 | "type": "library", 2558 | "autoload": { 2559 | "psr-4": { 2560 | "Symfony\\Component\\Filesystem\\": "" 2561 | }, 2562 | "exclude-from-classmap": [ 2563 | "/Tests/" 2564 | ] 2565 | }, 2566 | "notification-url": "https://packagist.org/downloads/", 2567 | "license": [ 2568 | "MIT" 2569 | ], 2570 | "authors": [ 2571 | { 2572 | "name": "Fabien Potencier", 2573 | "email": "fabien@symfony.com" 2574 | }, 2575 | { 2576 | "name": "Symfony Community", 2577 | "homepage": "https://symfony.com/contributors" 2578 | } 2579 | ], 2580 | "description": "Provides basic utilities for the filesystem", 2581 | "homepage": "https://symfony.com", 2582 | "support": { 2583 | "source": "https://github.com/symfony/filesystem/tree/v7.2.0" 2584 | }, 2585 | "funding": [ 2586 | { 2587 | "url": "https://symfony.com/sponsor", 2588 | "type": "custom" 2589 | }, 2590 | { 2591 | "url": "https://github.com/fabpot", 2592 | "type": "github" 2593 | }, 2594 | { 2595 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2596 | "type": "tidelift" 2597 | } 2598 | ], 2599 | "time": "2024-10-25T15:15:23+00:00" 2600 | }, 2601 | { 2602 | "name": "symfony/polyfill-ctype", 2603 | "version": "v1.31.0", 2604 | "source": { 2605 | "type": "git", 2606 | "url": "https://github.com/symfony/polyfill-ctype.git", 2607 | "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" 2608 | }, 2609 | "dist": { 2610 | "type": "zip", 2611 | "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", 2612 | "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", 2613 | "shasum": "" 2614 | }, 2615 | "require": { 2616 | "php": ">=7.2" 2617 | }, 2618 | "provide": { 2619 | "ext-ctype": "*" 2620 | }, 2621 | "suggest": { 2622 | "ext-ctype": "For best performance" 2623 | }, 2624 | "type": "library", 2625 | "extra": { 2626 | "thanks": { 2627 | "url": "https://github.com/symfony/polyfill", 2628 | "name": "symfony/polyfill" 2629 | } 2630 | }, 2631 | "autoload": { 2632 | "files": [ 2633 | "bootstrap.php" 2634 | ], 2635 | "psr-4": { 2636 | "Symfony\\Polyfill\\Ctype\\": "" 2637 | } 2638 | }, 2639 | "notification-url": "https://packagist.org/downloads/", 2640 | "license": [ 2641 | "MIT" 2642 | ], 2643 | "authors": [ 2644 | { 2645 | "name": "Gert de Pagter", 2646 | "email": "BackEndTea@gmail.com" 2647 | }, 2648 | { 2649 | "name": "Symfony Community", 2650 | "homepage": "https://symfony.com/contributors" 2651 | } 2652 | ], 2653 | "description": "Symfony polyfill for ctype functions", 2654 | "homepage": "https://symfony.com", 2655 | "keywords": [ 2656 | "compatibility", 2657 | "ctype", 2658 | "polyfill", 2659 | "portable" 2660 | ], 2661 | "support": { 2662 | "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" 2663 | }, 2664 | "funding": [ 2665 | { 2666 | "url": "https://symfony.com/sponsor", 2667 | "type": "custom" 2668 | }, 2669 | { 2670 | "url": "https://github.com/fabpot", 2671 | "type": "github" 2672 | }, 2673 | { 2674 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2675 | "type": "tidelift" 2676 | } 2677 | ], 2678 | "time": "2024-09-09T11:45:10+00:00" 2679 | }, 2680 | { 2681 | "name": "symfony/polyfill-mbstring", 2682 | "version": "v1.31.0", 2683 | "source": { 2684 | "type": "git", 2685 | "url": "https://github.com/symfony/polyfill-mbstring.git", 2686 | "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" 2687 | }, 2688 | "dist": { 2689 | "type": "zip", 2690 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", 2691 | "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", 2692 | "shasum": "" 2693 | }, 2694 | "require": { 2695 | "php": ">=7.2" 2696 | }, 2697 | "provide": { 2698 | "ext-mbstring": "*" 2699 | }, 2700 | "suggest": { 2701 | "ext-mbstring": "For best performance" 2702 | }, 2703 | "type": "library", 2704 | "extra": { 2705 | "thanks": { 2706 | "url": "https://github.com/symfony/polyfill", 2707 | "name": "symfony/polyfill" 2708 | } 2709 | }, 2710 | "autoload": { 2711 | "files": [ 2712 | "bootstrap.php" 2713 | ], 2714 | "psr-4": { 2715 | "Symfony\\Polyfill\\Mbstring\\": "" 2716 | } 2717 | }, 2718 | "notification-url": "https://packagist.org/downloads/", 2719 | "license": [ 2720 | "MIT" 2721 | ], 2722 | "authors": [ 2723 | { 2724 | "name": "Nicolas Grekas", 2725 | "email": "p@tchwork.com" 2726 | }, 2727 | { 2728 | "name": "Symfony Community", 2729 | "homepage": "https://symfony.com/contributors" 2730 | } 2731 | ], 2732 | "description": "Symfony polyfill for the Mbstring extension", 2733 | "homepage": "https://symfony.com", 2734 | "keywords": [ 2735 | "compatibility", 2736 | "mbstring", 2737 | "polyfill", 2738 | "portable", 2739 | "shim" 2740 | ], 2741 | "support": { 2742 | "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" 2743 | }, 2744 | "funding": [ 2745 | { 2746 | "url": "https://symfony.com/sponsor", 2747 | "type": "custom" 2748 | }, 2749 | { 2750 | "url": "https://github.com/fabpot", 2751 | "type": "github" 2752 | }, 2753 | { 2754 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2755 | "type": "tidelift" 2756 | } 2757 | ], 2758 | "time": "2024-09-09T11:45:10+00:00" 2759 | }, 2760 | { 2761 | "name": "symfony/service-contracts", 2762 | "version": "v3.5.1", 2763 | "source": { 2764 | "type": "git", 2765 | "url": "https://github.com/symfony/service-contracts.git", 2766 | "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" 2767 | }, 2768 | "dist": { 2769 | "type": "zip", 2770 | "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", 2771 | "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", 2772 | "shasum": "" 2773 | }, 2774 | "require": { 2775 | "php": ">=8.1", 2776 | "psr/container": "^1.1|^2.0", 2777 | "symfony/deprecation-contracts": "^2.5|^3" 2778 | }, 2779 | "conflict": { 2780 | "ext-psr": "<1.1|>=2" 2781 | }, 2782 | "type": "library", 2783 | "extra": { 2784 | "thanks": { 2785 | "url": "https://github.com/symfony/contracts", 2786 | "name": "symfony/contracts" 2787 | }, 2788 | "branch-alias": { 2789 | "dev-main": "3.5-dev" 2790 | } 2791 | }, 2792 | "autoload": { 2793 | "psr-4": { 2794 | "Symfony\\Contracts\\Service\\": "" 2795 | }, 2796 | "exclude-from-classmap": [ 2797 | "/Test/" 2798 | ] 2799 | }, 2800 | "notification-url": "https://packagist.org/downloads/", 2801 | "license": [ 2802 | "MIT" 2803 | ], 2804 | "authors": [ 2805 | { 2806 | "name": "Nicolas Grekas", 2807 | "email": "p@tchwork.com" 2808 | }, 2809 | { 2810 | "name": "Symfony Community", 2811 | "homepage": "https://symfony.com/contributors" 2812 | } 2813 | ], 2814 | "description": "Generic abstractions related to writing services", 2815 | "homepage": "https://symfony.com", 2816 | "keywords": [ 2817 | "abstractions", 2818 | "contracts", 2819 | "decoupling", 2820 | "interfaces", 2821 | "interoperability", 2822 | "standards" 2823 | ], 2824 | "support": { 2825 | "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" 2826 | }, 2827 | "funding": [ 2828 | { 2829 | "url": "https://symfony.com/sponsor", 2830 | "type": "custom" 2831 | }, 2832 | { 2833 | "url": "https://github.com/fabpot", 2834 | "type": "github" 2835 | }, 2836 | { 2837 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2838 | "type": "tidelift" 2839 | } 2840 | ], 2841 | "time": "2024-09-25T14:20:29+00:00" 2842 | }, 2843 | { 2844 | "name": "symfony/var-exporter", 2845 | "version": "v7.2.0", 2846 | "source": { 2847 | "type": "git", 2848 | "url": "https://github.com/symfony/var-exporter.git", 2849 | "reference": "1a6a89f95a46af0f142874c9d650a6358d13070d" 2850 | }, 2851 | "dist": { 2852 | "type": "zip", 2853 | "url": "https://api.github.com/repos/symfony/var-exporter/zipball/1a6a89f95a46af0f142874c9d650a6358d13070d", 2854 | "reference": "1a6a89f95a46af0f142874c9d650a6358d13070d", 2855 | "shasum": "" 2856 | }, 2857 | "require": { 2858 | "php": ">=8.2" 2859 | }, 2860 | "require-dev": { 2861 | "symfony/property-access": "^6.4|^7.0", 2862 | "symfony/serializer": "^6.4|^7.0", 2863 | "symfony/var-dumper": "^6.4|^7.0" 2864 | }, 2865 | "type": "library", 2866 | "autoload": { 2867 | "psr-4": { 2868 | "Symfony\\Component\\VarExporter\\": "" 2869 | }, 2870 | "exclude-from-classmap": [ 2871 | "/Tests/" 2872 | ] 2873 | }, 2874 | "notification-url": "https://packagist.org/downloads/", 2875 | "license": [ 2876 | "MIT" 2877 | ], 2878 | "authors": [ 2879 | { 2880 | "name": "Nicolas Grekas", 2881 | "email": "p@tchwork.com" 2882 | }, 2883 | { 2884 | "name": "Symfony Community", 2885 | "homepage": "https://symfony.com/contributors" 2886 | } 2887 | ], 2888 | "description": "Allows exporting any serializable PHP data structure to plain PHP code", 2889 | "homepage": "https://symfony.com", 2890 | "keywords": [ 2891 | "clone", 2892 | "construct", 2893 | "export", 2894 | "hydrate", 2895 | "instantiate", 2896 | "lazy-loading", 2897 | "proxy", 2898 | "serialize" 2899 | ], 2900 | "support": { 2901 | "source": "https://github.com/symfony/var-exporter/tree/v7.2.0" 2902 | }, 2903 | "funding": [ 2904 | { 2905 | "url": "https://symfony.com/sponsor", 2906 | "type": "custom" 2907 | }, 2908 | { 2909 | "url": "https://github.com/fabpot", 2910 | "type": "github" 2911 | }, 2912 | { 2913 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 2914 | "type": "tidelift" 2915 | } 2916 | ], 2917 | "time": "2024-10-18T07:58:17+00:00" 2918 | }, 2919 | { 2920 | "name": "theseer/tokenizer", 2921 | "version": "1.2.3", 2922 | "source": { 2923 | "type": "git", 2924 | "url": "https://github.com/theseer/tokenizer.git", 2925 | "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" 2926 | }, 2927 | "dist": { 2928 | "type": "zip", 2929 | "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", 2930 | "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", 2931 | "shasum": "" 2932 | }, 2933 | "require": { 2934 | "ext-dom": "*", 2935 | "ext-tokenizer": "*", 2936 | "ext-xmlwriter": "*", 2937 | "php": "^7.2 || ^8.0" 2938 | }, 2939 | "type": "library", 2940 | "autoload": { 2941 | "classmap": [ 2942 | "src/" 2943 | ] 2944 | }, 2945 | "notification-url": "https://packagist.org/downloads/", 2946 | "license": [ 2947 | "BSD-3-Clause" 2948 | ], 2949 | "authors": [ 2950 | { 2951 | "name": "Arne Blankerts", 2952 | "email": "arne@blankerts.de", 2953 | "role": "Developer" 2954 | } 2955 | ], 2956 | "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", 2957 | "support": { 2958 | "issues": "https://github.com/theseer/tokenizer/issues", 2959 | "source": "https://github.com/theseer/tokenizer/tree/1.2.3" 2960 | }, 2961 | "funding": [ 2962 | { 2963 | "url": "https://github.com/theseer", 2964 | "type": "github" 2965 | } 2966 | ], 2967 | "time": "2024-03-03T12:36:25+00:00" 2968 | } 2969 | ], 2970 | "aliases": [], 2971 | "minimum-stability": "stable", 2972 | "stability-flags": [], 2973 | "prefer-stable": false, 2974 | "prefer-lowest": false, 2975 | "platform": { 2976 | "php": "^8.3" 2977 | }, 2978 | "platform-dev": [], 2979 | "plugin-api-version": "2.3.0" 2980 | } 2981 | -------------------------------------------------------------------------------- /contrib/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PHP_VERSION=8.3-rc-cli 2 | 3 | FROM php:${PHP_VERSION} 4 | 5 | RUN apt update \ 6 | && apt upgrade -y \ 7 | && apt install zip unzip git -y 8 | 9 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer 10 | 11 | WORKDIR /var/www/html -------------------------------------------------------------------------------- /contrib/coverage-checker.php: -------------------------------------------------------------------------------- 1 | xpath( 27 | '//metrics' 28 | ); 29 | $totalElements = 0; 30 | $checkedElements = 0; 31 | 32 | foreach ($metrics as $metric) { 33 | $totalElements += (int) $metric['elements']; 34 | $checkedElements += (int) $metric['coveredelements']; 35 | } 36 | 37 | $coverage = ($checkedElements / $totalElements) * 100; 38 | 39 | if ($coverage < $percentage) { 40 | echo 'Code coverage is ' . $coverage . '%, which is below the accepted ' . $percentage . '%' . PHP_EOL; 41 | exit(1); 42 | } 43 | 44 | echo 'Code coverage is ' . $coverage . '% - OK!' . PHP_EOL; 45 | -------------------------------------------------------------------------------- /contrib/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "Checking PHP Lint in src..." 4 | find ./src -name "*.php" -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0 5 | find ./tests -name "*.php" -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0 6 | find ./sample -name "*.php" -print0 | xargs -0 -n1 -P8 php -l -d display_errors=0 7 | if [ $? != 0 ] 8 | then 9 | echo "Fix the PHP sintax errors before commit." 10 | exit 1 11 | fi 12 | 13 | echo "Running Code Sniffer..." 14 | ./vendor/bin/phpcs 15 | if [ $? != 0 ] 16 | then 17 | echo "Fix the Code Sniffers errors before commit." 18 | exit 1 19 | fi 20 | 21 | echo "Running PHP Mess Detector..." 22 | ./vendor/bin/phpmd ./src text phpmd.xml 23 | ./vendor/bin/phpmd ./sample text phpmd.xml 24 | if [ $? != 0 ] 25 | then 26 | echo "Fix the PHP Mess Detector errors before commit." 27 | exit 1 28 | fi 29 | 30 | echo "Running Unit Tests..." 31 | phpdbg -qrr vendor/bin/phpunit --configuration phpunit.xml -d memory_limit=1024M 32 | if [ $? != 0 ] 33 | then 34 | echo "Fix the Unit Tests errors before commit." 35 | exit 1 36 | fi 37 | 38 | echo "Checking Unit Coverage..." 39 | php contrib/coverage-checker.php coverage/coverage.xml 100 40 | 41 | if [ $? != 0 ] 42 | then 43 | echo "Raise the Unit Coverage to 100% before commit." 44 | exit 1 45 | fi 46 | 47 | exit $? -------------------------------------------------------------------------------- /contrib/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cp contrib/pre-commit .git/hooks/pre-commit 4 | chmod +x .git/hooks/pre-commit -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Coding Standard 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | UTF-8 14 | 15 | src 16 | tests 17 | 18 | 19 | /src/RedisAddCommand.php 20 | /tests/RedisAddCommandTest.php 21 | 22 | 23 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | /tests/* 108 | 109 | -------------------------------------------------------------------------------- /phpmd.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | PHPMD Ruleset 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests 14 | 15 | 16 | 17 | 18 | ./src 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /sample/jwt-manager-sample.php: -------------------------------------------------------------------------------- 1 | generate('test'); 21 | print('token: ' . $tokenGenerated); 22 | echo PHP_EOL; 23 | 24 | //decode the token and return the data in array 25 | $result = $jwtManager->decodePayload($tokenGenerated); 26 | echo 'Decoded Token payload: '; 27 | echo PHP_EOL; 28 | 29 | print_r($result); 30 | echo PHP_EOL; 31 | 32 | //Verify if token is valid 33 | $result = $jwtManager->isValid($tokenGenerated); 34 | echo 'Is valid: '.$result; 35 | echo PHP_EOL; 36 | 37 | //Check if the token is still valid 38 | $result = $jwtManager->isOnTime($tokenGenerated); 39 | echo 'Is on time: '.$result; 40 | echo PHP_EOL; 41 | 42 | //Return the expire time that was set 43 | $result = $jwtManager->getexpire(); 44 | echo 'Token expiration time: '.$result; 45 | echo PHP_EOL; 46 | 47 | //Check if is needed generate new token 48 | $result = $jwtManager->tokenNeedToRefresh($tokenGenerated); 49 | echo 'Need to refresh token: '.$result; 50 | echo PHP_EOL; 51 | -------------------------------------------------------------------------------- /src/JwtManager.php: -------------------------------------------------------------------------------- 1 | appSecret = $appSecret; 32 | $this->context = $context; 33 | $this->expire = $expire; 34 | $this->renew = $renew; 35 | } 36 | 37 | /** 38 | * mount and get the header part 39 | * @return string 40 | */ 41 | private function getHeader(): string 42 | { 43 | $header = [ 44 | 'alg' => $this->algorithm, 45 | 'typ' => $this->type, 46 | ]; 47 | $header = json_encode($header); 48 | return $this->base64UrlEncode($header); 49 | } 50 | 51 | /** 52 | * mount and get the payload part 53 | * @param string $audience 54 | * @param string $subject 55 | * @param array $customPayload 56 | * @return string 57 | */ 58 | private function getPayload( 59 | string $audience, 60 | string $subject, 61 | array $customPayload 62 | ): string { 63 | $payload = [ 64 | 'aud' => $audience, 65 | 'exp' => time() + $this->expire, 66 | 'iat' => time(), 67 | 'iss' => $this->context, 68 | 'sub' => $subject, 69 | ]; 70 | 71 | $payload = array_merge($customPayload, $payload); 72 | $payload = json_encode($payload); 73 | 74 | return $this->base64UrlEncode($payload); 75 | } 76 | 77 | /** 78 | * mount and get the signature part 79 | * @param string $header 80 | * @param string $payload 81 | * @return string 82 | */ 83 | private function getSignature( 84 | string $header, 85 | string $payload 86 | ): string { 87 | $signature = hash_hmac( 88 | $this->hash, 89 | $header . '.' . $payload, 90 | $this->appSecret, 91 | true 92 | ); 93 | return $this->base64UrlEncode($signature); 94 | } 95 | 96 | /** 97 | * split in parts a received token 98 | * @param string $token 99 | * @return array 100 | */ 101 | private function splitParts( 102 | string $token 103 | ): array { 104 | $part = explode('.', $token); 105 | return [ 106 | 'header' => $part[0], 107 | 'payload' => $part[1], 108 | 'signature' => $part[2], 109 | ]; 110 | } 111 | 112 | /** 113 | * actual expire time 114 | * @return int 115 | */ 116 | public function getexpire(): int 117 | { 118 | return $this->expire; 119 | } 120 | 121 | /** 122 | * generate token 123 | * @param string $audience 124 | * @param string $subject 125 | * @param array $payload 126 | * @return string 127 | */ 128 | public function generate( 129 | string $audience, 130 | string $subject = '', 131 | array $customPayload = [] 132 | ): string { 133 | $header = $this->getHeader(); 134 | $payload = $this->getPayload($audience, $subject, $customPayload); 135 | $signature = $this->getSignature($header, $payload); 136 | 137 | return $header . '.' . $payload . '.' . $signature; 138 | } 139 | 140 | /** 141 | * check if is a valid token 142 | * @param string $token 143 | * @throws Exception 144 | * @return bool 145 | */ 146 | public function isValid( 147 | string $token 148 | ): bool { 149 | $correctFormat = preg_match( 150 | '^([a-zA-Z0-9_=]{4,})\.([a-zA-Z0-9_=]{4,})\.([a-zA-Z0-9_\-\+\/=]{4,})^', 151 | $token 152 | ); 153 | 154 | if (!$correctFormat) { 155 | throw new Exception('Invalid JWT Token', 401); 156 | } 157 | 158 | $part = $this->splitParts($token); 159 | $valid = $this->getSignature($part['header'], $part['payload']); 160 | 161 | if ($part['signature'] !== $valid && $part['signature'] !== $valid.'=') { 162 | throw new Exception('Invalid JWT Token', 401); 163 | } 164 | return true; 165 | } 166 | 167 | /** 168 | * check if token is on time 169 | * @param string $token 170 | * @throws Exception 171 | * @return bool 172 | */ 173 | public function isOnTime( 174 | string $token 175 | ): bool { 176 | $payload = $this->decodePayload($token); 177 | $iat = $payload['iat'] ?? null; 178 | $exp = $payload['exp'] ?? null; 179 | 180 | if (empty($iat) || empty($exp)) { 181 | throw new Exception('Invalid JWT Token', 401); 182 | } 183 | 184 | $validUntil = date('Y-m-d H:i:s', $exp); 185 | $moment = date('Y-m-d H:i:s'); 186 | if ($moment > $validUntil) { 187 | throw new Exception('Expired JWT Token', 401); 188 | } 189 | 190 | return true; 191 | } 192 | 193 | /** 194 | * check if is need refresh token 195 | * @param string $token 196 | * @throws Exception 197 | * @return bool 198 | */ 199 | public function tokenNeedToRefresh( 200 | string $token 201 | ): bool { 202 | $payload = $this->decodePayload($token); 203 | $iat = $payload['iat'] ?? null; 204 | $exp = $payload['exp'] ?? null; 205 | 206 | if (empty($iat) || empty($exp)) { 207 | throw new Exception('Invalid JWT Token', 401); 208 | } 209 | 210 | $almostExpired = date('Y-m-d H:i:s', $iat + $this->renew); 211 | $moment = date('Y-m-d H:i:s'); 212 | if ($moment > $almostExpired) { 213 | return true; 214 | } 215 | 216 | return false; 217 | } 218 | 219 | /** 220 | * decode token payload 221 | * @param string $token 222 | * @return array 223 | */ 224 | public function decodePayload( 225 | string $token 226 | ): array { 227 | $part = $this->splitParts($token); 228 | $payload = $part['payload']; 229 | 230 | $data = $this->base64UrlDecode($payload); 231 | return json_decode($data, true); 232 | } 233 | 234 | /** 235 | * encode url base64 236 | * @param string $data 237 | * @return string 238 | */ 239 | public function base64UrlEncode( 240 | string $data 241 | ): string { 242 | $data = base64_encode($data); 243 | $data = strtr($data, '+/', '-_'); 244 | return rtrim($data, '='); 245 | } 246 | 247 | /** 248 | * decode url base64 249 | * @param string $data 250 | * @return string 251 | */ 252 | public function base64UrlDecode( 253 | $data 254 | ) { 255 | $data = strtr($data, '-_', '+/'); 256 | return base64_decode($data); 257 | } 258 | } 259 | -------------------------------------------------------------------------------- /tests/JwtManagerTest.php: -------------------------------------------------------------------------------- 1 | appSecret, 18 | $this->context 19 | ); 20 | 21 | $this->assertInstanceOf(JwtManager::class, $JwtManager); 22 | } 23 | 24 | /** 25 | * @covers JwtManager\JwtManager::getExpire 26 | */ 27 | public function testGetExpire() 28 | { 29 | $JwtManager = new JwtManager( 30 | $this->appSecret, 31 | $this->context 32 | ); 33 | 34 | $expire = $JwtManager->getExpire(); 35 | 36 | $this->assertIsInt($expire); 37 | $this->assertNotNull($expire); 38 | } 39 | 40 | /** 41 | * @covers JwtManager\JwtManager::generate 42 | * @covers JwtManager\JwtManager::getHeader 43 | * @covers JwtManager\JwtManager::getPayload 44 | * @covers JwtManager\JwtManager::getSignature 45 | * @covers JwtManager\JwtManager::base64UrlEncode 46 | */ 47 | public function testGenerate() 48 | { 49 | $JwtManager = new JwtManager( 50 | $this->appSecret, 51 | $this->context 52 | ); 53 | 54 | $token = $JwtManager->generate('token', '68162dc1-a392-491f-9d46-639f0e0f179d'); 55 | 56 | $this->assertIsString($token); 57 | $this->assertMatchesRegularExpression( 58 | '^([a-zA-Z0-9_=]{4,})\.([a-zA-Z0-9_=]{4,})\.([a-zA-Z0-9_\-\+\/=]{4,})^', 59 | $token 60 | ); 61 | } 62 | 63 | /** 64 | * @covers JwtManager\JwtManager::isValid 65 | * @covers JwtManager\JwtManager::splitParts 66 | * @covers JwtManager\JwtManager::getSignature 67 | * @covers JwtManager\JwtManager::base64UrlEncode 68 | */ 69 | public function testIsValid() 70 | { 71 | $JwtManager = new JwtManager( 72 | $this->appSecret, 73 | $this->context 74 | ); 75 | 76 | $token = $JwtManager->generate('token', '68162dc1-a392-491f-9d46-639f0e0f179d'); 77 | 78 | $JwtManager = new JwtManager( 79 | $this->appSecret, 80 | $this->context 81 | ); 82 | 83 | $valid = $JwtManager->isValid($token); 84 | 85 | $this->assertIsBool($valid); 86 | $this->assertTrue($valid); 87 | } 88 | 89 | /** 90 | * @covers JwtManager\JwtManager::isValid 91 | * @covers JwtManager\JwtManager::splitParts 92 | * @covers JwtManager\JwtManager::getSignature 93 | * @covers JwtManager\JwtManager::base64UrlEncode 94 | */ 95 | public function testInvalidFormat() 96 | { 97 | $token = 'token'; 98 | 99 | $JwtManager = new JwtManager( 100 | $this->appSecret, 101 | $this->context 102 | ); 103 | 104 | $this->expectExceptionObject( 105 | new \Exception('Invalid JWT Token', 401) 106 | ); 107 | 108 | $JwtManager->isValid($token); 109 | } 110 | 111 | /** 112 | * @covers JwtManager\JwtManager::isValid 113 | * @covers JwtManager\JwtManager::splitParts 114 | * @covers JwtManager\JwtManager::getSignature 115 | * @covers JwtManager\JwtManager::base64UrlEncode 116 | */ 117 | public function testIsNotValid() 118 | { 119 | $token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9'. 120 | '.eyJhdWQiOiJ0b2tlbiIsImV4cCI6MzAsIml'. 121 | 'hdCI6MTUzMjMwODY3MSwiaXNzIjoibXllZHV'. 122 | '6ei1hcGkiLCJzdWIiOjgxNTk1OX0=.t5HzL1'. 123 | '+FDvvi+T7JM8c9l12PM16R8CCj6lDKuCgwrong'; 124 | 125 | $JwtManager = new JwtManager( 126 | $this->appSecret, 127 | $this->context 128 | ); 129 | 130 | $this->expectExceptionObject( 131 | new \Exception('Invalid JWT Token', 401) 132 | ); 133 | 134 | $valid = $JwtManager->isValid($token); 135 | } 136 | 137 | /** 138 | * @covers JwtManager\JwtManager::isOnTime 139 | * @covers JwtManager\JwtManager::decodePayload 140 | * @covers JwtManager\JwtManager::base64UrlDecode 141 | */ 142 | public function testIsOnTime() 143 | { 144 | $JwtManager = new JwtManager( 145 | $this->appSecret, 146 | $this->context 147 | ); 148 | 149 | $token = $JwtManager->generate('token', '68162dc1-a392-491f-9d46-639f0e0f179d'); 150 | $onTime = $JwtManager->isOnTime($token); 151 | 152 | $this->assertIsBool($onTime); 153 | $this->assertTrue($onTime); 154 | } 155 | 156 | /** 157 | * @covers JwtManager\JwtManager::isOnTime 158 | * @covers JwtManager\JwtManager::decodePayload 159 | * @covers JwtManager\JwtManager::base64UrlDecode 160 | */ 161 | public function testIsOnTimeMissingIatExp() 162 | { 163 | $token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9'. 164 | '.eyJhdWQiOiJ0b2tlbiIsImlzcyI6Im15ZWR'. 165 | '1enotYXBpIiwic3ViIjo4MTU5NTl9.AkSOlj'. 166 | 'nyMK4SM4bW5V04jiYClceFgINOrmcrqN4NsuQ='; 167 | 168 | $JwtManager = new JwtManager( 169 | $this->appSecret, 170 | $this->context 171 | ); 172 | 173 | $this->expectExceptionObject( 174 | new \Exception('Invalid JWT Token', 401) 175 | ); 176 | 177 | $JwtManager->isOnTime($token); 178 | } 179 | 180 | /** 181 | * @covers JwtManager\JwtManager::isOnTime 182 | * @covers JwtManager\JwtManager::decodePayload 183 | * @covers JwtManager\JwtManager::base64UrlDecode 184 | * @covers JwtManager\JwtManager::splitParts 185 | */ 186 | public function testIsNotOnTime() 187 | { 188 | $oldToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9'. 189 | '.eyJhdWQiOiJ0b2tlbiIsImV4cCI6MzAsIml'. 190 | 'hdCI6MTUzMjMwODY3MSwiaXNzIjoibXllZHV'. 191 | '6ei1hcGkiLCJzdWIiOjgxNTk1OX0=.t5HzL1'. 192 | '+FDvvi+T7JM8c9l12PM16R8CCj6lDKuCgDzHk='; 193 | 194 | $JwtManager = new JwtManager( 195 | $this->appSecret, 196 | $this->context 197 | ); 198 | 199 | $this->expectExceptionObject( 200 | new \Exception('Expired JWT Token', 401) 201 | ); 202 | 203 | $JwtManager->isOnTime($oldToken); 204 | } 205 | 206 | /** 207 | * @covers JwtManager\JwtManager::tokenNeedToRefresh 208 | * @covers JwtManager\JwtManager::decodePayload 209 | * @covers JwtManager\JwtManager::base64UrlDecode 210 | * @covers JwtManager\JwtManager::splitParts 211 | */ 212 | public function testTokenNeedToRefresh() 213 | { 214 | $JwtManager = new JwtManager( 215 | $this->appSecret, 216 | $this->context, 217 | 1, 218 | 1 219 | ); 220 | 221 | $token = $JwtManager->generate('token', '68162dc1-a392-491f-9d46-639f0e0f179d'); 222 | sleep(2); 223 | 224 | $need = $JwtManager->tokenNeedToRefresh($token); 225 | 226 | $this->assertIsBool($need); 227 | $this->assertTrue($need); 228 | } 229 | 230 | /** 231 | * @covers JwtManager\JwtManager::tokenNeedToRefresh 232 | * @covers JwtManager\JwtManager::decodePayload 233 | * @covers JwtManager\JwtManager::base64UrlDecode 234 | * @covers JwtManager\JwtManager::splitParts 235 | */ 236 | public function testTokenNeedToRefreshMissingIatExp() 237 | { 238 | $token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9'. 239 | '.eyJhdWQiOiJ0b2tlbiIsImlzcyI6Im15ZWR'. 240 | '1enotYXBpIiwic3ViIjo4MTU5NTl9.AkSOlj'. 241 | 'nyMK4SM4bW5V04jiYClceFgINOrmcrqN4NsuQ='; 242 | 243 | $JwtManager = new JwtManager( 244 | $this->appSecret, 245 | $this->context 246 | ); 247 | 248 | $this->expectExceptionObject( 249 | new \Exception('Invalid JWT Token', 401) 250 | ); 251 | 252 | $JwtManager->tokenNeedToRefresh($token); 253 | } 254 | 255 | /** 256 | * @covers JwtManager\JwtManager::tokenNeedToRefresh 257 | * @covers JwtManager\JwtManager::decodePayload 258 | * @covers JwtManager\JwtManager::base64UrlDecode 259 | * @covers JwtManager\JwtManager::splitParts 260 | */ 261 | public function testTokenNotNeedToRefresh() 262 | { 263 | $JwtManager = new JwtManager( 264 | $this->appSecret, 265 | $this->context 266 | ); 267 | 268 | $token = $JwtManager->generate('token', '68162dc1-a392-491f-9d46-639f0e0f179d'); 269 | $need = $JwtManager->tokenNeedToRefresh($token); 270 | 271 | $this->assertIsBool($need); 272 | $this->assertFalse($need); 273 | } 274 | 275 | /** 276 | * @covers JwtManager\JwtManager::isValid 277 | * @covers JwtManager\JwtManager::splitParts 278 | * @covers JwtManager\JwtManager::getSignature 279 | * @covers JwtManager\JwtManager::base64UrlEncode 280 | */ 281 | public function testCustomPayload() 282 | { 283 | $JwtManager = new JwtManager( 284 | $this->appSecret, 285 | $this->context 286 | ); 287 | 288 | $token = $JwtManager->generate( 289 | 'token', 290 | '68162dc1-a392-491f-9d46-639f0e0f179d0', 291 | [ 292 | 'test' => 'test', 293 | ] 294 | ); 295 | 296 | $JwtManager = new JwtManager( 297 | $this->appSecret, 298 | $this->context 299 | ); 300 | 301 | $payload = $JwtManager->decodePayload($token); 302 | 303 | $this->assertIsArray($payload); 304 | $this->assertEquals($payload['test'], 'test'); 305 | } 306 | 307 | protected function tearDown(): void 308 | { 309 | // 310 | } 311 | } 312 | --------------------------------------------------------------------------------