Skip to content

v0.4.0-alpha

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Nov 20:28
· 48 commits to main since this release

What's new in 0.4.0-alpha

  • Spell checker for comments and string literals: new spell crate with a bundled English word list (Webster's Second, public domain, plus programming words), inflection, prefix and compound rules, camelCase / snake_case splitting, code-looking chunks and non-English text skipped; misspelt words are weak 'typo' problems, and ⌥↵ offers edit-distance corrections and Save to project dictionary (.phpcraft/dictionary.txt)
  • Git ▸ Pull Requests…: open GitHub pull requests / GitLab merge requests (host from the origin remote) listed on the left, the selected one's description, comments and files on the right; Checkout through gh / glab with the usual save, Local History snapshot and rescan, Show Diff of the fetched head against its merge base with origin/ (all files, or the clicked one), Open in Browser and Add Comment
  • AGENTS.md: the project's goal, crate architecture, app module map, conventions, how to verify and release, what exists, and the state and next steps at this handoff
  • Pull requests backend: gh / glab wrappers — list (GitHub PRs, GitLab MRs), details with comments and files, checkout, comment, fetch the head for diffing (UI not wired yet)
  • HTTP Client: Convert cURL to HTTP Request (from the clipboard), Copy Request as cURL, Import Postman Collection… (v2 / v2.1, folders, variables), Import OpenAPI / Swagger (JSON)… against {{baseUrl}}; every sent request goes to .phpcraft/http/history.http with its response body saved under responses/ (Tools ▸ HTTP Client ▸ History)
  • Git ▸ Worktrees… and Manage Remotes… as lists instead of raw output: worktrees with branch and path (Open in a new window, Remove, New Worktree…), remotes with URL (Remove, Add Remote…)
  • Git ▸ Shelve Changes… (choose files and a name; their changes go to .phpcraft/shelf, new files included, and they return to HEAD) and Git ▸ Shelf… (Unshelve with a 3-way apply, or Delete); Local History snapshot before shelving
  • Git: Interactive Rebase (from the commit selected in the Git Log, or the last 10) — pick / reword with a new message / squash / fixup / drop and reorder, run without an external editor; Cherry-Pick, Revert Commit, Interactively Rebase from Here on a Git Log commit's right-click menu; Undo Last Commit (soft reset); Continue / Skip / Abort for a rebase, cherry-pick, revert or merge stopped on conflicts
  • Git: merge conflicts in the editor — <<<<<<< / ======= / >>>>>>> blocks tinted (yours green, theirs blue), listed as problems (F2), ⌥↵ Accept Yours / Theirs / Both (either order); Git ▸ Resolve Conflicts… lists conflicted files, Mark File as Resolved stages one when no markers are left. Compare with Branch / Revision… and Compare with Clipboard (the selection or the file) in the diff view
  • Laravel intentions (⌥↵): inject the contract instead of a facade (Cache::get() → $this->cache->get() across the class, constructor parameter and import added; 26 facades), validation rules 'a|b|c' → ['a', 'b', 'c'], scopeActive() → #[Scope] protected function active()
  • Laravel code generation: Create DTO (final readonly class in App\Data with fromArray) and Create Nova Resource (App\Nova, model, title, search, fields); Livewire Form was already there
  • Refactor ▸ Extract Blade Component… / Extract View…: the selected markup becomes resources/views/components/.blade.php (variables it uses become @props, replaced by ) or a view replaced by @include('name')
  • Laravel: ⇄ in the gutter of controller methods (and invokable / Livewire classes) that routes dispatch to — read from routes/*.php without artisan (get/post/…, [Controller::class, 'method'], 'Controller@method', resource / apiResource), click opens the route
  • Twig: highlighting ({{ }}, {% %}, {# #} over HTML: tags, strings, numbers, filters, properties), ⌘/ comments with {# #}, ⌘B on template names (extends, include, embed, import, from, use, include() / source()) in templates/ and other usual folders and from {% block x %} to the same block up the extends chain, completion of tags after {%, filters after | and template names in quotes
  • Blade: ⌘B from @yield / @stack to the @section / @Push that fill them and back (the extended layout first); section and stack names complete inside @yield('…') / @section('…') / @stack('…') / @Push('…'); component props from @props([...]) or a class component's constructor — $variables inside the component (plus $attributes, $slot), type="" / :type="" attributes where it is used, ⌘B from an attribute to its prop
  • Cargo.lock: flate2 for the packed PHP stubs
  • PHP's built-in classes and functions from JetBrains phpstorm-stubs (Apache-2.0, crates/php-index/STUBS-LICENSE): 65 common extensions packed into the app (780 KB), unpacked once and indexed with the project, so completion, types, Go to Declaration, Quick Documentation, Parameter Info and argument-count checks know PDO, DateTime, SPL, array_map… (script/update-stubs.sh refreshes them). The indexer now gives each namespace { } block its own namespace and imports; parameter lists drop #[attributes] and parameters only old PHP versions had
  • Run ▸ Run with Coverage: the test at the caret (or all tests) with XDEBUG_MODE=coverage and a Clover report; the output shows line coverage and editors mark covered (green) and uncovered (red) statements in the gutter; Run ▸ Hide Coverage
  • View ▸ TODO: TODO and FIXME comments across the project (vendor/ excluded), listed with a preview
  • Refactor: Introduce Constant (⌘⌥C) — private const of the class, named after a string value; Introduce Field (⌘⌥F) — a property assigned before the statement; Safe Delete (⌘⌦ / Alt+Delete) — removes a declaration with its doc comment only when nothing uses it (otherwise lists the usages); a class alone in its file moves the file to the Trash
  • Navigate ▸ Call Hierarchy (⌃⌥H): every call of the method or function at the caret, labelled with the calling method (Class::method) or function
  • Gutter: ↑ on methods that override or implement an inherited one (click: the parent method), ↓ on methods overridden in subclasses (click: the implementations), ↕ for both
  • Run ▸ PHP Interpreter…: runs, tests and Artisan go through local PHP, a Docker container (docker:[:], environment passed in, Xdebug pointed at host.docker.internal), Sail, or SSH (ssh:[:]). Deployment: Automatic Upload (Tools menu) uploads each saved file to the default server

Made with ❤️ in Azerbaijan · https://path.az