Plugin Directory

Changeset 3129167


Ignore:
Timestamp:
08/01/2024 05:04:33 AM (8 months ago)
Author:
mvpis
Message:

Updated HTML Parser

Location:
fluentc-translation
Files:
633 added
14 edited

Legend:

Unmodified
Added
Removed
  • fluentc-translation/trunk/composer.json

    r3122693 r3129167  
    1515    "require-dev": {
    1616        "wp-coding-standards/wpcs": "3.0"
     17    },
     18    "require": {
     19        "paquettg/php-html-parser": "^3.1"
    1720    }
    1821}
  • fluentc-translation/trunk/composer.lock

    r3065579 r3129167  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "beb1c8199f3993f54b5eb20948bd745c",
    8     "packages": [],
     7    "content-hash": "fbbdd27c3c35365e0133d48d21f07ee0",
     8    "packages": [
     9        {
     10            "name": "guzzlehttp/guzzle",
     11            "version": "7.8.2",
     12            "source": {
     13                "type": "git",
     14                "url": "https://github.com/guzzle/guzzle.git",
     15                "reference": "f4152d9eb85c445fe1f992001d1748e8bec070d2"
     16            },
     17            "dist": {
     18                "type": "zip",
     19                "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4152d9eb85c445fe1f992001d1748e8bec070d2",
     20                "reference": "f4152d9eb85c445fe1f992001d1748e8bec070d2",
     21                "shasum": ""
     22            },
     23            "require": {
     24                "ext-json": "*",
     25                "guzzlehttp/promises": "^1.5.3 || ^2.0.3",
     26                "guzzlehttp/psr7": "^1.9.1 || ^2.6.3",
     27                "php": "^7.2.5 || ^8.0",
     28                "psr/http-client": "^1.0",
     29                "symfony/deprecation-contracts": "^2.2 || ^3.0"
     30            },
     31            "provide": {
     32                "psr/http-client-implementation": "1.0"
     33            },
     34            "require-dev": {
     35                "bamarni/composer-bin-plugin": "^1.8.2",
     36                "ext-curl": "*",
     37                "guzzle/client-integration-tests": "3.0.2",
     38                "php-http/message-factory": "^1.1",
     39                "phpunit/phpunit": "^8.5.39 || ^9.6.20",
     40                "psr/log": "^1.1 || ^2.0 || ^3.0"
     41            },
     42            "suggest": {
     43                "ext-curl": "Required for CURL handler support",
     44                "ext-intl": "Required for Internationalized Domain Name (IDN) support",
     45                "psr/log": "Required for using the Log middleware"
     46            },
     47            "type": "library",
     48            "extra": {
     49                "bamarni-bin": {
     50                    "bin-links": true,
     51                    "forward-command": false
     52                }
     53            },
     54            "autoload": {
     55                "files": [
     56                    "src/functions_include.php"
     57                ],
     58                "psr-4": {
     59                    "GuzzleHttp\\": "src/"
     60                }
     61            },
     62            "notification-url": "https://packagist.org/downloads/",
     63            "license": [
     64                "MIT"
     65            ],
     66            "authors": [
     67                {
     68                    "name": "Graham Campbell",
     69                    "email": "[email protected]",
     70                    "homepage": "https://github.com/GrahamCampbell"
     71                },
     72                {
     73                    "name": "Michael Dowling",
     74                    "email": "[email protected]",
     75                    "homepage": "https://github.com/mtdowling"
     76                },
     77                {
     78                    "name": "Jeremy Lindblom",
     79                    "email": "[email protected]",
     80                    "homepage": "https://github.com/jeremeamia"
     81                },
     82                {
     83                    "name": "George Mponos",
     84                    "email": "[email protected]",
     85                    "homepage": "https://github.com/gmponos"
     86                },
     87                {
     88                    "name": "Tobias Nyholm",
     89                    "email": "[email protected]",
     90                    "homepage": "https://github.com/Nyholm"
     91                },
     92                {
     93                    "name": "Márk Sági-Kazár",
     94                    "email": "[email protected]",
     95                    "homepage": "https://github.com/sagikazarmark"
     96                },
     97                {
     98                    "name": "Tobias Schultze",
     99                    "email": "[email protected]",
     100                    "homepage": "https://github.com/Tobion"
     101                }
     102            ],
     103            "description": "Guzzle is a PHP HTTP client library",
     104            "keywords": [
     105                "client",
     106                "curl",
     107                "framework",
     108                "http",
     109                "http client",
     110                "psr-18",
     111                "psr-7",
     112                "rest",
     113                "web service"
     114            ],
     115            "support": {
     116                "issues": "https://github.com/guzzle/guzzle/issues",
     117                "source": "https://github.com/guzzle/guzzle/tree/7.8.2"
     118            },
     119            "funding": [
     120                {
     121                    "url": "https://github.com/GrahamCampbell",
     122                    "type": "github"
     123                },
     124                {
     125                    "url": "https://github.com/Nyholm",
     126                    "type": "github"
     127                },
     128                {
     129                    "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
     130                    "type": "tidelift"
     131                }
     132            ],
     133            "time": "2024-07-18T11:12:18+00:00"
     134        },
     135        {
     136            "name": "guzzlehttp/promises",
     137            "version": "2.0.3",
     138            "source": {
     139                "type": "git",
     140                "url": "https://github.com/guzzle/promises.git",
     141                "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8"
     142            },
     143            "dist": {
     144                "type": "zip",
     145                "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
     146                "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
     147                "shasum": ""
     148            },
     149            "require": {
     150                "php": "^7.2.5 || ^8.0"
     151            },
     152            "require-dev": {
     153                "bamarni/composer-bin-plugin": "^1.8.2",
     154                "phpunit/phpunit": "^8.5.39 || ^9.6.20"
     155            },
     156            "type": "library",
     157            "extra": {
     158                "bamarni-bin": {
     159                    "bin-links": true,
     160                    "forward-command": false
     161                }
     162            },
     163            "autoload": {
     164                "psr-4": {
     165                    "GuzzleHttp\\Promise\\": "src/"
     166                }
     167            },
     168            "notification-url": "https://packagist.org/downloads/",
     169            "license": [
     170                "MIT"
     171            ],
     172            "authors": [
     173                {
     174                    "name": "Graham Campbell",
     175                    "email": "[email protected]",
     176                    "homepage": "https://github.com/GrahamCampbell"
     177                },
     178                {
     179                    "name": "Michael Dowling",
     180                    "email": "[email protected]",
     181                    "homepage": "https://github.com/mtdowling"
     182                },
     183                {
     184                    "name": "Tobias Nyholm",
     185                    "email": "[email protected]",
     186                    "homepage": "https://github.com/Nyholm"
     187                },
     188                {
     189                    "name": "Tobias Schultze",
     190                    "email": "[email protected]",
     191                    "homepage": "https://github.com/Tobion"
     192                }
     193            ],
     194            "description": "Guzzle promises library",
     195            "keywords": [
     196                "promise"
     197            ],
     198            "support": {
     199                "issues": "https://github.com/guzzle/promises/issues",
     200                "source": "https://github.com/guzzle/promises/tree/2.0.3"
     201            },
     202            "funding": [
     203                {
     204                    "url": "https://github.com/GrahamCampbell",
     205                    "type": "github"
     206                },
     207                {
     208                    "url": "https://github.com/Nyholm",
     209                    "type": "github"
     210                },
     211                {
     212                    "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
     213                    "type": "tidelift"
     214                }
     215            ],
     216            "time": "2024-07-18T10:29:17+00:00"
     217        },
     218        {
     219            "name": "guzzlehttp/psr7",
     220            "version": "1.9.1",
     221            "source": {
     222                "type": "git",
     223                "url": "https://github.com/guzzle/psr7.git",
     224                "reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b"
     225            },
     226            "dist": {
     227                "type": "zip",
     228                "url": "https://api.github.com/repos/guzzle/psr7/zipball/e4490cabc77465aaee90b20cfc9a770f8c04be6b",
     229                "reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b",
     230                "shasum": ""
     231            },
     232            "require": {
     233                "php": ">=5.4.0",
     234                "psr/http-message": "~1.0",
     235                "ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
     236            },
     237            "provide": {
     238                "psr/http-message-implementation": "1.0"
     239            },
     240            "require-dev": {
     241                "ext-zlib": "*",
     242                "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
     243            },
     244            "suggest": {
     245                "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
     246            },
     247            "type": "library",
     248            "autoload": {
     249                "files": [
     250                    "src/functions_include.php"
     251                ],
     252                "psr-4": {
     253                    "GuzzleHttp\\Psr7\\": "src/"
     254                }
     255            },
     256            "notification-url": "https://packagist.org/downloads/",
     257            "license": [
     258                "MIT"
     259            ],
     260            "authors": [
     261                {
     262                    "name": "Graham Campbell",
     263                    "email": "[email protected]",
     264                    "homepage": "https://github.com/GrahamCampbell"
     265                },
     266                {
     267                    "name": "Michael Dowling",
     268                    "email": "[email protected]",
     269                    "homepage": "https://github.com/mtdowling"
     270                },
     271                {
     272                    "name": "George Mponos",
     273                    "email": "[email protected]",
     274                    "homepage": "https://github.com/gmponos"
     275                },
     276                {
     277                    "name": "Tobias Nyholm",
     278                    "email": "[email protected]",
     279                    "homepage": "https://github.com/Nyholm"
     280                },
     281                {
     282                    "name": "Márk Sági-Kazár",
     283                    "email": "[email protected]",
     284                    "homepage": "https://github.com/sagikazarmark"
     285                },
     286                {
     287                    "name": "Tobias Schultze",
     288                    "email": "[email protected]",
     289                    "homepage": "https://github.com/Tobion"
     290                }
     291            ],
     292            "description": "PSR-7 message implementation that also provides common utility methods",
     293            "keywords": [
     294                "http",
     295                "message",
     296                "psr-7",
     297                "request",
     298                "response",
     299                "stream",
     300                "uri",
     301                "url"
     302            ],
     303            "support": {
     304                "issues": "https://github.com/guzzle/psr7/issues",
     305                "source": "https://github.com/guzzle/psr7/tree/1.9.1"
     306            },
     307            "funding": [
     308                {
     309                    "url": "https://github.com/GrahamCampbell",
     310                    "type": "github"
     311                },
     312                {
     313                    "url": "https://github.com/Nyholm",
     314                    "type": "github"
     315                },
     316                {
     317                    "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
     318                    "type": "tidelift"
     319                }
     320            ],
     321            "time": "2023-04-17T16:00:37+00:00"
     322        },
     323        {
     324            "name": "myclabs/php-enum",
     325            "version": "1.8.4",
     326            "source": {
     327                "type": "git",
     328                "url": "https://github.com/myclabs/php-enum.git",
     329                "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483"
     330            },
     331            "dist": {
     332                "type": "zip",
     333                "url": "https://api.github.com/repos/myclabs/php-enum/zipball/a867478eae49c9f59ece437ae7f9506bfaa27483",
     334                "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483",
     335                "shasum": ""
     336            },
     337            "require": {
     338                "ext-json": "*",
     339                "php": "^7.3 || ^8.0"
     340            },
     341            "require-dev": {
     342                "phpunit/phpunit": "^9.5",
     343                "squizlabs/php_codesniffer": "1.*",
     344                "vimeo/psalm": "^4.6.2"
     345            },
     346            "type": "library",
     347            "autoload": {
     348                "psr-4": {
     349                    "MyCLabs\\Enum\\": "src/"
     350                },
     351                "classmap": [
     352                    "stubs/Stringable.php"
     353                ]
     354            },
     355            "notification-url": "https://packagist.org/downloads/",
     356            "license": [
     357                "MIT"
     358            ],
     359            "authors": [
     360                {
     361                    "name": "PHP Enum contributors",
     362                    "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
     363                }
     364            ],
     365            "description": "PHP Enum implementation",
     366            "homepage": "http://github.com/myclabs/php-enum",
     367            "keywords": [
     368                "enum"
     369            ],
     370            "support": {
     371                "issues": "https://github.com/myclabs/php-enum/issues",
     372                "source": "https://github.com/myclabs/php-enum/tree/1.8.4"
     373            },
     374            "funding": [
     375                {
     376                    "url": "https://github.com/mnapoli",
     377                    "type": "github"
     378                },
     379                {
     380                    "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum",
     381                    "type": "tidelift"
     382                }
     383            ],
     384            "time": "2022-08-04T09:53:51+00:00"
     385        },
     386        {
     387            "name": "paquettg/php-html-parser",
     388            "version": "3.1.1",
     389            "source": {
     390                "type": "git",
     391                "url": "https://github.com/paquettg/php-html-parser.git",
     392                "reference": "4e01a438ad5961cc2d7427eb9798d213c8a12629"
     393            },
     394            "dist": {
     395                "type": "zip",
     396                "url": "https://api.github.com/repos/paquettg/php-html-parser/zipball/4e01a438ad5961cc2d7427eb9798d213c8a12629",
     397                "reference": "4e01a438ad5961cc2d7427eb9798d213c8a12629",
     398                "shasum": ""
     399            },
     400            "require": {
     401                "ext-curl": "*",
     402                "ext-mbstring": "*",
     403                "ext-zlib": "*",
     404                "guzzlehttp/guzzle": "^7.0",
     405                "guzzlehttp/psr7": "^1.6",
     406                "myclabs/php-enum": "^1.7",
     407                "paquettg/string-encode": "~1.0.0",
     408                "php": ">=7.2",
     409                "php-http/httplug": "^2.1"
     410            },
     411            "require-dev": {
     412                "friendsofphp/php-cs-fixer": "^2.16",
     413                "infection/infection": "^0.13.4",
     414                "mockery/mockery": "^1.2",
     415                "phan/phan": "^2.4",
     416                "phpunit/phpunit": "^7.5.1"
     417            },
     418            "type": "library",
     419            "autoload": {
     420                "psr-4": {
     421                    "PHPHtmlParser\\": "src/PHPHtmlParser"
     422                }
     423            },
     424            "notification-url": "https://packagist.org/downloads/",
     425            "license": [
     426                "MIT"
     427            ],
     428            "authors": [
     429                {
     430                    "name": "Gilles Paquette",
     431                    "email": "[email protected]",
     432                    "homepage": "http://gillespaquette.ca"
     433                }
     434            ],
     435            "description": "An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.",
     436            "homepage": "https://github.com/paquettg/php-html-parser",
     437            "keywords": [
     438                "dom",
     439                "html",
     440                "parser"
     441            ],
     442            "support": {
     443                "issues": "https://github.com/paquettg/php-html-parser/issues",
     444                "source": "https://github.com/paquettg/php-html-parser/tree/3.1.1"
     445            },
     446            "funding": [
     447                {
     448                    "url": "https://tidelift.com/funding/github/packagist/paquettg/php-html-parser",
     449                    "type": "tidelift"
     450                }
     451            ],
     452            "time": "2020-11-01T20:34:43+00:00"
     453        },
     454        {
     455            "name": "paquettg/string-encode",
     456            "version": "1.0.1",
     457            "source": {
     458                "type": "git",
     459                "url": "https://github.com/paquettg/string-encoder.git",
     460                "reference": "a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee"
     461            },
     462            "dist": {
     463                "type": "zip",
     464                "url": "https://api.github.com/repos/paquettg/string-encoder/zipball/a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee",
     465                "reference": "a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee",
     466                "shasum": ""
     467            },
     468            "require": {
     469                "php": ">=7.1"
     470            },
     471            "require-dev": {
     472                "phpunit/phpunit": "^7.5.1"
     473            },
     474            "type": "library",
     475            "autoload": {
     476                "psr-0": {
     477                    "stringEncode": "src/"
     478                }
     479            },
     480            "notification-url": "https://packagist.org/downloads/",
     481            "license": [
     482                "MIT"
     483            ],
     484            "authors": [
     485                {
     486                    "name": "Gilles Paquette",
     487                    "email": "[email protected]",
     488                    "homepage": "http://gillespaquette.ca"
     489                }
     490            ],
     491            "description": "Facilitating the process of altering string encoding in PHP.",
     492            "homepage": "https://github.com/paquettg/string-encoder",
     493            "keywords": [
     494                "charset",
     495                "encoding",
     496                "string"
     497            ],
     498            "support": {
     499                "issues": "https://github.com/paquettg/string-encoder/issues",
     500                "source": "https://github.com/paquettg/string-encoder/tree/1.0.1"
     501            },
     502            "time": "2018-12-21T02:25:09+00:00"
     503        },
     504        {
     505            "name": "php-http/httplug",
     506            "version": "2.4.0",
     507            "source": {
     508                "type": "git",
     509                "url": "https://github.com/php-http/httplug.git",
     510                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67"
     511            },
     512            "dist": {
     513                "type": "zip",
     514                "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67",
     515                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67",
     516                "shasum": ""
     517            },
     518            "require": {
     519                "php": "^7.1 || ^8.0",
     520                "php-http/promise": "^1.1",
     521                "psr/http-client": "^1.0",
     522                "psr/http-message": "^1.0 || ^2.0"
     523            },
     524            "require-dev": {
     525                "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0",
     526                "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0"
     527            },
     528            "type": "library",
     529            "autoload": {
     530                "psr-4": {
     531                    "Http\\Client\\": "src/"
     532                }
     533            },
     534            "notification-url": "https://packagist.org/downloads/",
     535            "license": [
     536                "MIT"
     537            ],
     538            "authors": [
     539                {
     540                    "name": "Eric GELOEN",
     541                    "email": "[email protected]"
     542                },
     543                {
     544                    "name": "Márk Sági-Kazár",
     545                    "email": "[email protected]",
     546                    "homepage": "https://sagikazarmark.hu"
     547                }
     548            ],
     549            "description": "HTTPlug, the HTTP client abstraction for PHP",
     550            "homepage": "http://httplug.io",
     551            "keywords": [
     552                "client",
     553                "http"
     554            ],
     555            "support": {
     556                "issues": "https://github.com/php-http/httplug/issues",
     557                "source": "https://github.com/php-http/httplug/tree/2.4.0"
     558            },
     559            "time": "2023-04-14T15:10:03+00:00"
     560        },
     561        {
     562            "name": "php-http/promise",
     563            "version": "1.3.1",
     564            "source": {
     565                "type": "git",
     566                "url": "https://github.com/php-http/promise.git",
     567                "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83"
     568            },
     569            "dist": {
     570                "type": "zip",
     571                "url": "https://api.github.com/repos/php-http/promise/zipball/fc85b1fba37c169a69a07ef0d5a8075770cc1f83",
     572                "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83",
     573                "shasum": ""
     574            },
     575            "require": {
     576                "php": "^7.1 || ^8.0"
     577            },
     578            "require-dev": {
     579                "friends-of-phpspec/phpspec-code-coverage": "^4.3.2 || ^6.3",
     580                "phpspec/phpspec": "^5.1.2 || ^6.2 || ^7.4"
     581            },
     582            "type": "library",
     583            "autoload": {
     584                "psr-4": {
     585                    "Http\\Promise\\": "src/"
     586                }
     587            },
     588            "notification-url": "https://packagist.org/downloads/",
     589            "license": [
     590                "MIT"
     591            ],
     592            "authors": [
     593                {
     594                    "name": "Joel Wurtz",
     595                    "email": "[email protected]"
     596                },
     597                {
     598                    "name": "Márk Sági-Kazár",
     599                    "email": "[email protected]"
     600                }
     601            ],
     602            "description": "Promise used for asynchronous HTTP requests",
     603            "homepage": "http://httplug.io",
     604            "keywords": [
     605                "promise"
     606            ],
     607            "support": {
     608                "issues": "https://github.com/php-http/promise/issues",
     609                "source": "https://github.com/php-http/promise/tree/1.3.1"
     610            },
     611            "time": "2024-03-15T13:55:21+00:00"
     612        },
     613        {
     614            "name": "psr/http-client",
     615            "version": "1.0.3",
     616            "source": {
     617                "type": "git",
     618                "url": "https://github.com/php-fig/http-client.git",
     619                "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
     620            },
     621            "dist": {
     622                "type": "zip",
     623                "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
     624                "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
     625                "shasum": ""
     626            },
     627            "require": {
     628                "php": "^7.0 || ^8.0",
     629                "psr/http-message": "^1.0 || ^2.0"
     630            },
     631            "type": "library",
     632            "extra": {
     633                "branch-alias": {
     634                    "dev-master": "1.0.x-dev"
     635                }
     636            },
     637            "autoload": {
     638                "psr-4": {
     639                    "Psr\\Http\\Client\\": "src/"
     640                }
     641            },
     642            "notification-url": "https://packagist.org/downloads/",
     643            "license": [
     644                "MIT"
     645            ],
     646            "authors": [
     647                {
     648                    "name": "PHP-FIG",
     649                    "homepage": "https://www.php-fig.org/"
     650                }
     651            ],
     652            "description": "Common interface for HTTP clients",
     653            "homepage": "https://github.com/php-fig/http-client",
     654            "keywords": [
     655                "http",
     656                "http-client",
     657                "psr",
     658                "psr-18"
     659            ],
     660            "support": {
     661                "source": "https://github.com/php-fig/http-client"
     662            },
     663            "time": "2023-09-23T14:17:50+00:00"
     664        },
     665        {
     666            "name": "psr/http-message",
     667            "version": "1.1",
     668            "source": {
     669                "type": "git",
     670                "url": "https://github.com/php-fig/http-message.git",
     671                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
     672            },
     673            "dist": {
     674                "type": "zip",
     675                "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     676                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     677                "shasum": ""
     678            },
     679            "require": {
     680                "php": "^7.2 || ^8.0"
     681            },
     682            "type": "library",
     683            "extra": {
     684                "branch-alias": {
     685                    "dev-master": "1.1.x-dev"
     686                }
     687            },
     688            "autoload": {
     689                "psr-4": {
     690                    "Psr\\Http\\Message\\": "src/"
     691                }
     692            },
     693            "notification-url": "https://packagist.org/downloads/",
     694            "license": [
     695                "MIT"
     696            ],
     697            "authors": [
     698                {
     699                    "name": "PHP-FIG",
     700                    "homepage": "http://www.php-fig.org/"
     701                }
     702            ],
     703            "description": "Common interface for HTTP messages",
     704            "homepage": "https://github.com/php-fig/http-message",
     705            "keywords": [
     706                "http",
     707                "http-message",
     708                "psr",
     709                "psr-7",
     710                "request",
     711                "response"
     712            ],
     713            "support": {
     714                "source": "https://github.com/php-fig/http-message/tree/1.1"
     715            },
     716            "time": "2023-04-04T09:50:52+00:00"
     717        },
     718        {
     719            "name": "ralouphie/getallheaders",
     720            "version": "3.0.3",
     721            "source": {
     722                "type": "git",
     723                "url": "https://github.com/ralouphie/getallheaders.git",
     724                "reference": "120b605dfeb996808c31b6477290a714d356e822"
     725            },
     726            "dist": {
     727                "type": "zip",
     728                "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
     729                "reference": "120b605dfeb996808c31b6477290a714d356e822",
     730                "shasum": ""
     731            },
     732            "require": {
     733                "php": ">=5.6"
     734            },
     735            "require-dev": {
     736                "php-coveralls/php-coveralls": "^2.1",
     737                "phpunit/phpunit": "^5 || ^6.5"
     738            },
     739            "type": "library",
     740            "autoload": {
     741                "files": [
     742                    "src/getallheaders.php"
     743                ]
     744            },
     745            "notification-url": "https://packagist.org/downloads/",
     746            "license": [
     747                "MIT"
     748            ],
     749            "authors": [
     750                {
     751                    "name": "Ralph Khattar",
     752                    "email": "[email protected]"
     753                }
     754            ],
     755            "description": "A polyfill for getallheaders.",
     756            "support": {
     757                "issues": "https://github.com/ralouphie/getallheaders/issues",
     758                "source": "https://github.com/ralouphie/getallheaders/tree/develop"
     759            },
     760            "time": "2019-03-08T08:55:37+00:00"
     761        },
     762        {
     763            "name": "symfony/deprecation-contracts",
     764            "version": "v3.5.0",
     765            "source": {
     766                "type": "git",
     767                "url": "https://github.com/symfony/deprecation-contracts.git",
     768                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
     769            },
     770            "dist": {
     771                "type": "zip",
     772                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     773                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     774                "shasum": ""
     775            },
     776            "require": {
     777                "php": ">=8.1"
     778            },
     779            "type": "library",
     780            "extra": {
     781                "branch-alias": {
     782                    "dev-main": "3.5-dev"
     783                },
     784                "thanks": {
     785                    "name": "symfony/contracts",
     786                    "url": "https://github.com/symfony/contracts"
     787                }
     788            },
     789            "autoload": {
     790                "files": [
     791                    "function.php"
     792                ]
     793            },
     794            "notification-url": "https://packagist.org/downloads/",
     795            "license": [
     796                "MIT"
     797            ],
     798            "authors": [
     799                {
     800                    "name": "Nicolas Grekas",
     801                    "email": "[email protected]"
     802                },
     803                {
     804                    "name": "Symfony Community",
     805                    "homepage": "https://symfony.com/contributors"
     806                }
     807            ],
     808            "description": "A generic function and convention to trigger deprecation notices",
     809            "homepage": "https://symfony.com",
     810            "support": {
     811                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
     812            },
     813            "funding": [
     814                {
     815                    "url": "https://symfony.com/sponsor",
     816                    "type": "custom"
     817                },
     818                {
     819                    "url": "https://github.com/fabpot",
     820                    "type": "github"
     821                },
     822                {
     823                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
     824                    "type": "tidelift"
     825                }
     826            ],
     827            "time": "2024-04-18T09:32:20+00:00"
     828        }
     829    ],
    9830    "packages-dev": [
    10831        {
  • fluentc-translation/trunk/fluentc_wordpress_plugin.php

    r3126655 r3129167  
    77 * Plugin URI: https://github.com/fluentc/wordpress-plugin
    88 * Description: A plugin that enables website owners to easily install the FluentC Translation on their WordPress site.
    9  * Version: 1.5
     9 * Version: 1.5.1
    1010 * Author: FluentC
    1111 * Author URI: https://www.fluentc.ai
  • fluentc-translation/trunk/readme.txt

    r3126655 r3129167  
    99Requires at least: 4.6
    1010
    11 Tested up to:  6.6
     11Tested up to:  6.6.1
    1212
    13 Stable tag:  1.5
     13Stable tag:  1.5.1
    1414
    1515Requires PHP: 7.0
     
    3232
    3333Translate your WordPress site in seconds and keep your websites performance!
    34 
    35 ### FluentC Polylang Support
    36    
    37 * FluentC is compatible with most plugins that have support for Polylang.
    3834
    3935### FluentC for WooCommerce
  • fluentc-translation/trunk/src/actions/class-insert.php

    r3126655 r3129167  
    178178            <link rel="canonical"
    179179                href="'<?php echo esc_url( $this->fluentc_url->get_canonical_url( $current_url, $widgetapikey ) ); ?>" />
    180             <meta name="generator" content="<?php echo esc_attr( 'FluentC 1.5' ); ?>" >
     180            <meta name="generator" content="<?php echo esc_attr( 'FluentC 1.5.1' ); ?>" >
    181181            <?php
    182182            $explodelang = explode( '-', get_bloginfo( 'language' ) );
  • fluentc-translation/trunk/src/actions/class-wordpress.php

    r3122693 r3129167  
    1919use FluentC\Services\Html;
    2020use FluentC\Utils\Language;
     21use PHPHtmlParser\Dom;
     22use PHPHtmlParser\Options;
    2123
    2224/**
     
    101103     * @param  string $block Block Object.
    102104     */
    103     public function filter_block( $block_content, $block ) {
     105    public function filter_block_old( $block_content, $block ) {
    104106        $language_code = $this->fluentc_language->get_fluentc_language();
    105107        $widgetapikey  = get_option( 'fluentc_api_key' );
     
    208210
    209211    /**
    210      * Filters Content
    211      *
    212      * @param  string $content Content Object.
    213      */
    214     public function filter_content( $content ) {
    215         $language_code = $this->fluentc_language->get_fluentc_language();
    216         $widgetapikey  = get_option( 'fluentc_api_key' );
    217         $site_language = get_bloginfo( 'language' );
    218 
    219         if ( $language_code ) {
    220             // If language code is set, modify the output accordingly.
    221             if ( ! is_null( $content ) && '' !== $content ) {
    222                 $html          = mb_convert_encoding( $content, 'HTML-ENTITIES', 'UTF-8' );
    223                 $doc           = new \DOMDocument();
    224                 $doc->encoding = 'UTF-8';
    225                 libxml_use_internal_errors( true );
    226                 $doc->loadHTML( $html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
    227                 libxml_clear_errors();
    228                 $xpath              = new \DOMXPath( $doc );
    229                 $query              = '//text()[not(ancestor::script) and not(ancestor::style) and not(ancestor::code) and not(ancestor::pre) and not(ancestor::noscript) and not(ancestor::iframe) and not(ancestor::object) and not(ancestor::embed) and not(ancestor::svg) and not(ancestor::math) and not(ancestor::canvas)]';
    230                 $entries            = $xpath->query( $query );
     212     * Filters Blocks
     213     *
     214     * @param  string $block_content Content of a Block.
     215     * @param  string $block Block Object.
     216     */
     217    /**
     218     * Filters Blocks
     219     *
     220     * @param  string $block_content Content of a Block.
     221     * @param  string $block Block Object.
     222     */
     223    public function filter_block( $block_content, $block ) {
     224        $language_code = $this->fluentc_language->get_fluentc_language();
     225        $widgetapikey  = get_option( 'fluentc_api_key' );
     226        $site_language = get_bloginfo( 'language' );
     227   
     228        if ( $language_code ) {
     229            // If language code is set, modify the output accordingly.
     230            if ( ! is_null( $block_content ) && '' !== $block_content ) {
     231                $html = mb_convert_encoding( $block_content, 'HTML-ENTITIES', 'UTF-8' );
     232   
     233                // Check if $html is empty to avoid DOMDocument errors
     234                if (empty($html)) {
     235                    return $block_content;
     236                }
     237   
     238                // Create Options object and set the necessary options
     239                $options = new Options();
     240                $options->setCleanupInput(false);
     241                $options->setWhitespaceTextNode(false);
     242   
     243                $dom = new Dom;
     244                $dom->loadStr($html, $options);
     245   
    231246                $texts_to_translate = array();
    232                 $entry_map          = array();
    233                 $entry_skip_map     = array();
    234                 $nodes_to_remove    = array();
    235 
    236                 // Collect text nodes that need translation
    237                 foreach ( $entries as $index => $entry ) {
    238                     $node_value = html_entity_decode( $entry->nodeValue, ENT_QUOTES | ENT_XML1, 'UTF-8' );
    239                     $data       = preg_match( $this->fluentc_htmltags->regex_only_whitespace, $node_value );
    240                     if ( $data ) {
    241                         $nodes_to_remove[] = $entry;
    242                         continue;
    243                     }
    244                     $data = preg_match( $this->fluentc_htmltags->regex_only_digits_whitespace_punctuation, $node_value );
    245                     if ( $data ) {
    246                         $nodes_to_remove[] = $entry;
    247                         continue;
    248                     }
    249                     $key = hash( 'md5', $node_value );
    250                     if ( ! array_key_exists( $key, $this->translated_text ) ) {
    251                         $texts_to_translate[]          = $node_value;
    252                         $entry_map[]                   = $index;  // Keep track of the original entry index.
    253                         $this->translated_text[ $key ] = '';
    254 
    255                     } else {
    256 
    257                         $entry_skip_map[] = $index;
    258 
    259                     }
    260                 }
    261 
     247                $entry_map = array();
     248                $entry_skip_map = array();
     249   
     250             // Collect text nodes that need translation.
     251        $elements = $dom->find('*:not(script):not(style):not(code):not(pre):not(noscript):not(iframe):not(object):not(embed):not(svg):not(math):not(canvas)');
     252        foreach ($elements as $element) {
     253            if ($element instanceof \PHPHtmlParser\Dom\Node\HtmlNode) {
     254                foreach ($element->getChildren() as $node) {
     255                    $this->processNode($node, $texts_to_translate, $entry_map, $entry_skip_map);
     256                }
     257            } elseif ($element instanceof \PHPHtmlParser\Dom\Node\TextNode) {
     258                $this->processNode($element, $texts_to_translate, $entry_map, $entry_skip_map);
     259            }
     260        }
     261   
    262262                // Make a single API call for all texts.
    263                 if ( ! empty( $texts_to_translate ) ) {
    264                     $text_labels = $this->process_text_labels( $texts_to_translate );
    265                     do_action( 'qm/info', 'text labels: ' . $text_labels );
     263                if (!empty($texts_to_translate)) {
     264                    $text_labels = $this->process_text_labels($texts_to_translate);
     265                    do_action('qm/info', 'text labels: ' . $text_labels);
    266266                    $translated_texts = $this->fluentc_connenct->get_translation_content(
    267267                        $widgetapikey,
    268                         substr( $site_language, 0, 2 ),
     268                        substr($site_language, 0, 2),
    269269                        $language_code,
    270270                        $text_labels
    271271                    );
    272 
    273                     if ( isset( $translated_texts->data->translateSite->body ) && ! empty( $translated_texts->data->translateSite->body ) ) {
     272   
     273                    if (isset($translated_texts->data->translateSite->body) && !empty($translated_texts->data->translateSite->body)) {
    274274                        // Create a map of original text to translated text.
    275275                        $translation_map = array();
    276                         foreach ( $translated_texts->data->translateSite->body as $translatedText ) {
    277                             $original_text                     = html_entity_decode( $translatedText->originalText, ENT_QUOTES | ENT_XML1, 'UTF-8' );
    278                             $translated_text                   = html_entity_decode( $translatedText->translatedText, ENT_QUOTES | ENT_XML1, 'UTF-8' );
    279                             $translation_map[ $original_text ] = $translated_text;
     276                        foreach ($translated_texts->data->translateSite->body as $translatedText) {
     277                            $original_text = html_entity_decode($translatedText->originalText, ENT_QUOTES | ENT_XML1, 'UTF-8');
     278                            $translated_text = html_entity_decode($translatedText->translatedText, ENT_QUOTES | ENT_XML1, 'UTF-8');
     279                            $translation_map[$original_text] = $translated_text;
    280280                        }
    281 
     281   
    282282                        // Replace original text nodes with translated text using the entry map.
    283                         foreach ( $entry_map as $index ) {
    284                             $entry         = $entries->item( $index );
    285                             $original_text = html_entity_decode( $entry->nodeValue, ENT_QUOTES | ENT_XML1, 'UTF-8' );
    286                             $key           = hash( 'md5', $original_text );
    287 
    288                             if ( isset( $translation_map[ $original_text ] ) ) {
    289                                 $translated_text               = $translation_map[ $original_text ];
    290                                 $entry->nodeValue              = $translated_text;
    291                                 $this->translated_text[ $key ] = $translated_text;
    292                             } else {
    293                                 do_action( 'qm/info', 'No translation found for: ' . $original_text );
    294                             }
    295                         }
     283                        foreach ($entry_map as $node) {
     284        $original_text = html_entity_decode($node->text(), ENT_QUOTES | ENT_XML1, 'UTF-8');
     285        $key = hash('md5', $original_text);
     286   
     287        if (isset($translation_map[$original_text])) {
     288            $translated_text = $translation_map[$original_text];
     289            // Check if translated text is not null before setting
     290            if ($translated_text !== null) {
     291                $node->setText($translated_text);
     292                $this->translated_text[$key] = $translated_text;
     293            } else {
     294                // If translation is null, keep the original text
     295                $this->translated_text[$key] = $original_text;
     296            }
     297        } else {
     298            do_action('qm/info', 'No translation found for: ' . $original_text);
     299            // Keep the original text if no translation is found
     300            $this->translated_text[$key] = $original_text;
     301        }
     302    }
    296303                    } else {
    297                         do_action( 'qm/debug', 'Translation error: Data not found in response.' );
     304                        do_action('qm/debug', 'Translation error: Data not found in response.');
    298305                    }
    299306                } else {
    300                     do_action( 'qm/info', 'No action Needed' );
    301                 }
    302                 foreach ( $entry_skip_map as $i => $index ) {
    303                         $entry            = $entries->item( $index );
    304                         $key              = hash( 'md5', html_entity_decode( $entry->nodeValue, ENT_QUOTES | ENT_XML1, 'UTF-8' ) );
    305                         $entry->nodeValue = $this->translated_text[ $key ];
    306                 }
    307 
    308                 $html = $doc->saveHTML();
    309                 $html = $this->fluentc_html->find_and_replace( $html, null, $language_code, $this->fluentc_connenct->get_language_list_string( $widgetapikey ) );
    310 
     307                    do_action('qm/info', 'No translation needed: ');
     308                }
     309   
     310                foreach ($entry_skip_map as $node) {
     311        $original_text = html_entity_decode($node->text(), ENT_QUOTES | ENT_XML1, 'UTF-8');
     312        $key = hash('md5', $original_text);
     313        if (isset($this->translated_text[$key]) && $this->translated_text[$key] !== null) {
     314            $node->setText($this->translated_text[$key]);
     315        }
     316        // If translation is not set or is null, we don't need to do anything
     317        // as the original text is already in place
     318    }
     319   
     320                // Retrieve the inner HTML of the root element
     321                $html = $dom->root->innerHtml();
     322                $html = $this->fluentc_html->find_and_replace($html, null, $language_code, $this->fluentc_connenct->get_language_list_string($widgetapikey));
     323   
     324                return $html;
     325            } else {
     326                return $block_content;
     327            }
     328        } else {
     329            return $block_content;
     330        }
     331    }
     332        private function processNode($node, &$texts_to_translate, &$entry_map, &$entry_skip_map) {
     333        if ($node instanceof \PHPHtmlParser\Dom\Node\TextNode) {
     334            $node_value = html_entity_decode($node->text(), ENT_QUOTES | ENT_XML1, 'UTF-8');
     335            $data = preg_match($this->fluentc_htmltags->regex_only_whitespace, $node_value);
     336            if ($data) {
     337                return;
     338            }
     339            $data = preg_match($this->fluentc_htmltags->regex_only_digits_whitespace_punctuation, $node_value);
     340            if ($data) {
     341                return;
     342            }
     343            $key = hash('md5', $node_value);
     344            if (!array_key_exists($key, $this->translated_text)) {
     345                $texts_to_translate[] = $node_value;
     346                $entry_map[] = $node;  // Keep track of the original node.
     347                $this->translated_text[$key] = '';
     348            } else {
     349                $entry_skip_map[] = $node;
     350            }
     351        }
     352    }
     353
     354    /**
     355     * Filters Content
     356     *
     357     * @param  string $content Content Object.
     358     */
     359    public function filter_content( $content ) {
     360        $language_code = $this->fluentc_language->get_fluentc_language();
     361        $widgetapikey  = get_option( 'fluentc_api_key' );
     362        $site_language = get_bloginfo( 'language' );
     363
     364        if ( $language_code ) {
     365            // If language code is set, modify the output accordingly.
     366            if ( ! is_null( $content ) && '' !== $content ) {
     367                $html = mb_convert_encoding( $content, 'HTML-ENTITIES', 'UTF-8' );
     368   
     369                // Check if $html is empty to avoid DOMDocument errors
     370                if (empty($html)) {
     371                    return $content;
     372                }
     373   
     374                // Create Options object and set the necessary options
     375                $options = new Options();
     376                $options->setCleanupInput(false);
     377                $options->setWhitespaceTextNode(false);
     378   
     379                $dom = new Dom;
     380                $dom->loadStr($html, $options);
     381   
     382                $texts_to_translate = array();
     383                $entry_map = array();
     384                $entry_skip_map = array();
     385   
     386             // Collect text nodes that need translation.
     387        $elements = $dom->find('*:not(script):not(style):not(code):not(pre):not(noscript):not(iframe):not(object):not(embed):not(svg):not(math):not(canvas)');
     388        foreach ($elements as $element) {
     389            if ($element instanceof \PHPHtmlParser\Dom\Node\HtmlNode) {
     390                foreach ($element->getChildren() as $node) {
     391                    $this->processNode($node, $texts_to_translate, $entry_map, $entry_skip_map);
     392                }
     393            } elseif ($element instanceof \PHPHtmlParser\Dom\Node\TextNode) {
     394                $this->processNode($element, $texts_to_translate, $entry_map, $entry_skip_map);
     395            }
     396        }
     397   
     398                // Make a single API call for all texts.
     399                if (!empty($texts_to_translate)) {
     400                    $text_labels = $this->process_text_labels($texts_to_translate);
     401                    do_action('qm/info', 'text labels: ' . $text_labels);
     402                    $translated_texts = $this->fluentc_connenct->get_translation_content(
     403                        $widgetapikey,
     404                        substr($site_language, 0, 2),
     405                        $language_code,
     406                        $text_labels
     407                    );
     408   
     409                    if (isset($translated_texts->data->translateSite->body) && !empty($translated_texts->data->translateSite->body)) {
     410                        // Create a map of original text to translated text.
     411                        $translation_map = array();
     412                        foreach ($translated_texts->data->translateSite->body as $translatedText) {
     413                            $original_text = html_entity_decode($translatedText->originalText, ENT_QUOTES | ENT_XML1, 'UTF-8');
     414                            $translated_text = html_entity_decode($translatedText->translatedText, ENT_QUOTES | ENT_XML1, 'UTF-8');
     415                            $translation_map[$original_text] = $translated_text;
     416                        }
     417   
     418                        // Replace original text nodes with translated text using the entry map.
     419                        foreach ($entry_map as $node) {
     420        $original_text = html_entity_decode($node->text(), ENT_QUOTES | ENT_XML1, 'UTF-8');
     421        $key = hash('md5', $original_text);
     422   
     423        if (isset($translation_map[$original_text])) {
     424            $translated_text = $translation_map[$original_text];
     425            // Check if translated text is not null before setting
     426            if ($translated_text !== null) {
     427                $node->setText($translated_text);
     428                $this->translated_text[$key] = $translated_text;
     429            } else {
     430                // If translation is null, keep the original text
     431                $this->translated_text[$key] = $original_text;
     432            }
     433        } else {
     434            do_action('qm/info', 'No translation found for: ' . $original_text);
     435            // Keep the original text if no translation is found
     436            $this->translated_text[$key] = $original_text;
     437        }
     438    }
     439                    } else {
     440                        do_action('qm/debug', 'Translation error: Data not found in response.');
     441                    }
     442                } else {
     443                    do_action('qm/info', 'No translation needed: ');
     444                }
     445   
     446                foreach ($entry_skip_map as $node) {
     447        $original_text = html_entity_decode($node->text(), ENT_QUOTES | ENT_XML1, 'UTF-8');
     448        $key = hash('md5', $original_text);
     449        if (isset($this->translated_text[$key]) && $this->translated_text[$key] !== null) {
     450            $node->setText($this->translated_text[$key]);
     451        }
     452        // If translation is not set or is null, we don't need to do anything
     453        // as the original text is already in place
     454    }
     455   
     456                // Retrieve the inner HTML of the root element
     457                $html = $dom->root->innerHtml();
     458                $html = $this->fluentc_html->find_and_replace($html, null, $language_code, $this->fluentc_connenct->get_language_list_string($widgetapikey));
     459   
    311460                return $html;
    312461            } else {
  • fluentc-translation/trunk/src/services/class-html.php

    r3122693 r3129167  
    1616use FluentC\Models\Htmltags;
    1717use FluentC\Utils\Language;
     18use PHPHtmlParser\Dom;
     19use PHPHtmlParser\Options;
    1820
    1921if ( ! defined( 'ABSPATH' ) ) {
     
    216218     * @since 1.2
    217219     */
    218     public function find_and_replace( $html, $json, $language_code, $regex_lang ) {
    219         // for Each in json, find and replace in HTML.
    220         $doc           = new \DOMDocument();
    221         $doc->encoding = 'UTF-8';
    222         libxml_use_internal_errors( true );
    223         $html = mb_convert_encoding( $html, 'HTML-ENTITIES', 'UTF-8' );
    224         $doc->loadHTML( $html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
    225         libxml_clear_errors();
    226 
    227         $links = $doc->getElementsByTagName( 'a' );
    228 
    229         foreach ( $links as $link ) {
    230             $url = $link->getAttribute( 'href' );
    231 
    232             // Check if the URL is already correct or should not be modified.
    233             $current_language_code = $this->get_fluentc_language_from_url( $url, $regex_lang );
    234             $parsed_url            = wp_parse_url( $url );
    235             $is_relative_path      = empty( $parsed_url['host'] );
    236             $root_url              = home_url();
    237 
    238             // Conditions to skip modification.
    239             if ( ! empty( $current_language_code ) ||
    240                 $is_relative_path ||
    241                 ( isset( $parsed_url['host'] ) && wp_parse_url( $root_url, PHP_URL_HOST ) !== $parsed_url['host'] ) ||
    242                 substr( $url, -3, 1 ) === '/' && in_array( substr( $url, -2 ), array( $regex_lang, strtoupper( $regex_lang ) ) ) ) {
    243                 // Do nothing
    244                 continue;
    245             }
    246 
    247             // If the URL is missing a language code, add the language code.
    248             if ( empty( $current_language_code ) ) {
    249                 $new_url = $this->htmltag->add_language_code_to_link( $language_code, $url );
    250                 $link->setAttribute( 'href', $new_url ); // Update the href attribute with the new URL.
    251             }
    252         }
    253         $html = $doc->saveHTML();
    254         return $html;
    255     }
     220    /**
     221 * Find and Replace of translated text
     222 *
     223 * @param string $html html insert.
     224 * @param object $json return json from services.
     225 * @param string $language_code return $language_code.
     226 * @param string $regex_lang return Regex for language detection.
     227 * @since 1.2
     228 */
     229public function find_and_replace($html, $json, $language_code, $regex_lang) {
     230    // Create Options object and set the necessary options
     231    $options = new Options();
     232    $options->setCleanupInput(false);
     233    $options->setWhitespaceTextNode(false);
     234
     235    $dom = new Dom();
     236    $dom->loadStr($html, $options);
     237
     238    $links = $dom->find('a');
     239
     240    foreach ($links as $link) {
     241        $url = $link->getAttribute('href');
     242
     243        // Check if the URL is already correct or should not be modified.
     244        $current_language_code = $this->get_fluentc_language_from_url($url, $regex_lang);
     245        $parsed_url = wp_parse_url($url);
     246        $is_relative_path = empty($parsed_url['host']);
     247        $root_url = home_url();
     248
     249        // Conditions to skip modification.
     250        if (!empty($current_language_code) ||
     251            $is_relative_path ||
     252            (isset($parsed_url['host']) && wp_parse_url($root_url, PHP_URL_HOST) !== $parsed_url['host']) ||
     253            substr($url, -3, 1) === '/' && in_array(substr($url, -2), array($regex_lang, strtoupper($regex_lang)))) {
     254            // Do nothing
     255            continue;
     256        }
     257
     258        // If the URL is missing a language code, add the language code.
     259        if (empty($current_language_code)) {
     260            $new_url = $this->htmltag->add_language_code_to_link($language_code, $url);
     261            $link->setAttribute('href', $new_url); // Update the href attribute with the new URL.
     262        }
     263    }
     264
     265    $html = $dom->outerHtml;
     266    return $html;
     267}
    256268
    257269    /**
  • fluentc-translation/trunk/vendor/composer/autoload_classmap.php

    r3065579 r3129167  
    4545    'PHPCSUtils\\Utils\\UseStatements' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php',
    4646    'PHPCSUtils\\Utils\\Variables' => $vendorDir . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php',
     47    'Stringable' => $vendorDir . '/myclabs/php-enum/stubs/Stringable.php',
    4748);
  • fluentc-translation/trunk/vendor/composer/autoload_namespaces.php

    r3065579 r3129167  
    77
    88return array(
     9    'stringEncode' => array($vendorDir . '/paquettg/string-encode/src'),
    910);
  • fluentc-translation/trunk/vendor/composer/autoload_psr4.php

    r3065579 r3129167  
    77
    88return array(
     9    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
     10    'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
     11    'PHPHtmlParser\\' => array($vendorDir . '/paquettg/php-html-parser/src/PHPHtmlParser'),
    912    'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),
     13    'MyCLabs\\Enum\\' => array($vendorDir . '/myclabs/php-enum/src'),
     14    'Http\\Promise\\' => array($vendorDir . '/php-http/promise/src'),
     15    'Http\\Client\\' => array($vendorDir . '/php-http/httplug/src'),
     16    'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
     17    'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
     18    'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
    1019    'FluentC\\Utils\\' => array($baseDir . '/src/utils'),
    1120    'FluentC\\Services\\' => array($baseDir . '/src/services'),
  • fluentc-translation/trunk/vendor/composer/autoload_real.php

    r3065579 r3129167  
    2323        }
    2424
     25        require __DIR__ . '/platform_check.php';
     26
    2527        spl_autoload_register(array('ComposerAutoloaderInitd751713988987e9331980363e24189ce', 'loadClassLoader'), true, true);
    2628        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     
    3234        $loader->register(true);
    3335
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInitd751713988987e9331980363e24189ce::$files;
     37        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        }, null, null);
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            $requireFile($fileIdentifier, $file);
     46        }
     47
    3448        return $loader;
    3549    }
  • fluentc-translation/trunk/vendor/composer/autoload_static.php

    r3065579 r3129167  
    77class ComposerStaticInitd751713988987e9331980363e24189ce
    88{
     9    public static $files = array (
     10        '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
     11        'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
     12        '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
     13        '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
     14    );
     15
    916    public static $prefixLengthsPsr4 = array (
    1017        'P' =>
    1118        array (
     19            'Psr\\Http\\Message\\' => 17,
     20            'Psr\\Http\\Client\\' => 16,
     21            'PHPHtmlParser\\' => 14,
    1222            'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 57,
     23        ),
     24        'M' =>
     25        array (
     26            'MyCLabs\\Enum\\' => 13,
     27        ),
     28        'H' =>
     29        array (
     30            'Http\\Promise\\' => 13,
     31            'Http\\Client\\' => 12,
     32        ),
     33        'G' =>
     34        array (
     35            'GuzzleHttp\\Psr7\\' => 16,
     36            'GuzzleHttp\\Promise\\' => 19,
     37            'GuzzleHttp\\' => 11,
    1338        ),
    1439        'F' =>
     
    2348
    2449    public static $prefixDirsPsr4 = array (
     50        'Psr\\Http\\Message\\' =>
     51        array (
     52            0 => __DIR__ . '/..' . '/psr/http-message/src',
     53        ),
     54        'Psr\\Http\\Client\\' =>
     55        array (
     56            0 => __DIR__ . '/..' . '/psr/http-client/src',
     57        ),
     58        'PHPHtmlParser\\' =>
     59        array (
     60            0 => __DIR__ . '/..' . '/paquettg/php-html-parser/src/PHPHtmlParser',
     61        ),
    2562        'PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
    2663        array (
    2764            0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',
     65        ),
     66        'MyCLabs\\Enum\\' =>
     67        array (
     68            0 => __DIR__ . '/..' . '/myclabs/php-enum/src',
     69        ),
     70        'Http\\Promise\\' =>
     71        array (
     72            0 => __DIR__ . '/..' . '/php-http/promise/src',
     73        ),
     74        'Http\\Client\\' =>
     75        array (
     76            0 => __DIR__ . '/..' . '/php-http/httplug/src',
     77        ),
     78        'GuzzleHttp\\Psr7\\' =>
     79        array (
     80            0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
     81        ),
     82        'GuzzleHttp\\Promise\\' =>
     83        array (
     84            0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
     85        ),
     86        'GuzzleHttp\\' =>
     87        array (
     88            0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
    2889        ),
    2990        'FluentC\\Utils\\' =>
     
    46107        array (
    47108            0 => __DIR__ . '/../..' . '/src',
     109        ),
     110    );
     111
     112    public static $prefixesPsr0 = array (
     113        's' =>
     114        array (
     115            'stringEncode' =>
     116            array (
     117                0 => __DIR__ . '/..' . '/paquettg/string-encode/src',
     118            ),
    48119        ),
    49120    );
     
    88159        'PHPCSUtils\\Utils\\UseStatements' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php',
    89160        'PHPCSUtils\\Utils\\Variables' => __DIR__ . '/..' . '/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php',
     161        'Stringable' => __DIR__ . '/..' . '/myclabs/php-enum/stubs/Stringable.php',
    90162    );
    91163
     
    95167            $loader->prefixLengthsPsr4 = ComposerStaticInitd751713988987e9331980363e24189ce::$prefixLengthsPsr4;
    96168            $loader->prefixDirsPsr4 = ComposerStaticInitd751713988987e9331980363e24189ce::$prefixDirsPsr4;
     169            $loader->prefixesPsr0 = ComposerStaticInitd751713988987e9331980363e24189ce::$prefixesPsr0;
    97170            $loader->classMap = ComposerStaticInitd751713988987e9331980363e24189ce::$classMap;
    98171
  • fluentc-translation/trunk/vendor/composer/installed.json

    r3065579 r3129167  
    3434                "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
    3535            },
    36             "installation-source": "source",
     36            "installation-source": "dist",
    3737            "autoload": {
    3838                "psr-4": {
     
    8383        },
    8484        {
     85            "name": "guzzlehttp/guzzle",
     86            "version": "7.8.2",
     87            "version_normalized": "7.8.2.0",
     88            "source": {
     89                "type": "git",
     90                "url": "https://github.com/guzzle/guzzle.git",
     91                "reference": "f4152d9eb85c445fe1f992001d1748e8bec070d2"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4152d9eb85c445fe1f992001d1748e8bec070d2",
     96                "reference": "f4152d9eb85c445fe1f992001d1748e8bec070d2",
     97                "shasum": ""
     98            },
     99            "require": {
     100                "ext-json": "*",
     101                "guzzlehttp/promises": "^1.5.3 || ^2.0.3",
     102                "guzzlehttp/psr7": "^1.9.1 || ^2.6.3",
     103                "php": "^7.2.5 || ^8.0",
     104                "psr/http-client": "^1.0",
     105                "symfony/deprecation-contracts": "^2.2 || ^3.0"
     106            },
     107            "provide": {
     108                "psr/http-client-implementation": "1.0"
     109            },
     110            "require-dev": {
     111                "bamarni/composer-bin-plugin": "^1.8.2",
     112                "ext-curl": "*",
     113                "guzzle/client-integration-tests": "3.0.2",
     114                "php-http/message-factory": "^1.1",
     115                "phpunit/phpunit": "^8.5.39 || ^9.6.20",
     116                "psr/log": "^1.1 || ^2.0 || ^3.0"
     117            },
     118            "suggest": {
     119                "ext-curl": "Required for CURL handler support",
     120                "ext-intl": "Required for Internationalized Domain Name (IDN) support",
     121                "psr/log": "Required for using the Log middleware"
     122            },
     123            "time": "2024-07-18T11:12:18+00:00",
     124            "type": "library",
     125            "extra": {
     126                "bamarni-bin": {
     127                    "bin-links": true,
     128                    "forward-command": false
     129                }
     130            },
     131            "installation-source": "dist",
     132            "autoload": {
     133                "files": [
     134                    "src/functions_include.php"
     135                ],
     136                "psr-4": {
     137                    "GuzzleHttp\\": "src/"
     138                }
     139            },
     140            "notification-url": "https://packagist.org/downloads/",
     141            "license": [
     142                "MIT"
     143            ],
     144            "authors": [
     145                {
     146                    "name": "Graham Campbell",
     147                    "email": "[email protected]",
     148                    "homepage": "https://github.com/GrahamCampbell"
     149                },
     150                {
     151                    "name": "Michael Dowling",
     152                    "email": "[email protected]",
     153                    "homepage": "https://github.com/mtdowling"
     154                },
     155                {
     156                    "name": "Jeremy Lindblom",
     157                    "email": "[email protected]",
     158                    "homepage": "https://github.com/jeremeamia"
     159                },
     160                {
     161                    "name": "George Mponos",
     162                    "email": "[email protected]",
     163                    "homepage": "https://github.com/gmponos"
     164                },
     165                {
     166                    "name": "Tobias Nyholm",
     167                    "email": "[email protected]",
     168                    "homepage": "https://github.com/Nyholm"
     169                },
     170                {
     171                    "name": "Márk Sági-Kazár",
     172                    "email": "[email protected]",
     173                    "homepage": "https://github.com/sagikazarmark"
     174                },
     175                {
     176                    "name": "Tobias Schultze",
     177                    "email": "[email protected]",
     178                    "homepage": "https://github.com/Tobion"
     179                }
     180            ],
     181            "description": "Guzzle is a PHP HTTP client library",
     182            "keywords": [
     183                "client",
     184                "curl",
     185                "framework",
     186                "http",
     187                "http client",
     188                "psr-18",
     189                "psr-7",
     190                "rest",
     191                "web service"
     192            ],
     193            "support": {
     194                "issues": "https://github.com/guzzle/guzzle/issues",
     195                "source": "https://github.com/guzzle/guzzle/tree/7.8.2"
     196            },
     197            "funding": [
     198                {
     199                    "url": "https://github.com/GrahamCampbell",
     200                    "type": "github"
     201                },
     202                {
     203                    "url": "https://github.com/Nyholm",
     204                    "type": "github"
     205                },
     206                {
     207                    "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
     208                    "type": "tidelift"
     209                }
     210            ],
     211            "install-path": "../guzzlehttp/guzzle"
     212        },
     213        {
     214            "name": "guzzlehttp/promises",
     215            "version": "2.0.3",
     216            "version_normalized": "2.0.3.0",
     217            "source": {
     218                "type": "git",
     219                "url": "https://github.com/guzzle/promises.git",
     220                "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8"
     221            },
     222            "dist": {
     223                "type": "zip",
     224                "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
     225                "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
     226                "shasum": ""
     227            },
     228            "require": {
     229                "php": "^7.2.5 || ^8.0"
     230            },
     231            "require-dev": {
     232                "bamarni/composer-bin-plugin": "^1.8.2",
     233                "phpunit/phpunit": "^8.5.39 || ^9.6.20"
     234            },
     235            "time": "2024-07-18T10:29:17+00:00",
     236            "type": "library",
     237            "extra": {
     238                "bamarni-bin": {
     239                    "bin-links": true,
     240                    "forward-command": false
     241                }
     242            },
     243            "installation-source": "dist",
     244            "autoload": {
     245                "psr-4": {
     246                    "GuzzleHttp\\Promise\\": "src/"
     247                }
     248            },
     249            "notification-url": "https://packagist.org/downloads/",
     250            "license": [
     251                "MIT"
     252            ],
     253            "authors": [
     254                {
     255                    "name": "Graham Campbell",
     256                    "email": "[email protected]",
     257                    "homepage": "https://github.com/GrahamCampbell"
     258                },
     259                {
     260                    "name": "Michael Dowling",
     261                    "email": "[email protected]",
     262                    "homepage": "https://github.com/mtdowling"
     263                },
     264                {
     265                    "name": "Tobias Nyholm",
     266                    "email": "[email protected]",
     267                    "homepage": "https://github.com/Nyholm"
     268                },
     269                {
     270                    "name": "Tobias Schultze",
     271                    "email": "[email protected]",
     272                    "homepage": "https://github.com/Tobion"
     273                }
     274            ],
     275            "description": "Guzzle promises library",
     276            "keywords": [
     277                "promise"
     278            ],
     279            "support": {
     280                "issues": "https://github.com/guzzle/promises/issues",
     281                "source": "https://github.com/guzzle/promises/tree/2.0.3"
     282            },
     283            "funding": [
     284                {
     285                    "url": "https://github.com/GrahamCampbell",
     286                    "type": "github"
     287                },
     288                {
     289                    "url": "https://github.com/Nyholm",
     290                    "type": "github"
     291                },
     292                {
     293                    "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
     294                    "type": "tidelift"
     295                }
     296            ],
     297            "install-path": "../guzzlehttp/promises"
     298        },
     299        {
     300            "name": "guzzlehttp/psr7",
     301            "version": "1.9.1",
     302            "version_normalized": "1.9.1.0",
     303            "source": {
     304                "type": "git",
     305                "url": "https://github.com/guzzle/psr7.git",
     306                "reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b"
     307            },
     308            "dist": {
     309                "type": "zip",
     310                "url": "https://api.github.com/repos/guzzle/psr7/zipball/e4490cabc77465aaee90b20cfc9a770f8c04be6b",
     311                "reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b",
     312                "shasum": ""
     313            },
     314            "require": {
     315                "php": ">=5.4.0",
     316                "psr/http-message": "~1.0",
     317                "ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
     318            },
     319            "provide": {
     320                "psr/http-message-implementation": "1.0"
     321            },
     322            "require-dev": {
     323                "ext-zlib": "*",
     324                "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
     325            },
     326            "suggest": {
     327                "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
     328            },
     329            "time": "2023-04-17T16:00:37+00:00",
     330            "type": "library",
     331            "installation-source": "dist",
     332            "autoload": {
     333                "files": [
     334                    "src/functions_include.php"
     335                ],
     336                "psr-4": {
     337                    "GuzzleHttp\\Psr7\\": "src/"
     338                }
     339            },
     340            "notification-url": "https://packagist.org/downloads/",
     341            "license": [
     342                "MIT"
     343            ],
     344            "authors": [
     345                {
     346                    "name": "Graham Campbell",
     347                    "email": "[email protected]",
     348                    "homepage": "https://github.com/GrahamCampbell"
     349                },
     350                {
     351                    "name": "Michael Dowling",
     352                    "email": "[email protected]",
     353                    "homepage": "https://github.com/mtdowling"
     354                },
     355                {
     356                    "name": "George Mponos",
     357                    "email": "[email protected]",
     358                    "homepage": "https://github.com/gmponos"
     359                },
     360                {
     361                    "name": "Tobias Nyholm",
     362                    "email": "[email protected]",
     363                    "homepage": "https://github.com/Nyholm"
     364                },
     365                {
     366                    "name": "Márk Sági-Kazár",
     367                    "email": "[email protected]",
     368                    "homepage": "https://github.com/sagikazarmark"
     369                },
     370                {
     371                    "name": "Tobias Schultze",
     372                    "email": "[email protected]",
     373                    "homepage": "https://github.com/Tobion"
     374                }
     375            ],
     376            "description": "PSR-7 message implementation that also provides common utility methods",
     377            "keywords": [
     378                "http",
     379                "message",
     380                "psr-7",
     381                "request",
     382                "response",
     383                "stream",
     384                "uri",
     385                "url"
     386            ],
     387            "support": {
     388                "issues": "https://github.com/guzzle/psr7/issues",
     389                "source": "https://github.com/guzzle/psr7/tree/1.9.1"
     390            },
     391            "funding": [
     392                {
     393                    "url": "https://github.com/GrahamCampbell",
     394                    "type": "github"
     395                },
     396                {
     397                    "url": "https://github.com/Nyholm",
     398                    "type": "github"
     399                },
     400                {
     401                    "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
     402                    "type": "tidelift"
     403                }
     404            ],
     405            "install-path": "../guzzlehttp/psr7"
     406        },
     407        {
     408            "name": "myclabs/php-enum",
     409            "version": "1.8.4",
     410            "version_normalized": "1.8.4.0",
     411            "source": {
     412                "type": "git",
     413                "url": "https://github.com/myclabs/php-enum.git",
     414                "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483"
     415            },
     416            "dist": {
     417                "type": "zip",
     418                "url": "https://api.github.com/repos/myclabs/php-enum/zipball/a867478eae49c9f59ece437ae7f9506bfaa27483",
     419                "reference": "a867478eae49c9f59ece437ae7f9506bfaa27483",
     420                "shasum": ""
     421            },
     422            "require": {
     423                "ext-json": "*",
     424                "php": "^7.3 || ^8.0"
     425            },
     426            "require-dev": {
     427                "phpunit/phpunit": "^9.5",
     428                "squizlabs/php_codesniffer": "1.*",
     429                "vimeo/psalm": "^4.6.2"
     430            },
     431            "time": "2022-08-04T09:53:51+00:00",
     432            "type": "library",
     433            "installation-source": "dist",
     434            "autoload": {
     435                "psr-4": {
     436                    "MyCLabs\\Enum\\": "src/"
     437                },
     438                "classmap": [
     439                    "stubs/Stringable.php"
     440                ]
     441            },
     442            "notification-url": "https://packagist.org/downloads/",
     443            "license": [
     444                "MIT"
     445            ],
     446            "authors": [
     447                {
     448                    "name": "PHP Enum contributors",
     449                    "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
     450                }
     451            ],
     452            "description": "PHP Enum implementation",
     453            "homepage": "http://github.com/myclabs/php-enum",
     454            "keywords": [
     455                "enum"
     456            ],
     457            "support": {
     458                "issues": "https://github.com/myclabs/php-enum/issues",
     459                "source": "https://github.com/myclabs/php-enum/tree/1.8.4"
     460            },
     461            "funding": [
     462                {
     463                    "url": "https://github.com/mnapoli",
     464                    "type": "github"
     465                },
     466                {
     467                    "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum",
     468                    "type": "tidelift"
     469                }
     470            ],
     471            "install-path": "../myclabs/php-enum"
     472        },
     473        {
     474            "name": "paquettg/php-html-parser",
     475            "version": "3.1.1",
     476            "version_normalized": "3.1.1.0",
     477            "source": {
     478                "type": "git",
     479                "url": "https://github.com/paquettg/php-html-parser.git",
     480                "reference": "4e01a438ad5961cc2d7427eb9798d213c8a12629"
     481            },
     482            "dist": {
     483                "type": "zip",
     484                "url": "https://api.github.com/repos/paquettg/php-html-parser/zipball/4e01a438ad5961cc2d7427eb9798d213c8a12629",
     485                "reference": "4e01a438ad5961cc2d7427eb9798d213c8a12629",
     486                "shasum": ""
     487            },
     488            "require": {
     489                "ext-curl": "*",
     490                "ext-mbstring": "*",
     491                "ext-zlib": "*",
     492                "guzzlehttp/guzzle": "^7.0",
     493                "guzzlehttp/psr7": "^1.6",
     494                "myclabs/php-enum": "^1.7",
     495                "paquettg/string-encode": "~1.0.0",
     496                "php": ">=7.2",
     497                "php-http/httplug": "^2.1"
     498            },
     499            "require-dev": {
     500                "friendsofphp/php-cs-fixer": "^2.16",
     501                "infection/infection": "^0.13.4",
     502                "mockery/mockery": "^1.2",
     503                "phan/phan": "^2.4",
     504                "phpunit/phpunit": "^7.5.1"
     505            },
     506            "time": "2020-11-01T20:34:43+00:00",
     507            "type": "library",
     508            "installation-source": "dist",
     509            "autoload": {
     510                "psr-4": {
     511                    "PHPHtmlParser\\": "src/PHPHtmlParser"
     512                }
     513            },
     514            "notification-url": "https://packagist.org/downloads/",
     515            "license": [
     516                "MIT"
     517            ],
     518            "authors": [
     519                {
     520                    "name": "Gilles Paquette",
     521                    "email": "[email protected]",
     522                    "homepage": "http://gillespaquette.ca"
     523                }
     524            ],
     525            "description": "An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.",
     526            "homepage": "https://github.com/paquettg/php-html-parser",
     527            "keywords": [
     528                "dom",
     529                "html",
     530                "parser"
     531            ],
     532            "support": {
     533                "issues": "https://github.com/paquettg/php-html-parser/issues",
     534                "source": "https://github.com/paquettg/php-html-parser/tree/3.1.1"
     535            },
     536            "funding": [
     537                {
     538                    "url": "https://tidelift.com/funding/github/packagist/paquettg/php-html-parser",
     539                    "type": "tidelift"
     540                }
     541            ],
     542            "install-path": "../paquettg/php-html-parser"
     543        },
     544        {
     545            "name": "paquettg/string-encode",
     546            "version": "1.0.1",
     547            "version_normalized": "1.0.1.0",
     548            "source": {
     549                "type": "git",
     550                "url": "https://github.com/paquettg/string-encoder.git",
     551                "reference": "a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee"
     552            },
     553            "dist": {
     554                "type": "zip",
     555                "url": "https://api.github.com/repos/paquettg/string-encoder/zipball/a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee",
     556                "reference": "a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee",
     557                "shasum": ""
     558            },
     559            "require": {
     560                "php": ">=7.1"
     561            },
     562            "require-dev": {
     563                "phpunit/phpunit": "^7.5.1"
     564            },
     565            "time": "2018-12-21T02:25:09+00:00",
     566            "type": "library",
     567            "installation-source": "dist",
     568            "autoload": {
     569                "psr-0": {
     570                    "stringEncode": "src/"
     571                }
     572            },
     573            "notification-url": "https://packagist.org/downloads/",
     574            "license": [
     575                "MIT"
     576            ],
     577            "authors": [
     578                {
     579                    "name": "Gilles Paquette",
     580                    "email": "[email protected]",
     581                    "homepage": "http://gillespaquette.ca"
     582                }
     583            ],
     584            "description": "Facilitating the process of altering string encoding in PHP.",
     585            "homepage": "https://github.com/paquettg/string-encoder",
     586            "keywords": [
     587                "charset",
     588                "encoding",
     589                "string"
     590            ],
     591            "support": {
     592                "issues": "https://github.com/paquettg/string-encoder/issues",
     593                "source": "https://github.com/paquettg/string-encoder/tree/1.0.1"
     594            },
     595            "install-path": "../paquettg/string-encode"
     596        },
     597        {
     598            "name": "php-http/httplug",
     599            "version": "2.4.0",
     600            "version_normalized": "2.4.0.0",
     601            "source": {
     602                "type": "git",
     603                "url": "https://github.com/php-http/httplug.git",
     604                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67"
     605            },
     606            "dist": {
     607                "type": "zip",
     608                "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67",
     609                "reference": "625ad742c360c8ac580fcc647a1541d29e257f67",
     610                "shasum": ""
     611            },
     612            "require": {
     613                "php": "^7.1 || ^8.0",
     614                "php-http/promise": "^1.1",
     615                "psr/http-client": "^1.0",
     616                "psr/http-message": "^1.0 || ^2.0"
     617            },
     618            "require-dev": {
     619                "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0",
     620                "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0"
     621            },
     622            "time": "2023-04-14T15:10:03+00:00",
     623            "type": "library",
     624            "installation-source": "dist",
     625            "autoload": {
     626                "psr-4": {
     627                    "Http\\Client\\": "src/"
     628                }
     629            },
     630            "notification-url": "https://packagist.org/downloads/",
     631            "license": [
     632                "MIT"
     633            ],
     634            "authors": [
     635                {
     636                    "name": "Eric GELOEN",
     637                    "email": "[email protected]"
     638                },
     639                {
     640                    "name": "Márk Sági-Kazár",
     641                    "email": "[email protected]",
     642                    "homepage": "https://sagikazarmark.hu"
     643                }
     644            ],
     645            "description": "HTTPlug, the HTTP client abstraction for PHP",
     646            "homepage": "http://httplug.io",
     647            "keywords": [
     648                "client",
     649                "http"
     650            ],
     651            "support": {
     652                "issues": "https://github.com/php-http/httplug/issues",
     653                "source": "https://github.com/php-http/httplug/tree/2.4.0"
     654            },
     655            "install-path": "../php-http/httplug"
     656        },
     657        {
     658            "name": "php-http/promise",
     659            "version": "1.3.1",
     660            "version_normalized": "1.3.1.0",
     661            "source": {
     662                "type": "git",
     663                "url": "https://github.com/php-http/promise.git",
     664                "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83"
     665            },
     666            "dist": {
     667                "type": "zip",
     668                "url": "https://api.github.com/repos/php-http/promise/zipball/fc85b1fba37c169a69a07ef0d5a8075770cc1f83",
     669                "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83",
     670                "shasum": ""
     671            },
     672            "require": {
     673                "php": "^7.1 || ^8.0"
     674            },
     675            "require-dev": {
     676                "friends-of-phpspec/phpspec-code-coverage": "^4.3.2 || ^6.3",
     677                "phpspec/phpspec": "^5.1.2 || ^6.2 || ^7.4"
     678            },
     679            "time": "2024-03-15T13:55:21+00:00",
     680            "type": "library",
     681            "installation-source": "dist",
     682            "autoload": {
     683                "psr-4": {
     684                    "Http\\Promise\\": "src/"
     685                }
     686            },
     687            "notification-url": "https://packagist.org/downloads/",
     688            "license": [
     689                "MIT"
     690            ],
     691            "authors": [
     692                {
     693                    "name": "Joel Wurtz",
     694                    "email": "[email protected]"
     695                },
     696                {
     697                    "name": "Márk Sági-Kazár",
     698                    "email": "[email protected]"
     699                }
     700            ],
     701            "description": "Promise used for asynchronous HTTP requests",
     702            "homepage": "http://httplug.io",
     703            "keywords": [
     704                "promise"
     705            ],
     706            "support": {
     707                "issues": "https://github.com/php-http/promise/issues",
     708                "source": "https://github.com/php-http/promise/tree/1.3.1"
     709            },
     710            "install-path": "../php-http/promise"
     711        },
     712        {
    85713            "name": "phpcsstandards/phpcsextra",
    86714            "version": "1.2.1",
     
    117745                }
    118746            },
    119             "installation-source": "source",
     747            "installation-source": "dist",
    120748            "notification-url": "https://packagist.org/downloads/",
    121749            "license": [
     
    198826                }
    199827            },
    200             "installation-source": "source",
     828            "installation-source": "dist",
    201829            "autoload": {
    202830                "classmap": [
     
    255883        },
    256884        {
     885            "name": "psr/http-client",
     886            "version": "1.0.3",
     887            "version_normalized": "1.0.3.0",
     888            "source": {
     889                "type": "git",
     890                "url": "https://github.com/php-fig/http-client.git",
     891                "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
     892            },
     893            "dist": {
     894                "type": "zip",
     895                "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
     896                "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
     897                "shasum": ""
     898            },
     899            "require": {
     900                "php": "^7.0 || ^8.0",
     901                "psr/http-message": "^1.0 || ^2.0"
     902            },
     903            "time": "2023-09-23T14:17:50+00:00",
     904            "type": "library",
     905            "extra": {
     906                "branch-alias": {
     907                    "dev-master": "1.0.x-dev"
     908                }
     909            },
     910            "installation-source": "dist",
     911            "autoload": {
     912                "psr-4": {
     913                    "Psr\\Http\\Client\\": "src/"
     914                }
     915            },
     916            "notification-url": "https://packagist.org/downloads/",
     917            "license": [
     918                "MIT"
     919            ],
     920            "authors": [
     921                {
     922                    "name": "PHP-FIG",
     923                    "homepage": "https://www.php-fig.org/"
     924                }
     925            ],
     926            "description": "Common interface for HTTP clients",
     927            "homepage": "https://github.com/php-fig/http-client",
     928            "keywords": [
     929                "http",
     930                "http-client",
     931                "psr",
     932                "psr-18"
     933            ],
     934            "support": {
     935                "source": "https://github.com/php-fig/http-client"
     936            },
     937            "install-path": "../psr/http-client"
     938        },
     939        {
     940            "name": "psr/http-message",
     941            "version": "1.1",
     942            "version_normalized": "1.1.0.0",
     943            "source": {
     944                "type": "git",
     945                "url": "https://github.com/php-fig/http-message.git",
     946                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
     947            },
     948            "dist": {
     949                "type": "zip",
     950                "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     951                "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
     952                "shasum": ""
     953            },
     954            "require": {
     955                "php": "^7.2 || ^8.0"
     956            },
     957            "time": "2023-04-04T09:50:52+00:00",
     958            "type": "library",
     959            "extra": {
     960                "branch-alias": {
     961                    "dev-master": "1.1.x-dev"
     962                }
     963            },
     964            "installation-source": "dist",
     965            "autoload": {
     966                "psr-4": {
     967                    "Psr\\Http\\Message\\": "src/"
     968                }
     969            },
     970            "notification-url": "https://packagist.org/downloads/",
     971            "license": [
     972                "MIT"
     973            ],
     974            "authors": [
     975                {
     976                    "name": "PHP-FIG",
     977                    "homepage": "http://www.php-fig.org/"
     978                }
     979            ],
     980            "description": "Common interface for HTTP messages",
     981            "homepage": "https://github.com/php-fig/http-message",
     982            "keywords": [
     983                "http",
     984                "http-message",
     985                "psr",
     986                "psr-7",
     987                "request",
     988                "response"
     989            ],
     990            "support": {
     991                "source": "https://github.com/php-fig/http-message/tree/1.1"
     992            },
     993            "install-path": "../psr/http-message"
     994        },
     995        {
     996            "name": "ralouphie/getallheaders",
     997            "version": "3.0.3",
     998            "version_normalized": "3.0.3.0",
     999            "source": {
     1000                "type": "git",
     1001                "url": "https://github.com/ralouphie/getallheaders.git",
     1002                "reference": "120b605dfeb996808c31b6477290a714d356e822"
     1003            },
     1004            "dist": {
     1005                "type": "zip",
     1006                "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
     1007                "reference": "120b605dfeb996808c31b6477290a714d356e822",
     1008                "shasum": ""
     1009            },
     1010            "require": {
     1011                "php": ">=5.6"
     1012            },
     1013            "require-dev": {
     1014                "php-coveralls/php-coveralls": "^2.1",
     1015                "phpunit/phpunit": "^5 || ^6.5"
     1016            },
     1017            "time": "2019-03-08T08:55:37+00:00",
     1018            "type": "library",
     1019            "installation-source": "dist",
     1020            "autoload": {
     1021                "files": [
     1022                    "src/getallheaders.php"
     1023                ]
     1024            },
     1025            "notification-url": "https://packagist.org/downloads/",
     1026            "license": [
     1027                "MIT"
     1028            ],
     1029            "authors": [
     1030                {
     1031                    "name": "Ralph Khattar",
     1032                    "email": "[email protected]"
     1033                }
     1034            ],
     1035            "description": "A polyfill for getallheaders.",
     1036            "support": {
     1037                "issues": "https://github.com/ralouphie/getallheaders/issues",
     1038                "source": "https://github.com/ralouphie/getallheaders/tree/develop"
     1039            },
     1040            "install-path": "../ralouphie/getallheaders"
     1041        },
     1042        {
    2571043            "name": "squizlabs/php_codesniffer",
    2581044            "version": "3.9.1",
     
    2891075                }
    2901076            },
    291             "installation-source": "source",
     1077            "installation-source": "dist",
    2921078            "notification-url": "https://packagist.org/downloads/",
    2931079            "license": [
     
    3361122            ],
    3371123            "install-path": "../squizlabs/php_codesniffer"
     1124        },
     1125        {
     1126            "name": "symfony/deprecation-contracts",
     1127            "version": "v3.5.0",
     1128            "version_normalized": "3.5.0.0",
     1129            "source": {
     1130                "type": "git",
     1131                "url": "https://github.com/symfony/deprecation-contracts.git",
     1132                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
     1133            },
     1134            "dist": {
     1135                "type": "zip",
     1136                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     1137                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     1138                "shasum": ""
     1139            },
     1140            "require": {
     1141                "php": ">=8.1"
     1142            },
     1143            "time": "2024-04-18T09:32:20+00:00",
     1144            "type": "library",
     1145            "extra": {
     1146                "branch-alias": {
     1147                    "dev-main": "3.5-dev"
     1148                },
     1149                "thanks": {
     1150                    "name": "symfony/contracts",
     1151                    "url": "https://github.com/symfony/contracts"
     1152                }
     1153            },
     1154            "installation-source": "dist",
     1155            "autoload": {
     1156                "files": [
     1157                    "function.php"
     1158                ]
     1159            },
     1160            "notification-url": "https://packagist.org/downloads/",
     1161            "license": [
     1162                "MIT"
     1163            ],
     1164            "authors": [
     1165                {
     1166                    "name": "Nicolas Grekas",
     1167                    "email": "[email protected]"
     1168                },
     1169                {
     1170                    "name": "Symfony Community",
     1171                    "homepage": "https://symfony.com/contributors"
     1172                }
     1173            ],
     1174            "description": "A generic function and convention to trigger deprecation notices",
     1175            "homepage": "https://symfony.com",
     1176            "support": {
     1177                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
     1178            },
     1179            "funding": [
     1180                {
     1181                    "url": "https://symfony.com/sponsor",
     1182                    "type": "custom"
     1183                },
     1184                {
     1185                    "url": "https://github.com/fabpot",
     1186                    "type": "github"
     1187                },
     1188                {
     1189                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
     1190                    "type": "tidelift"
     1191                }
     1192            ],
     1193            "install-path": "../symfony/deprecation-contracts"
    3381194        },
    3391195        {
     
    3751231            "time": "2023-08-21T14:28:38+00:00",
    3761232            "type": "phpcodesniffer-standard",
    377             "installation-source": "source",
     1233            "installation-source": "dist",
    3781234            "notification-url": "https://packagist.org/downloads/",
    3791235            "license": [
  • fluentc-translation/trunk/vendor/composer/installed.php

    r3065579 r3129167  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '8e3d65890fff01a664c467fd10f128ea8b873b20',
     6        'reference' => '44101f1beb1b0009f42fa7563891e8c681c3be44',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '8e3d65890fff01a664c467fd10f128ea8b873b20',
     16            'reference' => '44101f1beb1b0009f42fa7563891e8c681c3be44',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
     
    2828            'aliases' => array(),
    2929            'dev_requirement' => true,
     30        ),
     31        'guzzlehttp/guzzle' => array(
     32            'pretty_version' => '7.8.2',
     33            'version' => '7.8.2.0',
     34            'reference' => 'f4152d9eb85c445fe1f992001d1748e8bec070d2',
     35            'type' => 'library',
     36            'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
     37            'aliases' => array(),
     38            'dev_requirement' => false,
     39        ),
     40        'guzzlehttp/promises' => array(
     41            'pretty_version' => '2.0.3',
     42            'version' => '2.0.3.0',
     43            'reference' => '6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8',
     44            'type' => 'library',
     45            'install_path' => __DIR__ . '/../guzzlehttp/promises',
     46            'aliases' => array(),
     47            'dev_requirement' => false,
     48        ),
     49        'guzzlehttp/psr7' => array(
     50            'pretty_version' => '1.9.1',
     51            'version' => '1.9.1.0',
     52            'reference' => 'e4490cabc77465aaee90b20cfc9a770f8c04be6b',
     53            'type' => 'library',
     54            'install_path' => __DIR__ . '/../guzzlehttp/psr7',
     55            'aliases' => array(),
     56            'dev_requirement' => false,
     57        ),
     58        'myclabs/php-enum' => array(
     59            'pretty_version' => '1.8.4',
     60            'version' => '1.8.4.0',
     61            'reference' => 'a867478eae49c9f59ece437ae7f9506bfaa27483',
     62            'type' => 'library',
     63            'install_path' => __DIR__ . '/../myclabs/php-enum',
     64            'aliases' => array(),
     65            'dev_requirement' => false,
     66        ),
     67        'paquettg/php-html-parser' => array(
     68            'pretty_version' => '3.1.1',
     69            'version' => '3.1.1.0',
     70            'reference' => '4e01a438ad5961cc2d7427eb9798d213c8a12629',
     71            'type' => 'library',
     72            'install_path' => __DIR__ . '/../paquettg/php-html-parser',
     73            'aliases' => array(),
     74            'dev_requirement' => false,
     75        ),
     76        'paquettg/string-encode' => array(
     77            'pretty_version' => '1.0.1',
     78            'version' => '1.0.1.0',
     79            'reference' => 'a8708e9fac9d5ddfc8fc2aac6004e2cd05d80fee',
     80            'type' => 'library',
     81            'install_path' => __DIR__ . '/../paquettg/string-encode',
     82            'aliases' => array(),
     83            'dev_requirement' => false,
     84        ),
     85        'php-http/httplug' => array(
     86            'pretty_version' => '2.4.0',
     87            'version' => '2.4.0.0',
     88            'reference' => '625ad742c360c8ac580fcc647a1541d29e257f67',
     89            'type' => 'library',
     90            'install_path' => __DIR__ . '/../php-http/httplug',
     91            'aliases' => array(),
     92            'dev_requirement' => false,
     93        ),
     94        'php-http/promise' => array(
     95            'pretty_version' => '1.3.1',
     96            'version' => '1.3.1.0',
     97            'reference' => 'fc85b1fba37c169a69a07ef0d5a8075770cc1f83',
     98            'type' => 'library',
     99            'install_path' => __DIR__ . '/../php-http/promise',
     100            'aliases' => array(),
     101            'dev_requirement' => false,
    30102        ),
    31103        'phpcsstandards/phpcsextra' => array(
     
    47119            'dev_requirement' => true,
    48120        ),
     121        'psr/http-client' => array(
     122            'pretty_version' => '1.0.3',
     123            'version' => '1.0.3.0',
     124            'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90',
     125            'type' => 'library',
     126            'install_path' => __DIR__ . '/../psr/http-client',
     127            'aliases' => array(),
     128            'dev_requirement' => false,
     129        ),
     130        'psr/http-client-implementation' => array(
     131            'dev_requirement' => false,
     132            'provided' => array(
     133                0 => '1.0',
     134            ),
     135        ),
     136        'psr/http-message' => array(
     137            'pretty_version' => '1.1',
     138            'version' => '1.1.0.0',
     139            'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba',
     140            'type' => 'library',
     141            'install_path' => __DIR__ . '/../psr/http-message',
     142            'aliases' => array(),
     143            'dev_requirement' => false,
     144        ),
     145        'psr/http-message-implementation' => array(
     146            'dev_requirement' => false,
     147            'provided' => array(
     148                0 => '1.0',
     149            ),
     150        ),
     151        'ralouphie/getallheaders' => array(
     152            'pretty_version' => '3.0.3',
     153            'version' => '3.0.3.0',
     154            'reference' => '120b605dfeb996808c31b6477290a714d356e822',
     155            'type' => 'library',
     156            'install_path' => __DIR__ . '/../ralouphie/getallheaders',
     157            'aliases' => array(),
     158            'dev_requirement' => false,
     159        ),
    49160        'squizlabs/php_codesniffer' => array(
    50161            'pretty_version' => '3.9.1',
     
    55166            'aliases' => array(),
    56167            'dev_requirement' => true,
     168        ),
     169        'symfony/deprecation-contracts' => array(
     170            'pretty_version' => 'v3.5.0',
     171            'version' => '3.5.0.0',
     172            'reference' => '0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',
     173            'type' => 'library',
     174            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
     175            'aliases' => array(),
     176            'dev_requirement' => false,
    57177        ),
    58178        'wp-coding-standards/wpcs' => array(
Note: See TracChangeset for help on using the changeset viewer.