Tsarin yanar gizo mai karfi da kuma sababbin abubuwa

Ra'iri takaice


UCMS wani muhimmin mataki ne a ci gaban yanar gizo

Gabatarwar

UCMS shine sabon juyin juya halin PHP tsarin / CMS don ci gaba da ayyukan yanar gizo na yanar gizo.

Ɗaya daga cikin siffofi masu mahimmanci shine mai samfurin samfurin wanda ya dogara ne akan haɗin Twig. Wannan matsala mai samfurin shine sabon sabon harshe na Javascript.

Saboda ikon wannan sabon harshe, ana iya tsara abubuwa da cewa a baya ba zai yiwu ba.

Sabis na JavaScript-kamar shirin
  • {% set my_filter = function( number ) {
  • return number & 1
  • }
  • %}
  • <script>
  • var odd_numbers = {{
  • [1, 2, 3].\array_filter(
  • my_filter
  • )
  • }}
  • </script>

Yi gaba da sau

Sabuwar harshen samfurori ya haɗa da sababbin shirye-shiryen shirye-shiryen shirye-shirye irin su aikin sadarwa na kasashen waje, ayyuka masu ban sha'awa, kiran kira, alamomi masu kwakwalwa, maganganun motsa jiki, ƙuƙwalwar hanyoyi, ƙuƙwalwa da ladabi.

Na gode wa aikin mai girma na shirye-shiryen, sabon harshen samfurori shine harshe mai mahimmanci na shirye-shiryen da ke samar da sababbin sababbin hanyoyin kuma ya sa abubuwa masu wuya ba zasu yiwu ba.

Kuna iya samun wannan sabon fasaha a nan saboda zai dauki shekaru don bunkasa wani abu mai kama da haka.

Dynamic Tags
  • {% addtag leetspeak as function( words ) {
  • return words.\strtr(
  • 'leet', '1337'
  • )
  • }
  • %}
  • {% leetspeak %}
  • And God said, 'Let there be light'
  • and there was light.
  • {% endleetspeak %}
Leetspeak
  • And God said, 'L37 7h3r3 b3 1igh7'
  • and 7h3r3 was 1igh7.

Shirye-shiryen ba tare da iyaka ba

Kuna iya kira duk wani aiki ko hanyar kai tsaye daga shafukanka, komai idan ya dace ko daidaitaccen abu.

Kuma zaku iya samun dama ga ƙungiyoyin ku da kuma ƙwayoyin PHP a kai tsaye.

Samun shiga kowane aji ko aiki
  • {% set api = new \Your\Api( ucms.database ) %}
  • {{
  • api.doSomething('Hello World',
  • api::ANY_CONSTANT
  • )
  • }}

Shirye-shiryen a matakin mafi girma

Tare da sabon Twig zaka iya ɗaukar wani aiki kamar JavaScript, ko da kuwa idan aikin PHP ne, na hanyar hanya, aiki mai mahimmanci a cikin wani aji ko aikin samfuri.

Bugu da ƙari, duk wani aikin ciki na PHP, kowane aikin samfuri da kowane macro samfurin za a iya ɗaure kamar yadda a cikin JavaScript, don haka za ka iya rubuta rubutun da za a iya lissafawa mai sauƙin fahimta.

Nuna wani aiki
  • {% set
  • message = "Hello World \u263a",
  • byteLength = \strlen,
  • charLength = \mb_strlen
  • %}
  • Byte length: {{ message.byteLength() }}
  • Char length: {{ message.charLength() }}
Sarkar kowane aiki
  • Hello {{ 'dlrow'.\strrev().\ucfirst() }}

Turing cikawa

Sabuwar harshen samfurori shine harshen haɓakawa tare da cikakke Turing.

Zaka iya amfani da dukkanin tsarin sarrafawa da alamu kamar yadda yake a kowane harshe na zamani.

An tsara samfurori da maganganu a cikin bisasshen rubutun da ba a gama ba. Mai tarawa zai iya ganewa da kuma inganta maganganu na sticking don haka, alal misali, 1 + 1 ana adana shi a matsayin 2 a cikin gungumen tsararren haruffa.

Wannan sabon harshe mai saurin juyin juya hali ya haɗu da abubuwanda ke amfani da PHP, Javascript da kuma Twig syntax, a cikin wani sabon abu mai ban mamaki da kuma ikon yin amfani da ikon yin amfani.

Cikakken cikakken rubutu
  • {% script %}
  • function calcPi(accuracy = 1000)
  • {
  • pi = 4
  • hi = 4
  • lo = 3
  • ng = true
  • for(i = 0; i < accuracy; i++)
  • {
  • pi += ng ? -(hi / lo) : hi / lo
  • lo += 2
  • ng = !ng
  • }
  • return pi
  • }
  • {% endscript %}

Fassarori tare da mahallin

Za a iya ƙayyade igiya mai sauƙi a sauƙin sauƙi kuma an cire ta atomatik a matsayin .po fayil.

Hakanan za'a iya amfani da mahallin fassarar, maganganu, nau'i-nau'i iri da masu fassara masu amfani.

Ana iya ƙirƙirar haruffa tare da haruffa da tsarawa tare da alamar ƙididdigewa, har ma da takardun PDF takardun suna yiwuwa.

Bai taba kasancewa sauƙi ba don ƙirƙirar aikace-aikace na duniya.

SimpleExample.twig
  • {% context 'Views.Application.Example' %}
  • {%- translate -%}
  • Hello world!
  • {%- endtranslate %}
  • {% endcontext %}
Aikace-aikace
  • #: Views/Application/SimpleExample.twig:2
  • msgctxt "Views.Application.Example"
  • msgid "Hello world!"
  • msgstr "Hello world!"

Mai samfuri na tushen PDF janareta

Kamfaninmu yana da jigon jigilar PDF wanda ya sa ya fi sauƙi fiye da yadda ya halicci takardun kasuwanci.

Mun aiwatar da abubuwa masu yawa a cikin wannan janareta, misali, UTF-8 da goyon bayan Unicode, TTF-Fonts, da yawa filters, da kuma yin amfani da raƙumatattun sassan irin su em, px, pt, mm, cm, in da%.

Kuma wannan kawai wani ɓangare ne na ayyukan PDF Generator.

Kasuwanci PDF
  • <?xml version="1.0" encoding="UTF-8" ?>
  • <pdf size="A4">
  • <header>
  • <p font-size="2em">
  • <strong>
  • {%- trans 'Invoice' -%}
  • </strong>
  • </p>
  • </header>
  • <body>
  • <rotate angle="90" x="50%" y="50%">
  • <text x="50%" y="50%">
  • {%- trans 'Order number:' -%}
  • </text>
  • </rotate>
  • </body>
  • </pdf>

Faster fiye da tsarki php code

An daukaka kulawa don kada a kara ballast maras dacewa zuwa lambar.

Kernel UCMS zai iya karɓar buƙatun ba tare da aiwatar da tambayoyin bayanan yanar gizo ba. Abinda aka nema kawai da ake buƙatar a kashe shi ne daga aikace-aikacenku.

Kayan samfurin na iya cache samar da abun ciki, wanda ya haifar da aiki mai sauri wanda ya fi sauri fiye da PHP code.

Idan an yi amfani da alamar cache da hikima sannan UCMS ya ma a kan Rasberi Pi sauri fiye da kowane tsarin a kan ainihin uwar garke yanar gizo.

Alamar cache
  • {% cache %}
  • {{
  • yourApi.getItems().renderRows()
  • }}
  • {% endcache %}
Binciken abun ciki
  • ...
  • <p>Website was generated in 1 ms</p>
  • </body>
  • </html>

Gudanarwa mai sauƙi

Zaka iya sarrafa hikimar kasuwancin ku kamar tsarin itace wanda ya ƙunshi dukan dukiyoyi masu dacewa, ciki har da hakkokin samun damar aiki kamar yadda yake cikin tsarin fayil.

Abun itace yana da hanyoyi masu amfani da dama wanda ya sa ya sauƙaƙe don samar da tashoshin yanar gizo kamar su menus, sidebars, hanyoyin tafiya, da sauransu.

Kasuwancin Kasuwanci

Kuna so ku san ƙarin?

Tambayoyi da yawa

Zan iya sauke UCMS kyauta?

Samar da wannan software ya ɗauki lokaci, kudi, da kwarewa. Wajibi ne a rufe su. Saboda wannan dalili, ana buƙatar lasisi don amfani da UCMS.

Shin UCMS za ta zama tushen budewa?

Bayan an baza farashin bunkasa, za mu iya buga lambar asali kuma ba da damar kyauta ba don kasuwanci ba ga mutane (amma ba kamfanoni). Kada ku tsammaci hakan zai faru a nan gaba, maimakon a 2021 ko daga bisani.

Waɗanne hanyoyin biyan kuɗi zan iya amfani dasu?

Kuna iya biyan kuɗin kuɗin banki ko PayPal. Kayan kuɗin katin bashi yana yiwuwa ta hanyar PayPal, duk manyan katunan bashi daga Visa, Mastercard, American Express da Discover sun karɓa.

Yaushe zan sami maɓallin lasisi?

Za ku karbi maɓallin lasisi da kuma lambar tushe da zarar an ƙyale biyan kuɗi zuwa asusun mu. Idan ka biya tare da PayPal, za mu aika maɓallin lasisi da lambar mahimmanci tare da bata lokaci na kwanaki 3-5 bayan karɓar biyan bashin don kare mu daga karbar bashin.

Menene sharuddan lasisi?

Mun ba masu ba da lasisi marar iyaka, wanda ba za a iya canjawa ba, wanda ba za a iya canjawa ba, lasisi na yau da kullum don amfani da wannan software don ɗayan yanar gizo. Wannan lasisin software baza'a iya canjawa wuri zuwa ɓangare na uku ko sake dawowa ba.

Zan iya samun lasisi / goyon baya?

Kira mu kuma bari mu magana game da shi. Muna ba da ƙarin ƙarin ayyuka, kamar: Shawarar, goyon baya ko ƙirƙirar kwarangwal na aikace-aikacenka idan ka biya mana wannan. Duk da haka, ba mu sarrafa ko kula da duk wani aikin ba, kuma za ku bukaci mahalarcin ku don gudanar da kasuwancin ku na dogon lokaci.

Zan iya buga aikin na akan Github?

Ba a yarda a wucewa ko bugu da lambar source ta UCMS gaba ɗaya ko a sashi ba. Wannan yana nufin cewa za ku iya wallafa rubutunku kawai da kuka rubuta kansa, amma ba za ku iya buga kowane ɓangare na lambar UCMS a matsayin tushen bude akan github ko irin wannan ba.

Zan sami takarda idan na sayi?

Tabbas, bayan aikawa da tsari ɗin za ku karbi takardar izinin tabbatarwa / pro forma (wanda ba shi da haɗin haraji). Ƙarshe (kuma dokar haraji) an aiko da takarda tare da maɓallin lasisinka da lambar tushe bayan samun biya.

Shin dole in biya VAT?

Idan kana zaune a cikin memba na memba na Ƙungiyar Tarayyar Turai, dole ne ka biya bashin VAT ɗinka ga ƙasarka. Lambar VAT ta dogara ne da ƙungiyar EU wadda kake zaune. Idan kana zaune a wani wuri, babu VAT.

Shin farashin haraji na UCMS yana da deductible?

Tabbatar ku tambayi jariri! Idan kun kasance kamfanin, chances suna da kyau cewa za ku iya cire haɗin kuɗin gaba ɗaya ko a kalla daga cikin haraji. A cikin akwati mafi kyau, bazai biya ku wani abu don siyan lasisin UCMS ba.