|
1 | 1 | {% extends "layout.html.twig" %} |
2 | 2 |
|
3 | | -{% block content %} |
4 | | -<section class="row"> |
5 | | - <section class="col-xl-6 getting-started"> |
6 | | - <h2 class="title">Getting Started</h2> |
7 | | - <div> |
8 | | - <h3>Define Your Dependencies</h3> |
9 | | - <p>Put a file named <em>composer.json</em> at the root of your project, containing your project dependencies:</p> |
10 | | - <pre><code>{ |
11 | | - "require": { |
12 | | - "vendor/package": "1.3.2", |
13 | | - "vendor/package2": "1.*", |
14 | | - "vendor/package3": "^2.0.3" |
15 | | - } |
16 | | -}</code></pre> |
17 | | - |
18 | | - <p>For more information about packages versions usage, see the <a href="https://getcomposer.org/doc/01-basic-usage.md#package-versions">composer documentation</a>.</p> |
19 | | - |
20 | | - <h3>Install Composer In Your Project</h3> |
21 | | - <p>Run this in your command line:</p> |
22 | | - <pre><code>curl -sS https://getcomposer.org/installer | php</code></pre> |
23 | | - <p>Or <a href="https://getcomposer.org/composer.phar">download composer.phar</a> into your project root.</p> |
24 | | - <p>See the Composer documentation for complete <a href="https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos">installation instructions</a> on various platforms.</p> |
25 | | - |
26 | | - <h3>Install Dependencies</h3> |
27 | | - <p>Execute this in your project root.</p> |
28 | | - <pre><code>php composer.phar install</code></pre> |
29 | | - |
30 | | - <h3>Autoload Dependencies</h3> |
31 | | - <p>If your packages specify <a href="https://getcomposer.org/doc/01-basic-usage.md#autoloading">autoloading information</a>, you can autoload all the dependencies by adding this to your code:</p> |
32 | | - <pre><code>require 'vendor/autoload.php';</code></pre> |
33 | | - <p><a href="{{ path('browse') }}">Browse</a> the packages we have to find more great libraries you can use in your project.</p> |
34 | | - </div> |
35 | | - </section> |
36 | | - |
37 | | - <section class="col-xl-6 publishing-packages"> |
38 | | - <h2 class="title">Publishing Packages</h2> |
39 | | - <div> |
40 | | - <h3>Define Your Package</h3> |
41 | | - <p>Put a file named <em>composer.json</em> at the root of your package's repository, containing this information:</p> |
42 | | - <pre><code>{ |
43 | | - "name": "your-vendor-name/package-name", |
44 | | - "description": "A short description of what your package does", |
45 | | - "require": { |
46 | | - "php": ">=8.2", |
47 | | - "another-vendor/package": "1.*" |
48 | | - } |
49 | | -}</code></pre> |
50 | | - <p>This is the strictly minimal information you have to give.</p> |
51 | | - <p>For more details about package naming and the fields you can use to document your package better, see the <a href="{{ path('about') }}">about</a> page.</p> |
52 | | - |
53 | | - <h3>Validate The File</h3> |
54 | | - <p>Run <code>composer validate</code> to check that your file has no syntax errors.</p> |
55 | | - |
56 | | - <h3>Commit The File</h3> |
57 | | - <p>Add the <code>composer.json</code> to your git or other VCS repository and commit it.</p> |
58 | | - |
59 | | - <h3>Publish It</h3> |
60 | | - <p><a href="{{ path('login') }}">Log in</a> or <a href="{{ path('register') }}">register</a> on this site, then hit the <a href="{{ path('submit') }}">submit</a> button in the menu.</p> |
61 | | - <p>Once you entered your public repository URL in there, your package will be automatically crawled periodically. You just have to make sure you keep the composer.json file up to date.</p> |
62 | | - |
63 | | - <h3>Sharing Private Code</h3> |
64 | | - <p>Use <a href="https://packagist.com">Private Packagist</a> if you want to share private code as a Composer package with colleagues or customers without publishing it for everyone on Packagist.org. Private Packagist allows you to manage your own private Composer repository with per-user authentication, team management and integration in version control systems.</p> |
65 | | - </div> |
66 | | - </section> |
67 | | -</section> |
| 3 | +{% set showSearchDesc = 'hero' %} |
68 | 4 |
|
| 5 | +{% block content %} |
69 | 6 | {% if newsItems is defined and newsItems|length > 0 %} |
70 | 7 | <section class="row"> |
71 | | - <section class="col-xl-6"> |
| 8 | + <section class="col-12"> |
72 | 9 | <h2 class="title">Latest News</h2> |
73 | 10 | {% for item in newsItems %} |
74 | 11 | <h3><a href="{{ item.link }}" rel="noopener noreferrer">{{ item.title }}</a> <small class="text-muted">- {{ item.datePublished|date('M d, Y') }}</small></h3> |
75 | 12 | <p> |
76 | | - {{ item.description|length > 200 ? item.description[:200] ~ '...' : item.description }} |
| 13 | + {{ item.description|length > 250 ? item.description[:250] ~ '...' : item.description }} |
77 | 14 | {% if item.datePublished %} |
78 | 15 | {% endif %} |
79 | 16 | </p> |
|
0 commit comments