[
  {
    "path": ".gitignore",
    "content": "composer.lock\nphpunit.xml\nvendor\n"
  },
  {
    "path": "Goutte/Client.php",
    "content": "<?php\n\n/*\n * This file is part of the Goutte package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Goutte;\n\nuse Symfony\\Component\\BrowserKit\\CookieJar;\nuse Symfony\\Component\\BrowserKit\\History;\nuse Symfony\\Component\\BrowserKit\\HttpBrowser;\nuse Symfony\\Contracts\\HttpClient\\HttpClientInterface;\n\n/**\n * @author Fabien Potencier <fabien@symfony.com>\n *\n * @deprecated Use Symfony\\Component\\BrowserKit\\HttpBrowser directly instead\n */\nclass Client extends HttpBrowser\n{\n    public function __construct(HttpClientInterface $client = null, History $history = null, CookieJar $cookieJar = null)\n    {\n        trigger_deprecation('fabpot/goutte', '4.0', 'The \"%s\" class is deprecated, use \"%s\" instead.', __CLASS__, HttpBrowser::class);\n\n        parent::__construct($client, $history, $cookieJar);\n    }\n}\n"
  },
  {
    "path": "Goutte/Resources/phar-stub.php",
    "content": "<?php\n\n/*\n * This file is part of the Goutte utility.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * This source file is subject to the MIT license that is bundled\n * with this source code in the file LICENSE.\n */\n\nrequire_once 'phar://'.__FILE__.'/vendor/autoload.php';\n\n__HALT_COMPILER();\n"
  },
  {
    "path": "Goutte/Tests/ClientTest.php",
    "content": "<?php\n\n/*\n * This file is part of the Goutte package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Goutte\\Tests;\n\nuse Goutte\\Client;\nuse PHPUnit\\Framework\\TestCase;\nuse Symfony\\Component\\BrowserKit\\HttpBrowser;\n\nclass ClientTest extends TestCase\n{\n    public function testNew()\n    {\n        $client = new Client();\n        $this->assertInstanceOf(HttpBrowser::class, $client);\n    }\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2010-present Fabien Potencier\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "README.rst",
    "content": "Goutte, a simple PHP Web Scraper\n================================\n\nGoutte is a screen scraping and web crawling library for PHP.\n\nGoutte provides a nice API to crawl websites and extract data from the HTML/XML\nresponses.\n\n**WARNING**: This library is deprecated. As of v4, Goutte became a simple proxy\nto the `HttpBrowser class\n<https://symfony.com/doc/current/components/browser_kit.html#making-external-http-requests>`_\nfrom the `Symfony BrowserKit <https://symfony.com/browser-kit>`_ component. To\nmigrate, replace ``Goutte\\Client`` by\n``Symfony\\Component\\BrowserKit\\HttpBrowser`` in your code.\n\nRequirements\n------------\n\nGoutte depends on PHP 7.1+.\n\nInstallation\n------------\n\nAdd ``fabpot/goutte`` as a require dependency in your ``composer.json`` file:\n\n.. code-block:: bash\n\n    composer require fabpot/goutte\n\nUsage\n-----\n\nCreate a Goutte Client instance (which extends\n``Symfony\\Component\\BrowserKit\\HttpBrowser``):\n\n.. code-block:: php\n\n    use Goutte\\Client;\n\n    $client = new Client();\n\nMake requests with the ``request()`` method:\n\n.. code-block:: php\n\n    // Go to the symfony.com website\n    $crawler = $client->request('GET', 'https://www.symfony.com/blog/');\n\nThe method returns a ``Crawler`` object\n(``Symfony\\Component\\DomCrawler\\Crawler``).\n\nTo use your own HTTP settings, you may create and pass an HttpClient\ninstance to Goutte. For example, to add a 60 second request timeout:\n\n.. code-block:: php\n\n    use Goutte\\Client;\n    use Symfony\\Component\\HttpClient\\HttpClient;\n\n    $client = new Client(HttpClient::create(['timeout' => 60]));\n\nClick on links:\n\n.. code-block:: php\n\n    // Click on the \"Security Advisories\" link\n    $link = $crawler->selectLink('Security Advisories')->link();\n    $crawler = $client->click($link);\n\nExtract data:\n\n.. code-block:: php\n\n    // Get the latest post in this category and display the titles\n    $crawler->filter('h2 > a')->each(function ($node) {\n        print $node->text().\"\\n\";\n    });\n\nSubmit forms:\n\n.. code-block:: php\n\n    $crawler = $client->request('GET', 'https://github.com/');\n    $crawler = $client->click($crawler->selectLink('Sign in')->link());\n    $form = $crawler->selectButton('Sign in')->form();\n    $crawler = $client->submit($form, ['login' => 'fabpot', 'password' => 'xxxxxx']);\n    $crawler->filter('.flash-error')->each(function ($node) {\n        print $node->text().\"\\n\";\n    });\n\nMore Information\n----------------\n\nRead the documentation of the `BrowserKit`_, `DomCrawler`_, and `HttpClient`_\nSymfony Components for more information about what you can do with Goutte.\n\nPronunciation\n-------------\n\nGoutte is pronounced ``goot`` i.e. it rhymes with ``boot`` and not ``out``.\n\nTechnical Information\n---------------------\n\nGoutte is a thin wrapper around the following Symfony Components:\n`BrowserKit`_, `CssSelector`_, `DomCrawler`_, and `HttpClient`_.\n\nLicense\n-------\n\nGoutte is licensed under the MIT license.\n\n.. _`Composer`: https://getcomposer.org\n.. _`BrowserKit`: https://symfony.com/components/BrowserKit\n.. _`DomCrawler`: https://symfony.com/doc/current/components/dom_crawler.html\n.. _`CssSelector`: https://symfony.com/doc/current/components/css_selector.html\n.. _`HttpClient`: https://symfony.com/doc/current/components/http_client.html\n"
  },
  {
    "path": "box.json",
    "content": "{\n    \"output\": \"goutte.phar\",\n    \"chmod\": \"0755\",\n    \"compactors\": [\n        \"Herrera\\\\Box\\\\Compactor\\\\Php\"\n    ],\n    \"extract\": false,\n    \"files\": [\n        \"LICENSE\",\n        \"Goutte/Client.php\"\n    ],\n    \"finder\": [\n        {\n            \"name\": [\"*.php\", \"*.pem*\"],\n            \"exclude\": [\"Tests\", \"tests\"],\n            \"in\": \"vendor\"\n        }\n    ],\n    \"stub\": \"Goutte/Resources/phar-stub.php\",\n    \"web\": false\n}\n"
  },
  {
    "path": "composer.json",
    "content": "{\n    \"name\": \"fabpot/goutte\",\n    \"type\": \"application\",\n    \"description\": \"A simple PHP Web Scraper\",\n    \"keywords\": [\"scraper\"],\n    \"homepage\": \"https://github.com/FriendsOfPHP/Goutte\",\n    \"license\": \"MIT\",\n    \"authors\": [\n        {\n            \"name\": \"Fabien Potencier\",\n            \"email\": \"fabien@symfony.com\"\n        }\n    ],\n    \"require\": {\n        \"php\": \">=7.1.3\",\n        \"symfony/deprecation-contracts\": \"^2.1|^3\",\n        \"symfony/browser-kit\": \"^4.4|^5.0|^6.0\",\n        \"symfony/css-selector\": \"^4.4|^5.0|^6.0\",\n        \"symfony/dom-crawler\": \"^4.4|^5.0|^6.0\",\n        \"symfony/http-client\": \"^4.4|^5.0|^6.0\",\n        \"symfony/mime\": \"^4.4|^5.0|^6.0\"\n    },\n    \"require-dev\": {\n        \"symfony/phpunit-bridge\": \"^6.0\"\n    },\n    \"autoload\": {\n        \"psr-4\": { \"Goutte\\\\\": \"Goutte\" },\n        \"exclude-from-classmap\": [\"Goutte/Tests\"]\n    }\n}\n"
  },
  {
    "path": "phpunit.xml.dist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<phpunit backupGlobals=\"false\"\n         backupStaticAttributes=\"false\"\n         colors=\"true\"\n         convertErrorsToExceptions=\"true\"\n         convertNoticesToExceptions=\"true\"\n         convertWarningsToExceptions=\"true\"\n         processIsolation=\"false\"\n         stopOnFailure=\"false\"\n         bootstrap=\"./vendor/autoload.php\">\n    <testsuites>\n        <testsuite name=\"Goutte Test Suite\">\n            <directory>./Goutte/Tests</directory>\n        </testsuite>\n    </testsuites>\n</phpunit>\n"
  }
]