![]() Use the same command for other HTML files. You can verify the AMP HTML code with the AMP Validator at Now copy the AMP HTML code to a new file, like test-amp.html. c:\xampp\htdocs\amp-library-master>php amp-console amp:convert test.html -full-documentīody The command to run is php amp-console amp:convert test.html –full-document. Use php amp-console amp:convert test.html –full-document –no-lines if you don’t want AMP lines displayed. Our test page (c:\xampp\htdocs\amp-library-master\test.html) is: ![]() Now everything is configured and we should try to convert a simple HTML page. Symfony/console suggests installing symfony/process () Symfony/console suggests installing symfony/event-dispatcher () Phpunit/phpunit suggests installing phpunit/php-invoker (~1.1) Phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1) Phpunit/phpunit-mock-objects suggests installing ext-soap (*) Sebastian/global-state suggests installing ext-uopz (*) Installing symfony/console (v2.8.19): Downloading (100%) Installing symfony/polyfill-mbstring (v1.3.0): Downloading (100%) ![]() Installing symfony/debug (v3.0.9): Downloading (100%) Installing phpunit/phpunit (4.8.35): Downloading (100%) Installing phpspec/prophecy (v1.7.0): Downloading (100%) Installing phpdocumentor/reflection-docblock (3.1.1): Downloading (100%) Installing phpdocumentor/type-resolver (0.2.1): Downloading (100%) Installing phpdocumentor/reflection-common (1.0): Downloading (100%) Installing webmozart/assert (1.2.0): Downloading (100%) Installing phpunit/php-code-coverage (2.2.4): Downloading (100%) Installing phpunit/php-token-stream (1.4.11): Downloading (100%) Installing phpunit/php-file-iterator (1.4.2): Downloading (100%) Installing phpunit/php-timer (1.0.9): Downloading (100%) Installing phpunit/phpunit-mock-objects (2.3.8): Downloading (100%) ![]() Installing phpunit/php-text-template (1.2.1): Downloading (100%) Installing doctrine/instantiator (1.0.5): Downloading (100%) Installing sebastian/comparator (1.2.4): Downloading (100%) Installing sebastian/diff (1.4.1): Downloading (100%) Installing sebastian/environment (1.3.8): Downloading (100%) Installing sebastian/exporter (1.2.2): Downloading (100%) Installing sebastian/recursion-context (1.0.5): Downloading (100%) Installing sebastian/global-state (1.1.1): Downloading (100%) Installing sebastian/version (1.0.6): Downloading (100%) Installing symfony/yaml (v3.2.7): Downloading (100%) Installing guzzlehttp/guzzle (6.2.3): Downloading (100%) Installing guzzlehttp/psr7 (1.4.2): Downloading (100%) Installing psr/http-message (1.0.1): Downloading (100%) Installing guzzlehttp/promises (v1.3.1): Downloading (100%) Installing sabberworm/php-css-parser (8.1.0): Downloading (100%) Installing querypath/querypath (3.0.5): Downloading (100%) Installing masterminds/html5 (2.2.2): Downloading (100%) Package operations: 33 installs, 0 updates, 0 removals Updating dependencies (including require-dev) Loading composer repositories with package information The window should look like: C:\Windows\system32> cd c:\xampp\htdocs\amp-library-master\Ĭ:\xampp\htdocs\amp-library-master> composer install Now we will install the project’s dependencies. In the Command Prompt window type cd c:\xampp\htdocs\amp-library-master\ (this will change the working directory to amp-library-master).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |